From 6cffb5d8b4b3b84daa0744021356be066f7ca698 Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Fri, 16 Sep 2016 09:43:52 +1000 Subject: [PATCH] rom/gpio.h: Use new GPIO_PIN0_REG register name Closes github #12 --- components/esp32/include/rom/gpio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esp32/include/rom/gpio.h b/components/esp32/include/rom/gpio.h index a6ca66f1d..b740a020b 100644 --- a/components/esp32/include/rom/gpio.h +++ b/components/esp32/include/rom/gpio.h @@ -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)))