diff --git a/lib/include/gpio.h b/lib/include/gpio.h index 5d79253a8..1eeda2609 100644 --- a/lib/include/gpio.h +++ b/lib/include/gpio.h @@ -16,10 +16,14 @@ #define GPIO_PAD_PU_SEL0 ((volatile uint32_t *) 0x80000030) #define GPIO_PAD_PU_SEL1 ((volatile uint32_t *) 0x80000034) -#define GPIO_DATA_SET0 ((volatile uint32_t *) 0x80000048) -#define GPIO_DATA_SET1 ((volatile uint32_t *) 0x8000004c) -#define GPIO_DATA_RESET0 ((volatile uint32_t *) 0x80000050) -#define GPIO_DATA_RESET1 ((volatile uint32_t *) 0x80000054) +#define GPIO_DATA_SET0 ((volatile uint32_t *) 0x80000048) +#define GPIO_DATA_SET1 ((volatile uint32_t *) 0x8000004c) +#define GPIO_DATA_RESET0 ((volatile uint32_t *) 0x80000050) +#define GPIO_DATA_RESET1 ((volatile uint32_t *) 0x80000054) +#define GPIO_PAD_DIR_SET0 ((volatile uint32_t *) 0x80000058) +#define GPIO_PAD_DIR_SET1 ((volatile uint32_t *) 0x8000005c) +#define GPIO_PAD_DIR_RESET0 ((volatile uint32_t *) 0x80000060) +#define GPIO_PAD_DIR_RESET1 ((volatile uint32_t *) 0x80000064) /* select pullup or pulldown for GPIO 0-31 (b=0-31) */