aboutsummaryrefslogtreecommitdiffstats
path: root/boards/OLIMEX_AVR_CAN
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-12-19 10:39:21 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-12-19 10:39:21 +0000
commitace3f844709b1bfdd4c88acbc943bdecf29f9f21 (patch)
treeaeaa2bcbb29d67e60379a06d92e804be566f4bbb /boards/OLIMEX_AVR_CAN
parent35c315a77a92d8ca0efefea329770c6bf9adca2d (diff)
downloadChibiOS-ace3f844709b1bfdd4c88acbc943bdecf29f9f21.tar.gz
ChibiOS-ace3f844709b1bfdd4c88acbc943bdecf29f9f21.tar.bz2
ChibiOS-ace3f844709b1bfdd4c88acbc943bdecf29f9f21.zip
AVR board files and demos updated.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2501 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'boards/OLIMEX_AVR_CAN')
-rw-r--r--boards/OLIMEX_AVR_CAN/board.c9
-rw-r--r--boards/OLIMEX_AVR_CAN/board.h4
2 files changed, 5 insertions, 8 deletions
diff --git a/boards/OLIMEX_AVR_CAN/board.c b/boards/OLIMEX_AVR_CAN/board.c
index cf2ced8a5..691dcbe13 100644
--- a/boards/OLIMEX_AVR_CAN/board.c
+++ b/boards/OLIMEX_AVR_CAN/board.c
@@ -32,9 +32,9 @@ CH_IRQ_HANDLER(TIMER0_COMP_vect) {
}
/*
- * Board initialization code.
+ * Board-specific initialization code.
*/
-void hwinit(void) {
+void boardInit(void) {
/*
* I/O ports setup.
@@ -76,9 +76,4 @@ void hwinit(void) {
TCNT0 = 0; /* Reset counter. */
TIFR0 = (1 << OCF0A); /* Reset pending. */
TIMSK0 = (1 << OCIE0A); /* IRQ on compare. */
-
- /*
- * HAL initialization.
- */
- halInit();
}
diff --git a/boards/OLIMEX_AVR_CAN/board.h b/boards/OLIMEX_AVR_CAN/board.h
index 70df97e66..18a6d9904 100644
--- a/boards/OLIMEX_AVR_CAN/board.h
+++ b/boards/OLIMEX_AVR_CAN/board.h
@@ -89,12 +89,14 @@
#define PORTE_LED (1 << 4)
#define PORTE_BUTTON (1 << 5)
+#if !defined(_FROM_ASM_)
#ifdef __cplusplus
extern "C" {
#endif
- void hwinit(void);
+ void boardInit(void);
#ifdef __cplusplus
}
#endif
+#endif /* _FROM_ASM_ */
#endif /* _BOARD_H_ */