Home
last modified time | relevance | path

Searched refs:NU_GET_PORT (Results 1 – 20 of 20) sorted by relevance

/bsp/nuvoton/libraries/m031/rtt_port/
A Ddrv_gpio.c59 if (NU_GET_PORT(pin) >= NU_PORT_CNT) in nu_port_check()
61 else if ((NU_GET_PORT(pin) == NU_PH) && (NU_GET_PINS(pin) > MAX_PORTH_PIN_MAX)) in nu_port_check()
137 PORT = (GPIO_T *)(PA_BASE + (NU_GET_PORT(pin) * PORT_OFFSET)); in nu_gpio_mode()
173 GPIO_PIN_DATA(NU_GET_PORT(pin), NU_GET_PINS(pin)) = value; in nu_gpio_write()
183 return GPIO_PIN_DATA(NU_GET_PORT(pin), NU_GET_PINS(pin)); in nu_gpio_read()
273 PORT = (GPIO_T *)(PA_BASE + (NU_GET_PORT(pin) * PORT_OFFSET)); in nu_gpio_irq_enable()
292 …if ((NU_GET_PORT(pin) == NU_PA) || (NU_GET_PORT(pin) == NU_PB) || (NU_GET_PORT(pin) == NU_PG) || ( in nu_gpio_irq_enable()
A Ddrv_gpio.h31 #define NU_GET_PORT(rt_pin_index) (((rt_pin_index)>>4) & 0x0000000F) macro
/bsp/nuvoton/numaker-m2354/board/
A Dboard_dev.c53 uint32_t port_index = NU_GET_PORT(pin); in nu_pin_func()
62 GPIO_T *port = (GPIO_T *)(GPIOA_BASE + (0x40) * NU_GET_PORT(pin)); in tp_switch_to_analog()
74 GPIO_T *port = (GPIO_T *)(GPIOA_BASE + (0x40) * NU_GET_PORT(pin)); in tp_switch_to_digital()
/bsp/nuvoton/libraries/m460/rtt_port/
A Ddrv_gpio.c61 if (NU_GET_PORT(pin) >= NU_PORT_CNT) in nu_port_check()
63 else if ((NU_GET_PORT(pin) == NU_PJ) && (NU_GET_PINS(pin) > MAX_PORTH_PIN_MAX)) in nu_port_check()
139 PORT = (GPIO_T *)(GPIOA_BASE + (NU_GET_PORT(pin) * PORT_OFFSET)); in nu_gpio_mode()
172 GPIO_PIN_DATA(NU_GET_PORT(pin), NU_GET_PINS(pin)) = value; in nu_gpio_write()
182 return GPIO_PIN_DATA(NU_GET_PORT(pin), NU_GET_PINS(pin)); in nu_gpio_read()
272 PORT = (GPIO_T *)(GPIOA_BASE + (NU_GET_PORT(pin) * PORT_OFFSET)); in nu_gpio_irq_enable()
291 NVIC_EnableIRQ(au32GPIRQ[NU_GET_PORT(pin)]); in nu_gpio_irq_enable()
A Ddrv_gpio.h33 #define NU_GET_PORT(rt_pin_index) (((rt_pin_index)>>4) & 0x0000000F) macro
A Ddrv_common.c123 uint32_t port_index = NU_GET_PORT(pin); in nu_pin_set_function()
/bsp/nuvoton/libraries/m480/rtt_port/
A Ddrv_gpio.c61 if (NU_GET_PORT(pin) >= NU_PORT_CNT) in nu_port_check()
63 else if ((NU_GET_PORT(pin) == NU_PH) && (NU_GET_PINS(pin) > MAX_PORTH_PIN_MAX)) in nu_port_check()
139 PORT = (GPIO_T *)(GPIOA_BASE + (NU_GET_PORT(pin) * PORT_OFFSET)); in nu_gpio_mode()
172 GPIO_PIN_DATA(NU_GET_PORT(pin), NU_GET_PINS(pin)) = value; in nu_gpio_write()
182 return GPIO_PIN_DATA(NU_GET_PORT(pin), NU_GET_PINS(pin)); in nu_gpio_read()
272 PORT = (GPIO_T *)(GPIOA_BASE + (NU_GET_PORT(pin) * PORT_OFFSET)); in nu_gpio_irq_enable()
291 NVIC_EnableIRQ(au32GPIRQ[NU_GET_PORT(pin)]); in nu_gpio_irq_enable()
A Ddrv_gpio.h31 #define NU_GET_PORT(rt_pin_index) (((rt_pin_index)>>4) & 0x0000000F) macro
/bsp/nuvoton/libraries/m2354/rtt_port/
A Ddrv_gpio.c61 if (NU_GET_PORT(pin) >= NU_PORT_CNT) in nu_port_check()
63 else if ((NU_GET_PORT(pin) == NU_PH) && (NU_GET_PINS(pin) > MAX_PORTH_PIN_MAX)) in nu_port_check()
139 PORT = (GPIO_T *)(GPIOA_BASE + (NU_GET_PORT(pin) * PORT_OFFSET)); in nu_gpio_mode()
172 GPIO_PIN_DATA_S(NU_GET_PORT(pin), NU_GET_PINS(pin)) = value; in nu_gpio_write()
182 return GPIO_PIN_DATA_S(NU_GET_PORT(pin), NU_GET_PINS(pin)); in nu_gpio_read()
272 PORT = (GPIO_T *)(GPIOA_BASE + (NU_GET_PORT(pin) * PORT_OFFSET)); in nu_gpio_irq_enable()
291 NVIC_EnableIRQ(au32GPIRQ[NU_GET_PORT(pin)]); in nu_gpio_irq_enable()
A Ddrv_gpio.h31 #define NU_GET_PORT(rt_pin_index) (((rt_pin_index)>>4) & 0x0000000F) macro
/bsp/nuvoton/libraries/ma35/rtt_port/
A Ddrv_gpio.c60 if (NU_GET_PORT(pin) >= NU_PORT_CNT) in nu_port_check()
136 PORT = (GPIO_T *)(GPIOA_BASE + (NU_GET_PORT(pin) * PORT_OFFSET)); in nu_gpio_mode()
169 GPIO_PIN_DATA(NU_GET_PORT(pin), NU_GET_PINS(pin)) = value; in nu_gpio_write()
179 return GPIO_PIN_DATA(NU_GET_PORT(pin), NU_GET_PINS(pin)); in nu_gpio_read()
281 PORT = (GPIO_T *)(GPIOA_BASE + (NU_GET_PORT(pin) * PORT_OFFSET)); in nu_gpio_irq_enable()
283 irqn = au32GPIRQ[NU_GET_PORT(pin)]; in nu_gpio_irq_enable()
A Ddrv_gpio.h37 #define NU_GET_PORT(rt_pin_index) (((rt_pin_index)>>4) & 0x0000000F) macro
/bsp/nuvoton/libraries/n9h30/rtt_port/
A Ddrv_gpio.c69 if (NU_GET_PORT(pin) >= NU_PORT_CNT) in nu_port_check()
75 if (!(au32PinMaskTbl[NU_GET_PORT(pin)] & NU_GET_PIN_MASK(NU_GET_PINS(pin)))) in nu_port_check()
154 PORT = (GPIO_PORT)(GPIOA + (NU_GET_PORT(pin) * PORT_OFFSET)); in nu_gpio_mode()
188 PORT = (GPIO_PORT)(GPIOA + (NU_GET_PORT(pin) * PORT_OFFSET)); in nu_gpio_write()
205 PORT = (GPIO_PORT)(GPIOA + (NU_GET_PORT(pin) * PORT_OFFSET)); in nu_gpio_read()
323 PORT = (GPIO_PORT)(GPIOA + (NU_GET_PORT(pin) * PORT_OFFSET)); in nu_gpio_irq_enable()
A Ddrv_gpio.h33 #define NU_GET_PORT(rt_pin_index) (((rt_pin_index)>>4) & 0x0000000F) macro
/bsp/nuvoton/libraries/nuc980/rtt_port/
A Ddrv_gpio.c61 if (NU_GET_PORT(pin) >= NU_PORT_CNT) in nu_port_check()
137 PORT = (GPIO_T *)(PA_BA + (NU_GET_PORT(pin) * PORT_OFFSET)); in nu_gpio_mode()
170 GPIO_PIN_DATA(NU_GET_PORT(pin), NU_GET_PINS(pin)) = value; in nu_gpio_write()
180 return GPIO_PIN_DATA(NU_GET_PORT(pin), NU_GET_PINS(pin)); in nu_gpio_read()
282 PORT = (GPIO_T *)(PA_BA + (NU_GET_PORT(pin) * PORT_OFFSET)); in nu_gpio_irq_enable()
284 irqn = au32GPIRQ[NU_GET_PORT(pin)]; in nu_gpio_irq_enable()
A Ddrv_gpio.h30 #define NU_GET_PORT(rt_pin_index) (((rt_pin_index)>>4) & 0x0000000F) macro
/bsp/nuvoton/numaker-m032ki/board/
A Dboard_dev.c169 uint32_t port_index = NU_GET_PORT(pin); in nu_pin_func()
178 GPIO_T *port = (GPIO_T *)(PA_BASE + (0x40) * NU_GET_PORT(pin)); in tp_switch_to_analog()
190 GPIO_T *port = (GPIO_T *)(PA_BASE + (0x40) * NU_GET_PORT(pin)); in tp_switch_to_digital()
/bsp/nuvoton/numaker-iot-m467/board/
A Dboard_dev.c229 uint32_t port_index = NU_GET_PORT(pin); in nu_pin_func()
238 GPIO_T *port = (GPIO_T *)(GPIOA_BASE + (0x40) * NU_GET_PORT(pin)); in tp_switch_to_analog()
250 GPIO_T *port = (GPIO_T *)(GPIOA_BASE + (0x40) * NU_GET_PORT(pin)); in tp_switch_to_digital()
/bsp/nuvoton/numaker-iot-m487/board/
A Dboard_dev.c217 uint32_t port_index = NU_GET_PORT(pin); in nu_pin_func()
226 GPIO_T *port = (GPIO_T *)(GPIOA_BASE + (0x40) * NU_GET_PORT(pin)); in tp_switch_to_analog()
238 GPIO_T *port = (GPIO_T *)(GPIOA_BASE + (0x40) * NU_GET_PORT(pin)); in tp_switch_to_digital()
/bsp/nuvoton/numaker-pfm-m487/board/
A Dboard_dev.c225 uint32_t port_index = NU_GET_PORT(pin); in nu_pin_func()
234 GPIO_T *port = (GPIO_T *)(GPIOA_BASE + (0x40) * NU_GET_PORT(pin)); in tp_switch_to_analog()
246 GPIO_T *port = (GPIO_T *)(GPIOA_BASE + (0x40) * NU_GET_PORT(pin)); in tp_switch_to_digital()

Completed in 37 milliseconds