aboutsummaryrefslogtreecommitdiffstats
path: root/boards/ST_STM8L_DISCOVERY/board.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-12-19 12:50:56 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-12-19 12:50:56 +0000
commit675adde160fba196043bb471ae36a222238db49e (patch)
tree20a09aa8dc7d904e18b8663ddcd40da667fab95e /boards/ST_STM8L_DISCOVERY/board.c
parent7c1828c96c3b05cba909d6051d112725f2310d66 (diff)
downloadChibiOS-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/ST_STM8L_DISCOVERY/board.c')
-rw-r--r--boards/ST_STM8L_DISCOVERY/board.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/boards/ST_STM8L_DISCOVERY/board.c b/boards/ST_STM8L_DISCOVERY/board.c
index c7c44809e..b46bf007d 100644
--- a/boards/ST_STM8L_DISCOVERY/board.c
+++ b/boards/ST_STM8L_DISCOVERY/board.c
@@ -25,6 +25,7 @@
* @details Digital I/O ports static configuration as defined in @p board.h.
* This variable is used by the HAL when initializing the PAL driver.
*/
+#if HAL_USE_PAL || defined(__DOXYGEN__)
ROMCONST PALConfig pal_default_config =
{
{
@@ -36,6 +37,7 @@ ROMCONST PALConfig pal_default_config =
{VAL_GPIOFODR, 0, VAL_GPIOFDDR, VAL_GPIOFCR1, VAL_GPIOFCR2},
}
};
+#endif
/*
* TIM 2 clock after the prescaler.
@@ -44,14 +46,9 @@ ROMCONST PALConfig pal_default_config =
#define TIM2_ARR ((TIM2_CLOCK / CH_FREQUENCY) - 1)
/*
- * Board initialization code.
+ * Board-specific initialization code.
*/
-void hwinit(void) {
-
- /*
- * HAL initialization.
- */
- halInit();
+void boardInit(void) {
/*
* TIM2 initialization as system tick.