aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--wirish/boards_private.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/wirish/boards_private.h b/wirish/boards_private.h
index 4607913..49867ca 100644
--- a/wirish/boards_private.h
+++ b/wirish/boards_private.h
@@ -40,6 +40,10 @@
#include <libmaple/rcc.h>
#include <libmaple/adc.h>
+/* Makes the PIN_MAP rows more human-readable. */
+#define PMAP_ROW(gpio_dev, gpio_bit, timer_dev, timer_ch, adc_dev, adc_ch) \
+ { gpio_dev, timer_dev, adc_dev, gpio_bit, timer_ch, adc_ch }
+
namespace wirish {
namespace priv {