| /bsp/nuvoton/libraries/n9h30/rtt_port/ |
| A D | drv_gpio.c | 75 if (!(au32PinMaskTbl[NU_GET_PORT(pin)] & NU_GET_PIN_MASK(NU_GET_PINS(pin)))) in nu_port_check() 159 GPIO_OpenBit(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), DIR_INPUT, PULL_UP); in nu_gpio_mode() 163 GPIO_OpenBit(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), DIR_INPUT, PULL_DOWN); in nu_gpio_mode() 167 GPIO_OpenBit(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), DIR_OUTPUT, NO_PULL_UP); in nu_gpio_mode() 171 GPIO_OpenBit(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), DIR_INPUT, NO_PULL_UP); in nu_gpio_mode() 191 GPIO_SetBit(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin))); in nu_gpio_write() 193 GPIO_ClrBit(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin))); in nu_gpio_write() 207 return GPIO_ReadBit(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin))); in nu_gpio_read() 352 GPIO_EnableTriggerType(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), triggerType); in nu_gpio_irq_enable() 356 GPIO_DisableTriggerType(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin))); in nu_gpio_irq_enable()
|
| A D | drv_gpio.h | 34 #define NU_GET_PIN_MASK(nu_gpio_pin) (1 << (nu_gpio_pin)) macro
|
| /bsp/nuvoton/libraries/ma35/rtt_port/ |
| A D | drv_gpio.c | 140 GPIO_SetMode(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), GPIO_MODE_INPUT); in nu_gpio_mode() 141 GPIO_SetPullCtl(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), GPIO_PUSEL_PULL_UP); in nu_gpio_mode() 145 GPIO_SetMode(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), GPIO_MODE_INPUT); in nu_gpio_mode() 146 GPIO_SetPullCtl(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), GPIO_PUSEL_PULL_DOWN); in nu_gpio_mode() 150 GPIO_SetMode(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), GPIO_MODE_OUTPUT); in nu_gpio_mode() 154 GPIO_SetMode(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), GPIO_MODE_INPUT); in nu_gpio_mode() 155 GPIO_SetPullCtl(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), GPIO_PUSEL_DISABLE); in nu_gpio_mode() 159 GPIO_SetMode(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), GPIO_MODE_OPEN_DRAIN); in nu_gpio_mode() 160 GPIO_SetPullCtl(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), GPIO_PUSEL_DISABLE); in nu_gpio_mode()
|
| A D | drv_gpio.h | 38 #define NU_GET_PIN_MASK(nu_gpio_pin) (1 << (nu_gpio_pin)) macro
|
| /bsp/nuvoton/libraries/nuc980/rtt_port/ |
| A D | drv_gpio.c | 141 GPIO_SetMode(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), GPIO_MODE_INPUT); in nu_gpio_mode() 142 GPIO_SetPullCtl(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), GPIO_PUSEL_PULL_UP); in nu_gpio_mode() 146 GPIO_SetMode(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), GPIO_MODE_INPUT); in nu_gpio_mode() 147 GPIO_SetPullCtl(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), GPIO_PUSEL_PULL_DOWN); in nu_gpio_mode() 151 GPIO_SetMode(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), GPIO_MODE_OUTPUT); in nu_gpio_mode() 155 GPIO_SetMode(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), GPIO_MODE_INPUT); in nu_gpio_mode() 156 GPIO_SetPullCtl(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), GPIO_PUSEL_DISABLE); in nu_gpio_mode() 160 GPIO_SetMode(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), GPIO_MODE_OPEN_DRAIN); in nu_gpio_mode() 161 GPIO_SetPullCtl(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), GPIO_PUSEL_DISABLE); in nu_gpio_mode()
|
| A D | drv_gpio.h | 31 #define NU_GET_PIN_MASK(nu_gpio_pin) (1 << (nu_gpio_pin)) macro
|
| /bsp/nuvoton/libraries/m460/rtt_port/ |
| A D | drv_gpio.c | 143 GPIO_SetMode(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), GPIO_MODE_INPUT); in nu_gpio_mode() 144 GPIO_SetPullCtl(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), GPIO_PUSEL_PULL_UP); in nu_gpio_mode() 148 GPIO_SetMode(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), GPIO_MODE_INPUT); in nu_gpio_mode() 149 GPIO_SetPullCtl(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), GPIO_PUSEL_PULL_DOWN); in nu_gpio_mode() 153 GPIO_SetMode(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), GPIO_MODE_OUTPUT); in nu_gpio_mode() 157 GPIO_SetMode(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), GPIO_MODE_INPUT); in nu_gpio_mode() 158 GPIO_SetPullCtl(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), GPIO_PUSEL_DISABLE); in nu_gpio_mode() 162 GPIO_SetMode(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), GPIO_MODE_OPEN_DRAIN); in nu_gpio_mode() 163 GPIO_SetPullCtl(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), GPIO_PUSEL_DISABLE); in nu_gpio_mode()
|
| A D | drv_gpio.h | 34 #define NU_GET_PIN_MASK(nu_gpio_pin) (1 << (nu_gpio_pin)) macro
|
| /bsp/nuvoton/libraries/m480/rtt_port/ |
| A D | drv_gpio.c | 143 GPIO_SetMode(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), GPIO_MODE_INPUT); in nu_gpio_mode() 144 GPIO_SetPullCtl(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), GPIO_PUSEL_PULL_UP); in nu_gpio_mode() 148 GPIO_SetMode(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), GPIO_MODE_INPUT); in nu_gpio_mode() 149 GPIO_SetPullCtl(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), GPIO_PUSEL_PULL_DOWN); in nu_gpio_mode() 153 GPIO_SetMode(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), GPIO_MODE_OUTPUT); in nu_gpio_mode() 157 GPIO_SetMode(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), GPIO_MODE_INPUT); in nu_gpio_mode() 158 GPIO_SetPullCtl(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), GPIO_PUSEL_DISABLE); in nu_gpio_mode() 162 GPIO_SetMode(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), GPIO_MODE_OPEN_DRAIN); in nu_gpio_mode() 163 GPIO_SetPullCtl(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), GPIO_PUSEL_DISABLE); in nu_gpio_mode()
|
| A D | drv_gpio.h | 32 #define NU_GET_PIN_MASK(nu_gpio_pin) (1 << (nu_gpio_pin)) macro
|
| /bsp/nuvoton/libraries/m2354/rtt_port/ |
| A D | drv_gpio.c | 143 GPIO_SetMode(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), GPIO_MODE_INPUT); in nu_gpio_mode() 144 GPIO_SetPullCtl(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), GPIO_PUSEL_PULL_UP); in nu_gpio_mode() 148 GPIO_SetMode(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), GPIO_MODE_INPUT); in nu_gpio_mode() 149 GPIO_SetPullCtl(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), GPIO_PUSEL_PULL_DOWN); in nu_gpio_mode() 153 GPIO_SetMode(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), GPIO_MODE_OUTPUT); in nu_gpio_mode() 157 GPIO_SetMode(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), GPIO_MODE_INPUT); in nu_gpio_mode() 158 GPIO_SetPullCtl(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), GPIO_PUSEL_DISABLE); in nu_gpio_mode() 162 GPIO_SetMode(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), GPIO_MODE_OPEN_DRAIN); in nu_gpio_mode() 163 GPIO_SetPullCtl(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), GPIO_PUSEL_DISABLE); in nu_gpio_mode()
|
| A D | drv_gpio.h | 32 #define NU_GET_PIN_MASK(nu_gpio_pin) (1 << (nu_gpio_pin)) macro
|
| /bsp/nuvoton/libraries/m031/rtt_port/ |
| A D | drv_gpio.c | 141 GPIO_SetMode(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), GPIO_MODE_OUTPUT); in nu_gpio_mode() 145 GPIO_SetMode(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), GPIO_MODE_INPUT); in nu_gpio_mode() 149 GPIO_SetMode(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), GPIO_MODE_OPEN_DRAIN); in nu_gpio_mode() 154 GPIO_SetMode(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), GPIO_MODE_INPUT); in nu_gpio_mode() 158 GPIO_SetMode(PORT, NU_GET_PIN_MASK(NU_GET_PINS(pin)), GPIO_MODE_INPUT); in nu_gpio_mode()
|
| A D | drv_gpio.h | 32 #define NU_GET_PIN_MASK(nu_gpio_pin) (1 << (nu_gpio_pin)) macro
|
| /bsp/nuvoton/numaker-m2354/board/ |
| A D | board_dev.c | 69 GPIO_DISABLE_DIGITAL_PATH(port, NU_GET_PIN_MASK(NU_GET_PINS(pin))); in tp_switch_to_analog() 79 GPIO_ENABLE_DIGITAL_PATH(port, NU_GET_PIN_MASK(NU_GET_PINS(pin))); in tp_switch_to_digital()
|
| /bsp/nuvoton/numaker-m032ki/board/ |
| A D | board_dev.c | 185 GPIO_DISABLE_DIGITAL_PATH(port, NU_GET_PIN_MASK(NU_GET_PINS(pin))); in tp_switch_to_analog() 195 GPIO_ENABLE_DIGITAL_PATH(port, NU_GET_PIN_MASK(NU_GET_PINS(pin))); in tp_switch_to_digital()
|
| /bsp/nuvoton/numaker-iot-m467/board/ |
| A D | board_dev.c | 245 GPIO_DISABLE_DIGITAL_PATH(port, NU_GET_PIN_MASK(NU_GET_PINS(pin))); in tp_switch_to_analog() 255 GPIO_ENABLE_DIGITAL_PATH(port, NU_GET_PIN_MASK(NU_GET_PINS(pin))); in tp_switch_to_digital()
|
| /bsp/nuvoton/numaker-iot-m487/board/ |
| A D | board_dev.c | 233 GPIO_DISABLE_DIGITAL_PATH(port, NU_GET_PIN_MASK(NU_GET_PINS(pin))); in tp_switch_to_analog() 243 GPIO_ENABLE_DIGITAL_PATH(port, NU_GET_PIN_MASK(NU_GET_PINS(pin))); in tp_switch_to_digital()
|
| /bsp/nuvoton/numaker-pfm-m487/board/ |
| A D | board_dev.c | 241 GPIO_DISABLE_DIGITAL_PATH(port, NU_GET_PIN_MASK(NU_GET_PINS(pin))); in tp_switch_to_analog() 251 GPIO_ENABLE_DIGITAL_PATH(port, NU_GET_PIN_MASK(NU_GET_PINS(pin))); in tp_switch_to_digital()
|