]> granicus.if.org Git - esp-idf/commitdiff
rom/gpio.h: Use new GPIO_PIN0_REG register name
authorAngus Gratton <angus@espressif.com>
Thu, 15 Sep 2016 23:43:52 +0000 (09:43 +1000)
committerAngus Gratton <angus@espressif.com>
Thu, 15 Sep 2016 23:43:52 +0000 (09:43 +1000)
Closes github #12

components/esp32/include/rom/gpio.h

index a6ca66f1dee6b519e09348aefea58e7b100287b6..b740a020b6f9d00e98fac42af266cc93d77fe4f1 100644 (file)
@@ -38,7 +38,7 @@ extern "C" {
 #define GPIO_PIN_COUNT                  40
 #define GPIO_ID_PIN0                    0
 #define GPIO_ID_PIN(n)                  (GPIO_ID_PIN0+(n))
-#define GPIO_PIN_ADDR(i)                (GPIO_PIN0 + i*4)
+#define GPIO_PIN_ADDR(i)                (GPIO_PIN0_REG + i*4)
 
 #define GPIO_ID_IS_PIN_REGISTER(reg_id) \
     ((reg_id >= GPIO_ID_PIN0) && (reg_id <= GPIO_ID_PIN(GPIO_PIN_COUNT-1)))