27 #ifndef LPC17XX_GPIO_H_
28 #define LPC17XX_GPIO_H_
46 #define GPIO0_Byte ((GPIO_Byte_TypeDef *)(LPC_GPIO0_BASE))
48 #define GPIO1_Byte ((GPIO_Byte_TypeDef *)(LPC_GPIO1_BASE))
50 #define GPIO2_Byte ((GPIO_Byte_TypeDef *)(LPC_GPIO2_BASE))
52 #define GPIO3_Byte ((GPIO_Byte_TypeDef *)(LPC_GPIO3_BASE))
54 #define GPIO4_Byte ((GPIO_Byte_TypeDef *)(LPC_GPIO4_BASE))
58 #define GPIO0_HalfWord ((GPIO_HalfWord_TypeDef *)(LPC_GPIO0_BASE))
60 #define GPIO1_HalfWord ((GPIO_HalfWord_TypeDef *)(LPC_GPIO1_BASE))
62 #define GPIO2_HalfWord ((GPIO_HalfWord_TypeDef *)(LPC_GPIO2_BASE))
64 #define GPIO3_HalfWord ((GPIO_HalfWord_TypeDef *)(LPC_GPIO3_BASE))
66 #define GPIO4_HalfWord ((GPIO_HalfWord_TypeDef *)(LPC_GPIO4_BASE))
82 uint32_t RESERVED0[3];
86 __O uint8_t FIOCLR[4];
96 uint32_t RESERVED0[3];
118 void GPIO_SetDir(uint8_t portNum, uint32_t bitValue, uint8_t dir);
122 void GPIO_IntCmd(uint8_t portNum, uint32_t bitValue, uint8_t edgeState);
127 void FIO_SetDir(uint8_t portNum, uint32_t bitValue, uint8_t dir);
131 void FIO_SetMask(uint8_t portNum, uint32_t bitValue, uint8_t maskValue);
132 void FIO_IntCmd(uint8_t portNum, uint32_t bitValue, uint8_t edgeState);
137 void FIO_HalfWordSetDir(uint8_t portNum, uint8_t halfwordNum, uint16_t bitValue, uint8_t dir);
138 void FIO_HalfWordSetMask(uint8_t portNum, uint8_t halfwordNum, uint16_t bitValue, uint8_t maskValue);
144 void FIO_ByteSetDir(uint8_t portNum, uint8_t byteNum, uint8_t bitValue, uint8_t dir);
145 void FIO_ByteSetMask(uint8_t portNum, uint8_t byteNum, uint8_t bitValue, uint8_t maskValue);