summaryrefslogtreecommitdiffstats
path: root/app/pins.h
diff options
context:
space:
mode:
Diffstat (limited to 'app/pins.h')
-rw-r--r--app/pins.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/pins.h b/app/pins.h
index 723ca82..9892cf1 100644
--- a/app/pins.h
+++ b/app/pins.h
@@ -49,6 +49,10 @@
gpio_mode_setup( a ## _PORT, GPIO_MODE_INPUT, GPIO_PUPD_NONE, a ); \
} while (0)
+#define MAP_ANALOG_INPUT(a) do { \
+ gpio_mode_setup( a ## _PORT, GPIO_MODE_ANALOG, GPIO_PUPD_NONE, a ); \
+ } while (0)
+
#define CLEAR(a) gpio_clear( a ## _PORT, a)
#define SET(a) gpio_set( a ## _PORT, a)