Selaa lähdekoodia

X1000:drv_gpio.h:添加枚举成员“GPIO_PULL”/Add enum member "GPIO_PULL"

在枚举“gpio_function”中添加成员“GPIO_PULL”

Add the member "GPIO_PULL" to the enumeration "gpio_function".

Signed-off-by: Zhou Yanjie <zhouyanjie@zoho.com>
Zhou Yanjie 6 vuotta sitten
vanhempi
commit
a30587ff69
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      bsp/x1000/drivers/drv_gpio.h

+ 1 - 0
bsp/x1000/drivers/drv_gpio.h

@@ -115,6 +115,7 @@ enum gpio_function
     GPIO_INT_HI     = 0x09,  //1001, High Level trigger interrupt
     GPIO_INT_FE     = 0x0a,  //1010, Fall Edge trigger interrupt
     GPIO_INT_RE     = 0x0b,  //1011, Rise Edge trigger interrupt
+    GPIO_PULL 		= 0x10,  //0001 0000, GPIO enable pull
     GPIO_INPUT_PULL = 0x16,  //0001 0110, GPIO as input and enable pull
 };