aboutsummaryrefslogtreecommitdiffstats
path: root/demos/ARM7-AT91SAM7X-GCC
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-05-18 16:10:31 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-05-18 16:10:31 +0000
commit602cff4618efa156b746e20b668c6eab8615c438 (patch)
treec628512c1106e203c1e2589e7d9cb4cabca514dd /demos/ARM7-AT91SAM7X-GCC
parent3787f5d2a55bb4f68059f3218b7c58d1431a6660 (diff)
downloadChibiOS-602cff4618efa156b746e20b668c6eab8615c438.tar.gz
ChibiOS-602cff4618efa156b746e20b668c6eab8615c438.tar.bz2
ChibiOS-602cff4618efa156b746e20b668c6eab8615c438.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@295 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/ARM7-AT91SAM7X-GCC')
-rw-r--r--demos/ARM7-AT91SAM7X-GCC/Makefile2
-rw-r--r--demos/ARM7-AT91SAM7X-GCC/main.c5
2 files changed, 5 insertions, 2 deletions
diff --git a/demos/ARM7-AT91SAM7X-GCC/Makefile b/demos/ARM7-AT91SAM7X-GCC/Makefile
index 8ac2a69af..c799658c8 100644
--- a/demos/ARM7-AT91SAM7X-GCC/Makefile
+++ b/demos/ARM7-AT91SAM7X-GCC/Makefile
@@ -102,7 +102,7 @@ TOPT = -mthumb -D THUMB
# chconf.h.
# NOTE: -falign-functions=16 may improve the performance, not always, but
# increases the code size.
-OPT = -O2 -ggdb -fomit-frame-pointer -mabi=apcs-gnu
+OPT = -ggdb -fomit-frame-pointer -mabi=apcs-gnu
#OPT += -ffixed-r7
#OPT += -falign-functions=16
diff --git a/demos/ARM7-AT91SAM7X-GCC/main.c b/demos/ARM7-AT91SAM7X-GCC/main.c
index 27fc20a3d..2ac2f7e08 100644
--- a/demos/ARM7-AT91SAM7X-GCC/main.c
+++ b/demos/ARM7-AT91SAM7X-GCC/main.c
@@ -21,7 +21,8 @@
#include <test.h>
#include "board.h"
-#include "sam7x_serial.h"
+#include <sam7x_serial.h>
+#include <sam7x_emac.h>
static WorkingArea(waThread1, 64);
static msg_t Thread1(void *arg) {
@@ -40,6 +41,8 @@ static msg_t Thread1(void *arg) {
*/
int main(int argc, char **argv) {
+ InitEMAC(AT91C_AIC_PRIOR_HIGHEST - 3);
+
/*
* The main() function becomes a thread here then the interrupts are
* enabled and ChibiOS/RT goes live.