diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-08-21 11:08:53 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-08-21 11:08:53 +0000 |
commit | e742f3abaa068c03b248894f09bc14fe510a08cd (patch) | |
tree | bc5ffdee25a17b4cafe22d5d1d45f6cccec03fba /demos/ARM7-AT91SAM7X-GCC/board.c | |
parent | c3fa78f3d1a9216d3827184d1e5a4ce78bb79e2d (diff) | |
download | ChibiOS-e742f3abaa068c03b248894f09bc14fe510a08cd.tar.gz ChibiOS-e742f3abaa068c03b248894f09bc14fe510a08cd.tar.bz2 ChibiOS-e742f3abaa068c03b248894f09bc14fe510a08cd.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1098 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/ARM7-AT91SAM7X-GCC/board.c')
-rw-r--r-- | demos/ARM7-AT91SAM7X-GCC/board.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/demos/ARM7-AT91SAM7X-GCC/board.c b/demos/ARM7-AT91SAM7X-GCC/board.c index aac51cf0c..fb52c8f3b 100644 --- a/demos/ARM7-AT91SAM7X-GCC/board.c +++ b/demos/ARM7-AT91SAM7X-GCC/board.c @@ -19,12 +19,11 @@ #include <ch.h>
#include <pal.h>
+#include <serial.h>
#include "board.h"
#include "at91lib/aic.h"
-#include <sam7x_serial.h>
-
/*
* FIQ Handler weak symbol defined in vectors.s. */
@@ -169,7 +168,7 @@ void hwinit1(void) { /*
* Serial driver initialization, RTS/CTS pins enabled for USART0 only.
*/
- serial_init(AT91C_AIC_PRIOR_HIGHEST - 2, AT91C_AIC_PRIOR_HIGHEST - 2);
+ sdInit();
AT91C_BASE_PIOA->PIO_PDR = AT91C_PA3_RTS0 | AT91C_PA4_CTS0;
AT91C_BASE_PIOA->PIO_ASR = AT91C_PIO_PA3 | AT91C_PIO_PA4;
AT91C_BASE_PIOA->PIO_PPUDR = AT91C_PIO_PA3 | AT91C_PIO_PA4;
|