File tree Expand file tree Collapse file tree 5 files changed +13
-12
lines changed
targets/TARGET_STM/TARGET_STM32L1
TARGET_STM32L151xC/TARGET_XDOT_L151CC
TARGET_STM32L152xC/TARGET_MOTE_L152RC Expand file tree Collapse file tree 5 files changed +13
-12
lines changed Original file line number Diff line number Diff line change 3131
3232#if !defined(MBED_RAM_SIZE )
3333#define MBED_RAM_SIZE 0x8000 // 32 KB
34- // 0x4000 // 16 KB STM32L151CB STM32L151RB STM32L151VB
35- // 0x8000 // 32 KB STM32L151CBxxA STM32L151RBxxA STM32L151VBxxA
34+ // 0x4000 // 16 KB STM32L151CB STM32L151RB STM32L151VB
35+ // 0x8000 // 32 KB STM32L151CBxxA STM32L151RBxxA STM32L151VBxxA
3636#warning "check MBED_RAM_SIZE value in cmsis_nvic.h"
3737#endif
3838
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ uint8_t SetSysClock_PLL_HSI(void);
6363 * @param None
6464 * @retval None
6565 */
66- void SystemInit (void )
66+ void SystemInit (void )
6767{
6868 /*!< Set MSION bit */
6969 RCC -> CR |= (uint32_t )0x00000100 ;
@@ -131,7 +131,7 @@ void SetSysClock(void)
131131 {
132132 /* 3- If fail start with HSI clock */
133133 if (SetSysClock_PLL_HSI () == 0 ) {
134- while (1 ) {
134+ while (1 ) {
135135 // [TODO] Put something here to tell the user that a problem occured...
136136 }
137137 }
Original file line number Diff line number Diff line change 3131
3232#if !defined(MBED_RAM_SIZE )
3333#define MBED_RAM_SIZE 0x8000 // 32 KB
34- // 0x4000 // 16 KB STM32L152CB STM32L152RB STM32L152VB
35- // 0x8000 // 32 KB STM32L152CBxxA STM32L152RBxxA STM32L152VBxxA
34+ // 0x4000 // 16 KB STM32L152CB STM32L152RB STM32L152VB
35+ // 0x8000 // 32 KB STM32L152CBxxA STM32L152RBxxA STM32L152VBxxA
3636#warning "check MBED_RAM_SIZE value in cmsis_nvic.h"
3737#endif
3838
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ uint8_t SetSysClock_PLL_HSI(void);
6363 * @param None
6464 * @retval None
6565 */
66- void SystemInit (void )
66+ void SystemInit (void )
6767{
6868 /*!< Set MSION bit */
6969 RCC -> CR |= (uint32_t )0x00000100 ;
@@ -117,7 +117,7 @@ void SetSysClock(void)
117117 {
118118 /* 3- If fail start with HSI clock */
119119 if (SetSysClock_PLL_HSI () == 0 ) {
120- while (1 ) {
120+ while (1 ) {
121121 // [TODO] Put something here to tell the user that a problem occured...
122122 }
123123 }
@@ -137,8 +137,9 @@ uint8_t SetSysClock_PLL_HSE(uint8_t bypass)
137137 RCC_ClkInitTypeDef RCC_ClkInitStruct ;
138138 RCC_OscInitTypeDef RCC_OscInitStruct ;
139139
140- if (__HAL_RCC_GET_SYSCLK_SOURCE () == RCC_CFGR_SWS_PLL )
141- return 1 ; // already on HSE PLL, could occur from deepsleep waking
140+ if (__HAL_RCC_GET_SYSCLK_SOURCE () == RCC_CFGR_SWS_PLL ) {
141+ return 1 ; // already on HSE PLL, could occur from deepsleep waking
142+ }
142143
143144 /* Used to gain time after DeepSleep in case HSI is used */
144145 if (__HAL_RCC_GET_FLAG (RCC_FLAG_HSIRDY ) != RESET ) {
Original file line number Diff line number Diff line change 1717#define __US_TICKER_DATA_H
1818
1919#ifdef __cplusplus
20- extern "C" {
20+ extern "C" {
2121#endif
2222
2323#include "stm32l1xx.h"
2424#include "stm32l1xx_ll_tim.h"
2525#include "cmsis_nvic.h"
26-
26+
2727#define TIM_MST TIM5
2828#define TIM_MST_IRQ TIM5_IRQn
2929#define TIM_MST_RCC __TIM5_CLK_ENABLE()
You can’t perform that action at this time.
0 commit comments