From 738618a9453909fbbff324e31c113ddcb722fb88 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Mon, 23 Aug 2010 23:02:43 -0300 Subject: [PATCH] Update IRQ_RF after reworking both boards. IRQ_RF was erroneously connected to P0_2 but it should go to P0_0. - atrf/fw/common/io.h: IRQ_RF is now at P0_0 - atrf/fw/atspi/atspi.c: updated and simplified P0 initialization --- atrf/fw/atspi/atspi.c | 4 +--- atrf/fw/common/io.h | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/atrf/fw/atspi/atspi.c b/atrf/fw/atspi/atspi.c index 950f12f..94ac6a2 100644 --- a/atrf/fw/atspi/atspi.c +++ b/atrf/fw/atspi/atspi.c @@ -63,9 +63,7 @@ static void init_io(void) SLP_TR = 0; SLP_TR_MODE |= 1 << SLP_TR_BIT; - P0 &= - ~((1 << 0) | (1 << 3) | (1 << 4) | (1 << 5) | (1 << 6) | (1 << 7)); - /* change 1 << 0 to 1 << 2 once 100813 boards are reworked */ + P0 = 1; /* IRQ_RF = 1; LED = 0; the rest is unused */ P3 = 0; #if 0 diff --git a/atrf/fw/common/io.h b/atrf/fw/common/io.h index 692d374..7ab8930 100644 --- a/atrf/fw/common/io.h +++ b/atrf/fw/common/io.h @@ -28,7 +28,7 @@ /* Miscellaneous RF signals */ #define nRST_RF P2_0 -#define IRQ_RF P0_2 /* change to P0_0 when 100813 board are reworked */ +#define IRQ_RF P0_0 #define SLP_TR P2_1 #endif /* !IO_H */