From 0f9f67d002922874904ad6bc11af8f708ca1eb79 Mon Sep 17 00:00:00 2001 From: Mariano Alvira Date: Mon, 8 Mar 2010 17:35:34 -0500 Subject: [PATCH] add dir set and reset --- lib/include/gpio.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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) */