32 #ifndef __GPIO_18XX_43XX_H_
33 #define __GPIO_18XX_43XX_H_
48 __IO uint8_t B[128][32];
49 __IO uint32_t W[32][32];
50 __IO uint32_t DIR[32];
51 __IO uint32_t MASK[32];
52 __IO uint32_t PIN[32];
53 __IO uint32_t MPIN[32];
54 __IO uint32_t
SET[32];
83 pGPIO->
B[port][pin] = setting;
97 pGPIO->
B[port][pin] = setting;
110 return (
bool) pGPIO->
B[port][pin];
123 return (
bool) pGPIO->
B[port][pin];
148 pGPIO->
DIR[port] |= 1UL << pin;
160 pGPIO->
DIR[port] &= ~(1UL << pin);
183 return (
bool) (((pGPIO->
DIR[port]) >> bit) & 1);
195 return (
bool) (((pGPIO->
DIR[port]) >> pin) & 1);
221 pGPIO->
DIR[port] |= pinMask;
235 pGPIO->
DIR[port] &= ~pinMask;
260 return pGPIO->
DIR[port];
275 pGPIO->
MASK[port] = mask;
288 return pGPIO->
MASK[port];
300 pGPIO->
PIN[port] = value;
311 return pGPIO->
PIN[port];
323 pGPIO->
MPIN[port] = value;
334 return pGPIO->
MPIN[port];
349 pGPIO->
SET[portNum] = bitValue;
363 pGPIO->
SET[port] = pins;
377 pGPIO->
SET[port] = (1 << pin);
391 pGPIO->
CLR[portNum] = bitValue;
405 pGPIO->
CLR[port] = pins;
419 pGPIO->
CLR[port] = (1 << pin);
433 pGPIO->
NOT[port] = pins;
447 pGPIO->
NOT[port] = (1 << pin);
460 return pGPIO->
PIN[portNum];