diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-12-19 12:50:56 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-12-19 12:50:56 +0000 |
commit | 675adde160fba196043bb471ae36a222238db49e (patch) | |
tree | 20a09aa8dc7d904e18b8663ddcd40da667fab95e /boards/RAISONANCE_REVA_STM8S | |
parent | 7c1828c96c3b05cba909d6051d112725f2310d66 (diff) | |
download | ChibiOS-675adde160fba196043bb471ae36a222238db49e.tar.gz ChibiOS-675adde160fba196043bb471ae36a222238db49e.tar.bz2 ChibiOS-675adde160fba196043bb471ae36a222238db49e.zip |
STM8 board files and demos updated.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2509 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'boards/RAISONANCE_REVA_STM8S')
-rw-r--r-- | boards/RAISONANCE_REVA_STM8S/board.c | 11 | ||||
-rw-r--r-- | boards/RAISONANCE_REVA_STM8S/board.h | 4 |
2 files changed, 7 insertions, 8 deletions
diff --git a/boards/RAISONANCE_REVA_STM8S/board.c b/boards/RAISONANCE_REVA_STM8S/board.c index 61a6f2752..92fcc58a0 100644 --- a/boards/RAISONANCE_REVA_STM8S/board.c +++ b/boards/RAISONANCE_REVA_STM8S/board.c @@ -24,6 +24,7 @@ * @brief PAL setup.
* @details Digital I/O ports static configuration as defined in @p board.h.
*/
+#if HAL_USE_PAL || defined(__DOXYGEN__)
ROMCONST PALConfig pal_default_config =
{
{
@@ -36,6 +37,7 @@ ROMCONST PALConfig pal_default_config = {VAL_GPIOGODR, 0, VAL_GPIOGDDR, VAL_GPIOGCR1, VAL_GPIOGCR2},
}
};
+#endif
/*
* TIM 2 clock after the prescaler.
@@ -60,14 +62,9 @@ CH_IRQ_HANDLER(13) { }
/*
- * Board initialization code.
+ * Board-specific initialization code.
*/
-void hwinit(void) {
-
- /*
- * HAL initialization.
- */
- halInit();
+void boardInit(void) {
/*
* TIM2 initialization as system tick.
diff --git a/boards/RAISONANCE_REVA_STM8S/board.h b/boards/RAISONANCE_REVA_STM8S/board.h index 5434bd655..a3a508f5a 100644 --- a/boards/RAISONANCE_REVA_STM8S/board.h +++ b/boards/RAISONANCE_REVA_STM8S/board.h @@ -174,12 +174,14 @@ #define VAL_GPIOICR1 0xFF /* All pull-up. */
#define VAL_GPIOICR2 0
+#if !defined(_FROM_ASM_)
#ifdef __cplusplus
extern "C" {
#endif
- void hwinit(void);
+ void boardInit(void);
#ifdef __cplusplus
}
#endif
+#endif /* _FROM_ASM_ */
#endif /* _BOARD_H_ */
|