diff options
Diffstat (limited to 'demos')
| -rw-r--r-- | demos/ARM7-AT91SAM7X-GCC/Makefile | 2 | ||||
| -rw-r--r-- | demos/ARM7-AT91SAM7X-GCC/main.c | 5 |
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.
|
