From 645f2217d5a318312132655324ddfc3464bf4d0f Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Tue, 5 Jun 2012 18:44:58 -0400 Subject: board_private.h: Add PMAP_ROW() convenience macro. Signed-off-by: Marti Bolivar --- wirish/boards_private.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'wirish') 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 #include +/* 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 { -- cgit v1.2.3