diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-12-19 11:02:56 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-12-19 11:02:56 +0000 |
commit | fa1b222c21a4c2aee932d6605facb9706bf0dae3 (patch) | |
tree | a068446ef83e2dc26edab631dc54e1ca2faab50d /boards | |
parent | 13f5b1b97fa1ca9516665807682c164aa926fb78 (diff) | |
download | ChibiOS-fa1b222c21a4c2aee932d6605facb9706bf0dae3.tar.gz ChibiOS-fa1b222c21a4c2aee932d6605facb9706bf0dae3.tar.bz2 ChibiOS-fa1b222c21a4c2aee932d6605facb9706bf0dae3.zip |
PPC board files and demo updated (to be tested).
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2503 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'boards')
-rw-r--r-- | boards/GENERIC_SPC563/board.c | 22 | ||||
-rw-r--r-- | boards/GENERIC_SPC563/board.h | 5 |
2 files changed, 8 insertions, 19 deletions
diff --git a/boards/GENERIC_SPC563/board.c b/boards/GENERIC_SPC563/board.c index 63e882851..8356f122d 100644 --- a/boards/GENERIC_SPC563/board.c +++ b/boards/GENERIC_SPC563/board.c @@ -22,20 +22,18 @@ /*
* 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) {
spc563_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) {
+void boardInit(void) {
/*
* Various initialization (temporary code).
@@ -50,14 +48,4 @@ void hwinit1(void) { SIU.PCR[GPIO_BUTTON4].R = 0x0100; /* IBE. */
SIU.PCR[GPIO_SCI_A_TX].R = 0x0500; /* Primary | IBE. */
SIU.PCR[GPIO_SCI_A_RX].R = 0x0500; /* Primary | IBE. */
-
- /*
- * HAL initialization.
- */
- halInit();
-
- /*
- * ChibiOS/RT initialization.
- */
- chSysInit();
}
diff --git a/boards/GENERIC_SPC563/board.h b/boards/GENERIC_SPC563/board.h index 78213a1ae..53c1140ce 100644 --- a/boards/GENERIC_SPC563/board.h +++ b/boards/GENERIC_SPC563/board.h @@ -53,13 +53,14 @@ #define GPIO_LED3 190
#define GPIO_LED4 191
+#if !defined(_FROM_ASM_)
#ifdef __cplusplus
extern "C" {
#endif
- void hwinit0(void);
- void hwinit1(void);
+ void boardInit(void);
#ifdef __cplusplus
}
#endif
+#endif /* _FROM_ASM_ */
#endif /* _BOARD_H_ */
|