aboutsummaryrefslogtreecommitdiffstats
path: root/demos/AVR-AT90CANx-GCC/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'demos/AVR-AT90CANx-GCC/main.c')
-rw-r--r--demos/AVR-AT90CANx-GCC/main.c9
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. */