diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-12-19 09:13:54 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-12-19 09:13:54 +0000 |
commit | 7d7d9727f9a280d63157ac9997fe271610f05b1e (patch) | |
tree | fe51a6af796f2d0976025db4b68d553875bf0994 /boards/ST_STM3210C_EVAL/board.c | |
parent | 3b378d2b9b86bc4242873982a9222e3abcbfaead (diff) | |
download | ChibiOS-7d7d9727f9a280d63157ac9997fe271610f05b1e.tar.gz ChibiOS-7d7d9727f9a280d63157ac9997fe271610f05b1e.tar.bz2 ChibiOS-7d7d9727f9a280d63157ac9997fe271610f05b1e.zip |
STM32 board files and demos now use the new organization.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2497 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'boards/ST_STM3210C_EVAL/board.c')
-rw-r--r-- | boards/ST_STM3210C_EVAL/board.c | 25 |
1 files changed, 6 insertions, 19 deletions
diff --git a/boards/ST_STM3210C_EVAL/board.c b/boards/ST_STM3210C_EVAL/board.c index 0dfa60bfc..4b907f5ed 100644 --- a/boards/ST_STM3210C_EVAL/board.c +++ b/boards/ST_STM3210C_EVAL/board.c @@ -36,34 +36,21 @@ const PALConfig pal_default_config = /*
* 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) {
stm32_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) {
/*
- * HAL initialization.
- */
- halInit();
-
- /*
- * Remap USART2 to the PD5/PD6 pins, done after halInit since HAL resets
- * these.
+ * Remap USART2 to the PD5/PD6 pins.
*/
AFIO->MAPR |= AFIO_MAPR_USART2_REMAP;
-
- /*
- * ChibiOS/RT initialization.
- */
- chSysInit();
}
|