]> granicus.if.org Git - esp-idf/commitdiff
gpio: add special GPIO signal values
authorIvan Grokhotkov <ivan@espressif.com>
Fri, 5 Jan 2018 03:35:39 +0000 (11:35 +0800)
committerIvan Grokhotkov <ivan@espressif.com>
Wed, 11 Apr 2018 03:06:50 +0000 (11:06 +0800)
components/esp32/include/rom/gpio.h

index 2ce7aef6e1e5cae08b6761d82387a77c8f40c312..a760d1a3d766c96eac3a39061b8c123cbc3dc8e4 100644 (file)
@@ -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)))