18#ifndef __HAL_DRIVER_NUVOTON_M484_IO_H__
19#define __HAL_DRIVER_NUVOTON_M484_IO_H__
23#include "../../device.h"
27#define __IO_PINA_NUM(__N, __OFFSET) PA##__N = (__OFFSET) + (__N), \
28 PA##__N##_idx = (__OFFSET) + (__N),
29#define __IO_PINB_NUM(__N, __OFFSET) PB##__N = (__OFFSET) + (__N), \
30 PB##__N##_idx = (__OFFSET) + (__N),
32#define __IO_PINA_MSK(__N, __OFFSET) PA##__N##_msk = (1ul<<(__N)),
33#define __IO_PINB_MSK(__N, __OFFSET) PB##__N##_msk = (1ul<<(__N)),
92 PORTA, PORTA_idx = PORTA,
95 PORTB, PORTB_idx = PORTB,
149#include "hal/driver/common/template/vsf_template_io.h"
@ IO_BIDIRECTION
Definition io.h:49
@ IO_INPUT_PU
Definition io.h:39
@ IO_OUTPUT_OPEN_DRAIN
Definition io.h:47
@ VSF_IO_DISABLE_INPUT
disable input
Definition io.h:52
@ IO_OUTPUT_PUSHPULL
Definition io.h:45
@ IO_INPUT_PULLUP
Definition io.h:40
@ IO_INPUT_PULLDOWN
Definition io.h:42
@ IO_ANALOG_INPUT
Definition io.h:37
@ IO_OUTPUT_PP
Definition io.h:44
@ IO_INPUT_PD
Definition io.h:41
@ IO_INPUT_FLOAT
Definition io.h:38
@ IO_OUTPUT_OD
Definition io.h:46
#define PIO_PORTB_PIN_NUM
Definition device.h:55
#define __IO_PINB_MSK(__N, __OFFSET)
Definition io.h:33
#define __IO_PINA_NUM(__N, __OFFSET)
Definition io.h:27
io_model_t
Definition io.h:102
#define __IO_PINB_NUM(__N, __OFFSET)
Definition io.h:29
vsf_io_pin_msk_t
Definition io.h:78
#define __IO_PINA_MSK(__N, __OFFSET)
Definition io.h:32
vsf_io_pin_no_t
Definition io.h:66
vsf_io_port_no_t
Definition io.h:90
#define PIO_PORTA_PIN_NUM
Definition device.h:57
unsigned int uint32_t
Definition lvgl.h:43
volatile uint32_t
Definition io.h:43
volatile uint32_t DIR
Definition io.h:44
volatile uint32_t OUT
Definition io.h:40
volatile uint32_t IN
Definition io.h:41
Definition vsf_template_gpio.h:491
gpio_reg_t * reg
Definition io.h:61
#define VSF_MREPEAT(__COUNT, __MACRO, __PARAM)
Definition vsf_repeat_macro.h:51