altos/stm: Add AO_EXTI_MODE_PULL_NONE
authorKeith Packard <keithp@keithp.com>
Thu, 2 Nov 2017 16:12:18 +0000 (09:12 -0700)
committerKeith Packard <keithp@keithp.com>
Sun, 12 Nov 2017 00:36:41 +0000 (16:36 -0800)
This is clearer than using '0'.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/stm/ao_exti.h

index 4f3e6132c44cca322e8d892249127654ec8d6e83..8aa2bdca9ad73cca16a2559ee1becd2f5c51075a 100644 (file)
@@ -21,6 +21,7 @@
 
 #define AO_EXTI_MODE_RISING    1
 #define AO_EXTI_MODE_FALLING   2
+#define AO_EXTI_MODE_PULL_NONE 0
 #define AO_EXTI_MODE_PULL_UP   4
 #define AO_EXTI_MODE_PULL_DOWN 8
 #define AO_EXTI_PRIORITY_LOW   16