diff options
Diffstat (limited to 'app/pins.h')
-rw-r--r-- | app/pins.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) |