diff options
Diffstat (limited to 'demos')
-rw-r--r-- | demos/ARM7-AT91SAM7X-GCC/board.c | 4 | ||||
-rw-r--r-- | demos/ARM7-AT91SAM7X-GCC/board.h | 9 | ||||
-rw-r--r-- | demos/ARM7-AT91SAM7X-LWIP-GCC/board.c | 4 | ||||
-rw-r--r-- | demos/ARM7-AT91SAM7X-LWIP-GCC/board.h | 9 | ||||
-rw-r--r-- | demos/ARM7-AT91SAM7X-UIP-GCC/board.c | 4 | ||||
-rw-r--r-- | demos/ARM7-AT91SAM7X-UIP-GCC/board.h | 9 |
6 files changed, 33 insertions, 6 deletions
diff --git a/demos/ARM7-AT91SAM7X-GCC/board.c b/demos/ARM7-AT91SAM7X-GCC/board.c index 3faae501a..920ed7402 100644 --- a/demos/ARM7-AT91SAM7X-GCC/board.c +++ b/demos/ARM7-AT91SAM7X-GCC/board.c @@ -59,10 +59,12 @@ static CH_IRQ_HANDLER(SYSIrqHandler) { /*
* Digital I/O ports static configuration as defined in @p board.h.
*/
-static const AT91SAM7XPIOConfig config =
+static const AT91SAM7PIOConfig config =
{
{VAL_PIOA_ODSR, VAL_PIOA_OSR, VAL_PIOA_PUSR},
+#if defined(SAM7X128) || defined(SAM7X256) || defined(SAM7X512)
{VAL_PIOB_ODSR, VAL_PIOB_OSR, VAL_PIOB_PUSR}
+#endif
};
/*
diff --git a/demos/ARM7-AT91SAM7X-GCC/board.h b/demos/ARM7-AT91SAM7X-GCC/board.h index c56f50258..2cb285429 100644 --- a/demos/ARM7-AT91SAM7X-GCC/board.h +++ b/demos/ARM7-AT91SAM7X-GCC/board.h @@ -20,7 +20,14 @@ #ifndef _BOARD_H_
#define _BOARD_H_
-#include "at91lib/AT91SAM7X256.h"
+/*
+ * Select your platform by modifying the following line. + */
+#if !defined(SAM7_PLATFORM)
+#define SAM7_PLATFORM SAM7X256
+#endif
+
+#include "at91sam7.h"
#define BOARD_OLIMEX_SAM7_EX256
diff --git a/demos/ARM7-AT91SAM7X-LWIP-GCC/board.c b/demos/ARM7-AT91SAM7X-LWIP-GCC/board.c index e988aaa86..7f129abaa 100644 --- a/demos/ARM7-AT91SAM7X-LWIP-GCC/board.c +++ b/demos/ARM7-AT91SAM7X-LWIP-GCC/board.c @@ -60,10 +60,12 @@ static CH_IRQ_HANDLER(SYSIrqHandler) { /*
* Digital I/O ports static configuration as defined in @p board.h.
*/
-static const AT91SAM7XPIOConfig config =
+static const AT91SAM7PIOConfig config =
{
{VAL_PIOA_ODSR, VAL_PIOA_OSR, VAL_PIOA_PUSR},
+#if defined(SAM7X128) || defined(SAM7X256) || defined(SAM7X512)
{VAL_PIOB_ODSR, VAL_PIOB_OSR, VAL_PIOB_PUSR}
+#endif
};
/*
diff --git a/demos/ARM7-AT91SAM7X-LWIP-GCC/board.h b/demos/ARM7-AT91SAM7X-LWIP-GCC/board.h index c56f50258..c0b428561 100644 --- a/demos/ARM7-AT91SAM7X-LWIP-GCC/board.h +++ b/demos/ARM7-AT91SAM7X-LWIP-GCC/board.h @@ -20,7 +20,14 @@ #ifndef _BOARD_H_
#define _BOARD_H_
-#include "at91lib/AT91SAM7X256.h"
+/*
+ * Select your platform by modifying the following line.
+ */
+#if !defined(SAM7_PLATFORM)
+#define SAM7_PLATFORM SAM7X256
+#endif
+
+#include "at91sam7.h"
#define BOARD_OLIMEX_SAM7_EX256
diff --git a/demos/ARM7-AT91SAM7X-UIP-GCC/board.c b/demos/ARM7-AT91SAM7X-UIP-GCC/board.c index 9dbd5f0e4..9d0ed6e22 100644 --- a/demos/ARM7-AT91SAM7X-UIP-GCC/board.c +++ b/demos/ARM7-AT91SAM7X-UIP-GCC/board.c @@ -61,10 +61,12 @@ static CH_IRQ_HANDLER(SYSIrqHandler) { /*
* Digital I/O ports static configuration as defined in @p board.h.
*/
-static const AT91SAM7XPIOConfig config =
+static const AT91SAM7PIOConfig config =
{
{VAL_PIOA_ODSR, VAL_PIOA_OSR, VAL_PIOA_PUSR},
+#if defined(SAM7X128) || defined(SAM7X256) || defined(SAM7X512)
{VAL_PIOB_ODSR, VAL_PIOB_OSR, VAL_PIOB_PUSR}
+#endif
};
/*
diff --git a/demos/ARM7-AT91SAM7X-UIP-GCC/board.h b/demos/ARM7-AT91SAM7X-UIP-GCC/board.h index c56f50258..c0b428561 100644 --- a/demos/ARM7-AT91SAM7X-UIP-GCC/board.h +++ b/demos/ARM7-AT91SAM7X-UIP-GCC/board.h @@ -20,7 +20,14 @@ #ifndef _BOARD_H_
#define _BOARD_H_
-#include "at91lib/AT91SAM7X256.h"
+/*
+ * Select your platform by modifying the following line.
+ */
+#if !defined(SAM7_PLATFORM)
+#define SAM7_PLATFORM SAM7X256
+#endif
+
+#include "at91sam7.h"
#define BOARD_OLIMEX_SAM7_EX256
|