mbed library sources
Fork of mbed-src by
Diff: targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/system_stm32l0xx.c
- Revision:
- 439:c4382fcbbaed
- Parent:
- 382:ee426a420dbb
--- a/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/system_stm32l0xx.c Mon Dec 15 09:15:06 2014 +0000 +++ b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/system_stm32l0xx.c Mon Dec 15 09:30:07 2014 +0000 @@ -36,8 +36,7 @@ * APB2CLK (MHz) | 32 | 32 *----------------------------------------------------------------------------- * USB capable (48 MHz precise clock) | YES | YES - *----------------------------------------------------------------------------- - * + *----------------------------------------------------------------------------- ****************************************************************************** * @attention * @@ -81,6 +80,7 @@ */ #include "stm32l0xx.h" +#include "hal_tick.h" #if !defined (HSE_VALUE) #define HSE_VALUE ((uint32_t)8000000) /*!< Value of the External oscillator in Hz */ @@ -207,11 +207,16 @@ #endif /* Configure the Cube driver */ + SystemCoreClock = 8000000; // At this stage the HSI is used as system clock HAL_Init(); /* Configure the System clock source, PLL Multiplier and Divider factors, AHB/APBx prescalers and Flash settings */ SetSysClock(); + + /* Reset the timer to avoid issues after the RAM initialization */ + TIM_MST_RESET_ON; + TIM_MST_RESET_OFF; } /** @@ -448,12 +453,6 @@ return 1; // OK } -/* Used for the different timeouts in the HAL */ -void SysTick_Handler(void) -{ - HAL_IncTick(); -} - /** * @} */