![]() |
MINI51DE_BSP V3.02.004
The Board Support Package for Mini51DE Series MCU
|
Modules | |
GPIO Exported Functions | |
Macros | |
#define | GPIO_PIN_MAX 8 |
#define | GPIO_PMD_INPUT 0x0UL |
#define | GPIO_PMD_OUTPUT 0x1UL |
#define | GPIO_PMD_OPEN_DRAIN 0x2UL |
#define | GPIO_PMD_QUASI 0x3UL |
#define | GPIO_INT_RISING 0x00010000UL |
#define | GPIO_INT_FALLING 0x00000001UL |
#define | GPIO_INT_BOTH_EDGE 0x00010001UL |
#define | GPIO_INT_HIGH 0x01010000UL |
#define | GPIO_INT_LOW 0x01000001UL |
#define | GPIO_IMD_EDGE 0UL |
#define | GPIO_IMD_LEVEL 1UL |
#define | GPIO_DBNCECON_ICLK_ON 0x00000020UL |
#define | GPIO_DBNCECON_ICLK_OFF 0x00000000UL |
#define | GPIO_DBNCECON_DBCLKSRC_IRC10K 0x00000010UL |
#define | GPIO_DBNCECON_DBCLKSRC_HCLK 0x00000000UL |
#define | GPIO_DBNCECON_DBCLKSEL_1 0x00000000UL |
#define | GPIO_DBNCECON_DBCLKSEL_2 0x00000001UL |
#define | GPIO_DBNCECON_DBCLKSEL_4 0x00000002UL |
#define | GPIO_DBNCECON_DBCLKSEL_8 0x00000003UL |
#define | GPIO_DBNCECON_DBCLKSEL_16 0x00000004UL |
#define | GPIO_DBNCECON_DBCLKSEL_32 0x00000005UL |
#define | GPIO_DBNCECON_DBCLKSEL_64 0x00000006UL |
#define | GPIO_DBNCECON_DBCLKSEL_128 0x00000007UL |
#define | GPIO_DBNCECON_DBCLKSEL_256 0x00000008UL |
#define | GPIO_DBNCECON_DBCLKSEL_512 0x00000009UL |
#define | GPIO_DBNCECON_DBCLKSEL_1024 0x0000000AUL |
#define | GPIO_DBNCECON_DBCLKSEL_2048 0x0000000BUL |
#define | GPIO_DBNCECON_DBCLKSEL_4096 0x0000000CUL |
#define | GPIO_DBNCECON_DBCLKSEL_8192 0x0000000DUL |
#define | GPIO_DBNCECON_DBCLKSEL_16384 0x0000000EUL |
#define | GPIO_DBNCECON_DBCLKSEL_32768 0x0000000FUL |
#define | GPIO_PIN_ADDR(port, pin) (*((volatile uint32_t *)((GPIOBIT0_BASE+(0x20*(port))) + ((pin)<<2)))) |
#define | P00 GPIO_PIN_ADDR(0, 0) |
#define | P01 GPIO_PIN_ADDR(0, 1) |
#define | P02 GPIO_PIN_ADDR(0, 2) |
#define | P03 GPIO_PIN_ADDR(0, 3) |
#define | P04 GPIO_PIN_ADDR(0, 4) |
#define | P05 GPIO_PIN_ADDR(0, 5) |
#define | P06 GPIO_PIN_ADDR(0, 6) |
#define | P07 GPIO_PIN_ADDR(0, 7) |
#define | P10 GPIO_PIN_ADDR(1, 0) |
#define | P11 GPIO_PIN_ADDR(1, 1) |
#define | P12 GPIO_PIN_ADDR(1, 2) |
#define | P13 GPIO_PIN_ADDR(1, 3) |
#define | P14 GPIO_PIN_ADDR(1, 4) |
#define | P15 GPIO_PIN_ADDR(1, 5) |
#define | P16 GPIO_PIN_ADDR(1, 6) |
#define | P17 GPIO_PIN_ADDR(1, 7) |
#define | P20 GPIO_PIN_ADDR(2, 0) |
#define | P21 GPIO_PIN_ADDR(2, 1) |
#define | P22 GPIO_PIN_ADDR(2, 2) |
#define | P23 GPIO_PIN_ADDR(2, 3) |
#define | P24 GPIO_PIN_ADDR(2, 4) |
#define | P25 GPIO_PIN_ADDR(2, 5) |
#define | P26 GPIO_PIN_ADDR(2, 6) |
#define | P27 GPIO_PIN_ADDR(2, 7) |
#define | P30 GPIO_PIN_ADDR(3, 0) |
#define | P31 GPIO_PIN_ADDR(3, 1) |
#define | P32 GPIO_PIN_ADDR(3, 2) |
#define | P33 GPIO_PIN_ADDR(3, 3) |
#define | P34 GPIO_PIN_ADDR(3, 4) |
#define | P35 GPIO_PIN_ADDR(3, 5) |
#define | P36 GPIO_PIN_ADDR(3, 6) |
#define | P37 GPIO_PIN_ADDR(3, 7) |
#define | P40 GPIO_PIN_ADDR(4, 0) |
#define | P41 GPIO_PIN_ADDR(4, 1) |
#define | P42 GPIO_PIN_ADDR(4, 2) |
#define | P43 GPIO_PIN_ADDR(4, 3) |
#define | P44 GPIO_PIN_ADDR(4, 4) |
#define | P45 GPIO_PIN_ADDR(4, 5) |
#define | P46 GPIO_PIN_ADDR(4, 6) |
#define | P47 GPIO_PIN_ADDR(4, 7) |
#define | P50 GPIO_PIN_ADDR(5, 0) |
#define | P51 GPIO_PIN_ADDR(5, 1) |
#define | P52 GPIO_PIN_ADDR(5, 2) |
#define | P53 GPIO_PIN_ADDR(5, 3) |
#define | P54 GPIO_PIN_ADDR(5, 4) |
#define | P55 GPIO_PIN_ADDR(5, 5) |
#define GPIO_DBNCECON_DBCLKSEL_1 0x00000000UL |
#define GPIO_DBNCECON_DBCLKSEL_1024 0x0000000AUL |
#define GPIO_DBNCECON_DBCLKSEL_128 0x00000007UL |
#define GPIO_DBNCECON_DBCLKSEL_16 0x00000004UL |
#define GPIO_DBNCECON_DBCLKSEL_16384 0x0000000EUL |
#define GPIO_DBNCECON_DBCLKSEL_2 0x00000001UL |
#define GPIO_DBNCECON_DBCLKSEL_2048 0x0000000BUL |
#define GPIO_DBNCECON_DBCLKSEL_256 0x00000008UL |
#define GPIO_DBNCECON_DBCLKSEL_32 0x00000005UL |
#define GPIO_DBNCECON_DBCLKSEL_32768 0x0000000FUL |
#define GPIO_DBNCECON_DBCLKSEL_4 0x00000002UL |
#define GPIO_DBNCECON_DBCLKSEL_4096 0x0000000CUL |
#define GPIO_DBNCECON_DBCLKSEL_512 0x00000009UL |
#define GPIO_DBNCECON_DBCLKSEL_64 0x00000006UL |
#define GPIO_DBNCECON_DBCLKSEL_8 0x00000003UL |
#define GPIO_DBNCECON_DBCLKSEL_8192 0x0000000DUL |
#define GPIO_DBNCECON_DBCLKSRC_HCLK 0x00000000UL |
#define GPIO_DBNCECON_DBCLKSRC_IRC10K 0x00000010UL |
#define GPIO_DBNCECON_ICLK_OFF 0x00000000UL |
#define GPIO_DBNCECON_ICLK_ON 0x00000020UL |
#define GPIO_INT_BOTH_EDGE 0x00010001UL |
#define GPIO_INT_FALLING 0x00000001UL |
#define GPIO_INT_HIGH 0x01010000UL |
#define GPIO_INT_LOW 0x01000001UL |
#define GPIO_INT_RISING 0x00010000UL |
#define GPIO_PIN_ADDR | ( | port, | |
pin | |||
) | (*((volatile uint32_t *)((GPIOBIT0_BASE+(0x20*(port))) + ((pin)<<2)))) |
#define P00 GPIO_PIN_ADDR(0, 0) |
#define P01 GPIO_PIN_ADDR(0, 1) |
#define P02 GPIO_PIN_ADDR(0, 2) |
#define P03 GPIO_PIN_ADDR(0, 3) |
#define P04 GPIO_PIN_ADDR(0, 4) |
#define P05 GPIO_PIN_ADDR(0, 5) |
#define P06 GPIO_PIN_ADDR(0, 6) |
#define P07 GPIO_PIN_ADDR(0, 7) |
#define P10 GPIO_PIN_ADDR(1, 0) |
#define P11 GPIO_PIN_ADDR(1, 1) |
#define P12 GPIO_PIN_ADDR(1, 2) |
#define P13 GPIO_PIN_ADDR(1, 3) |
#define P14 GPIO_PIN_ADDR(1, 4) |
#define P15 GPIO_PIN_ADDR(1, 5) |
#define P16 GPIO_PIN_ADDR(1, 6) |
#define P17 GPIO_PIN_ADDR(1, 7) |
#define P20 GPIO_PIN_ADDR(2, 0) |
#define P21 GPIO_PIN_ADDR(2, 1) |
#define P22 GPIO_PIN_ADDR(2, 2) |
#define P23 GPIO_PIN_ADDR(2, 3) |
#define P24 GPIO_PIN_ADDR(2, 4) |
#define P25 GPIO_PIN_ADDR(2, 5) |
#define P26 GPIO_PIN_ADDR(2, 6) |
#define P27 GPIO_PIN_ADDR(2, 7) |
#define P30 GPIO_PIN_ADDR(3, 0) |
#define P31 GPIO_PIN_ADDR(3, 1) |
#define P32 GPIO_PIN_ADDR(3, 2) |
#define P33 GPIO_PIN_ADDR(3, 3) |
#define P34 GPIO_PIN_ADDR(3, 4) |
#define P35 GPIO_PIN_ADDR(3, 5) |
#define P36 GPIO_PIN_ADDR(3, 6) |
#define P37 GPIO_PIN_ADDR(3, 7) |
#define P40 GPIO_PIN_ADDR(4, 0) |
#define P41 GPIO_PIN_ADDR(4, 1) |
#define P42 GPIO_PIN_ADDR(4, 2) |
#define P43 GPIO_PIN_ADDR(4, 3) |
#define P44 GPIO_PIN_ADDR(4, 4) |
#define P45 GPIO_PIN_ADDR(4, 5) |
#define P46 GPIO_PIN_ADDR(4, 6) |
#define P47 GPIO_PIN_ADDR(4, 7) |
#define P50 GPIO_PIN_ADDR(5, 0) |
#define P51 GPIO_PIN_ADDR(5, 1) |
#define P52 GPIO_PIN_ADDR(5, 2) |
#define P53 GPIO_PIN_ADDR(5, 3) |
#define P54 GPIO_PIN_ADDR(5, 4) |
#define P55 GPIO_PIN_ADDR(5, 5) |