diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-12-19 10:25:31 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-12-19 10:25:31 +0000 |
commit | 35c315a77a92d8ca0efefea329770c6bf9adca2d (patch) | |
tree | a8aa8da453470d587a2ee236de7bfe2f4c859676 /boards/OLIMEX_SAM7_P256/board.c | |
parent | f131e4297dc619b3f3148a079c634f2cec0fd687 (diff) | |
download | ChibiOS-35c315a77a92d8ca0efefea329770c6bf9adca2d.tar.gz ChibiOS-35c315a77a92d8ca0efefea329770c6bf9adca2d.tar.bz2 ChibiOS-35c315a77a92d8ca0efefea329770c6bf9adca2d.zip |
AT91SAM7x board files and demos updated.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2500 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'boards/OLIMEX_SAM7_P256/board.c')
-rw-r--r-- | boards/OLIMEX_SAM7_P256/board.c | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/boards/OLIMEX_SAM7_P256/board.c b/boards/OLIMEX_SAM7_P256/board.c index 12b221930..cd9a43873 100644 --- a/boards/OLIMEX_SAM7_P256/board.c +++ b/boards/OLIMEX_SAM7_P256/board.c @@ -54,10 +54,10 @@ static CH_IRQ_HANDLER(SYSIrqHandler) { /*
* 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) {
/* Watchdog disabled.*/
AT91C_BASE_WDTC->WDTC_WDMR = AT91C_WDTC_WDDIS;
@@ -66,16 +66,9 @@ void hwinit0(void) { }
/*
- * 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) {
/*
* LED pins setup.
@@ -106,9 +99,4 @@ void hwinit1(void) { AIC_EnableIT(AT91C_ID_SYS);
AT91C_BASE_PITC->PITC_PIMR = (MCK / 16 / CH_FREQUENCY) - 1;
AT91C_BASE_PITC->PITC_PIMR |= AT91C_PITC_PITEN | AT91C_PITC_PITIEN;
-
- /*
- * ChibiOS/RT initialization.
- */
- chSysInit();
}
|