aboutsummaryrefslogtreecommitdiffstats
path: root/boards/OLIMEX_LPC_P2148/board.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-12-19 10:03:11 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-12-19 10:03:11 +0000
commitf131e4297dc619b3f3148a079c634f2cec0fd687 (patch)
tree66164de11b5b76539a1886c9fe58cdb1c9ea86de /boards/OLIMEX_LPC_P2148/board.c
parentada9fb82aac5f1bc2465d4555380c2bef40cb8d3 (diff)
downloadChibiOS-f131e4297dc619b3f3148a079c634f2cec0fd687.tar.gz
ChibiOS-f131e4297dc619b3f3148a079c634f2cec0fd687.tar.bz2
ChibiOS-f131e4297dc619b3f3148a079c634f2cec0fd687.zip
LPC214x board files and demos updated.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2499 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'boards/OLIMEX_LPC_P2148/board.c')
-rw-r--r--boards/OLIMEX_LPC_P2148/board.c22
1 files changed, 5 insertions, 17 deletions
diff --git a/boards/OLIMEX_LPC_P2148/board.c b/boards/OLIMEX_LPC_P2148/board.c
index 26cce1d90..45c492cbf 100644
--- a/boards/OLIMEX_LPC_P2148/board.c
+++ b/boards/OLIMEX_LPC_P2148/board.c
@@ -54,25 +54,18 @@ static CH_IRQ_HANDLER(T0IrqHandler) {
/*
* Early initialization code.
- * This initialization is performed just after reset before BSS and DATA
- * segments initialization.
+ * This initialization must be performed just after stack setup and before
+ * any other initialization.
*/
-void hwinit0(void) {
+void __early_init(void) {
lpc214x_clock_init();
}
/*
- * Late initialization code.
- * This initialization is performed after BSS and DATA segments initialization
- * and before invoking the main() function.
+ * Board-specific initialization code.
*/
-void hwinit1(void) {
-
- /*
- * HAL initialization.
- */
- halInit();
+void boardInit(void) {
/*
* System Timer initialization, 1ms intervals.
@@ -85,9 +78,4 @@ void hwinit1(void) {
timer->TC_MCR = 3; /* Interrupt and clear TC on match MR0. */
timer->TC_TCR = 2; /* Reset counter and prescaler. */
timer->TC_TCR = 1; /* Timer enabled. */
-
- /*
- * ChibiOS/RT initialization.
- */
- chSysInit();
}