From: Ivan Grokhotkov Date: Fri, 5 Jan 2018 03:35:39 +0000 (+0800) Subject: gpio: add special GPIO signal values X-Git-Tag: v3.1-beta1~274^2~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=907fc1167abc495e2b8d66f018bd838fb4747c01;p=esp-idf gpio: add special GPIO signal values --- diff --git a/components/esp32/include/rom/gpio.h b/components/esp32/include/rom/gpio.h index 2ce7aef6e1..a760d1a3d7 100644 --- a/components/esp32/include/rom/gpio.h +++ b/components/esp32/include/rom/gpio.h @@ -40,6 +40,9 @@ extern "C" { #define GPIO_ID_PIN(n) (GPIO_ID_PIN0+(n)) #define GPIO_PIN_ADDR(i) (GPIO_PIN0_REG + i*4) +#define GPIO_FUNC_IN_HIGH 0x38 +#define GPIO_FUNC_IN_LOW 0x30 + #define GPIO_ID_IS_PIN_REGISTER(reg_id) \ ((reg_id >= GPIO_ID_PIN0) && (reg_id <= GPIO_ID_PIN(GPIO_PIN_COUNT-1)))