diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-08-26 13:34:52 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-08-26 13:34:52 +0000 |
commit | 46827225678cea64b9519813fb60d5a0d388676f (patch) | |
tree | 5af3f158ec732acd47282e303ed461245ed881a2 /demos/AVR-AT90CANx-GCC/main.c | |
parent | 6b9e823237f11f44f70044d6cdc81751fca5b3b3 (diff) | |
download | ChibiOS-46827225678cea64b9519813fb60d5a0d388676f.tar.gz ChibiOS-46827225678cea64b9519813fb60d5a0d388676f.tar.bz2 ChibiOS-46827225678cea64b9519813fb60d5a0d388676f.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1106 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/AVR-AT90CANx-GCC/main.c')
-rw-r--r-- | demos/AVR-AT90CANx-GCC/main.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/demos/AVR-AT90CANx-GCC/main.c b/demos/AVR-AT90CANx-GCC/main.c index aa9b99dc0..a19b1e9c5 100644 --- a/demos/AVR-AT90CANx-GCC/main.c +++ b/demos/AVR-AT90CANx-GCC/main.c @@ -18,8 +18,8 @@ */
#include <ch.h>
+#include <serial.h>
#include <evtimer.h>
-#include <avr_serial.h>
#include <avr/io.h>
@@ -41,7 +41,7 @@ static void TimerHandler(eventid_t id) { msg_t TestThread(void *p);
if (!(PORTE & PORTE_BUTTON))
- TestThread(&SER2);
+ TestThread(&SD2);
}
int main(int argc, char **argv) {
@@ -60,6 +60,11 @@ int main(int argc, char **argv) { chSysInit();
/*
+ * Activates the serial driver 2 using the driver default configuration.
+ */
+ sdStart(&SD2, NULL);
+
+ /*
* Event Timer initialization.
*/
evtInit(&evt, MS2ST(500)); /* Initializes an event timer object. */
|