aboutsummaryrefslogtreecommitdiffstats
path: root/demos/AVR-ATmega128-GCC/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'demos/AVR-ATmega128-GCC/main.c')
-rw-r--r--demos/AVR-ATmega128-GCC/main.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/demos/AVR-ATmega128-GCC/main.c b/demos/AVR-ATmega128-GCC/main.c
index 405770d00..dc3fd33c3 100644
--- a/demos/AVR-ATmega128-GCC/main.c
+++ b/demos/AVR-ATmega128-GCC/main.c
@@ -18,8 +18,8 @@
*/
#include <ch.h>
+#include <serial.h>
#include <evtimer.h>
-#include <avr_serial.h>
#include <avr/io.h>
@@ -43,7 +43,7 @@ static void TimerHandler(eventid_t id) {
msg_t TestThread(void *p);
if (!(PINA & PORTA_BUTTON1))
- TestThread(&SER2);
+ TestThread(&SD2);
}
int main(int argc, char **argv) {
@@ -62,6 +62,11 @@ int main(int argc, char **argv) {
chSysInit();
/*
+ * Activates the serial driver 2 using the driver default configuration.
+ */
+ sdStart(&SD2, NULL);
+
+ /*
* This initialization requires the OS already active because it uses delay
* APIs inside.
*/