From e6bd2a1318e8bee70d8a4190826df84c775a9742 Mon Sep 17 00:00:00 2001 From: Jim Paris Date: Sat, 2 Oct 2010 16:07:40 -0400 Subject: [PATCH] Name the GPIO structure so we can set multiple bits at once --- lib/include/gpio.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/include/gpio.h b/lib/include/gpio.h index 09a3a1373..a705c3ad1 100644 --- a/lib/include/gpio.h +++ b/lib/include/gpio.h @@ -63,11 +63,11 @@ struct GPIO_struct { #define _IO(x) \ union { struct { uint32_t x##0; uint32_t x##1; }; \ struct { _REP(x, 1) }; \ - struct { _REP(GPIO, 1) } x; }; + struct GPIO_##x { _REP(GPIO, 1) } x; }; #define _IO_2bit(x) \ union { struct { uint32_t x##0; uint32_t x##1; uint32_t x##2; uint32_t x##3; }; \ struct { _REP(x, 2) }; \ - struct { _REP(GPIO, 2) } x; }; + struct GPIO_##x { _REP(GPIO, 2) } x; }; _IO(PAD_DIR); _IO(DATA);