From 675adde160fba196043bb471ae36a222238db49e Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sun, 19 Dec 2010 12:50:56 +0000 Subject: STM8 board files and demos updated. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2509 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- boards/ST_STM8L_DISCOVERY/board.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'boards/ST_STM8L_DISCOVERY/board.c') 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. -- cgit v1.2.3