aboutsummaryrefslogtreecommitdiffstats
path: root/demos/AVR-AT90CANx-GCC/board.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-08-26 13:34:52 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-08-26 13:34:52 +0000
commit46827225678cea64b9519813fb60d5a0d388676f (patch)
tree5af3f158ec732acd47282e303ed461245ed881a2 /demos/AVR-AT90CANx-GCC/board.c
parent6b9e823237f11f44f70044d6cdc81751fca5b3b3 (diff)
downloadChibiOS-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/board.c')
-rw-r--r--demos/AVR-AT90CANx-GCC/board.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/demos/AVR-AT90CANx-GCC/board.c b/demos/AVR-AT90CANx-GCC/board.c
index 3119b82be..2fdf128a1 100644
--- a/demos/AVR-AT90CANx-GCC/board.c
+++ b/demos/AVR-AT90CANx-GCC/board.c
@@ -18,9 +18,9 @@
*/
#include <ch.h>
+#include <serial.h>
#include "board.h"
-#include "avr_serial.h"
CH_IRQ_HANDLER(TIMER0_COMP_vect) {
@@ -71,9 +71,9 @@ void hwinit(void) {
/*
* Timer 0 setup.
*/
- TCCR0A = (1 << WGM01) | (0 << WGM00) | // CTC mode.
+ TCCR0A = (1 << WGM01) | (0 << WGM00) | // CTC mode.
(0 << COM0A1) | (0 << COM0A0) | // OC0A disabled (normal I/O).
- (0 << CS02) | (1 << CS01) | (1 << CS00); // CLK/64 clock source.
+ (0 << CS02) | (1 << CS01) | (1 << CS00); // CLK/64 clock source.
OCR0A = F_CPU / 64 / CH_FREQUENCY - 1;
TCNT0 = 0; // Reset counter.
TIFR0 = (1 << OCF0A); // Reset pending (if any).
@@ -82,5 +82,5 @@ void hwinit(void) {
/*
* Other initializations.
*/
- serial_init();
+ sdInit();
}