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 31
31
32
32
#if !defined(MBED_RAM_SIZE )
33
33
#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
36
36
#warning "check MBED_RAM_SIZE value in cmsis_nvic.h"
37
37
#endif
38
38
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ uint8_t SetSysClock_PLL_HSI(void);
63
63
* @param None
64
64
* @retval None
65
65
*/
66
- void SystemInit (void )
66
+ void SystemInit (void )
67
67
{
68
68
/*!< Set MSION bit */
69
69
RCC -> CR |= (uint32_t )0x00000100 ;
@@ -131,7 +131,7 @@ void SetSysClock(void)
131
131
{
132
132
/* 3- If fail start with HSI clock */
133
133
if (SetSysClock_PLL_HSI () == 0 ) {
134
- while (1 ) {
134
+ while (1 ) {
135
135
// [TODO] Put something here to tell the user that a problem occured...
136
136
}
137
137
}
Original file line number Diff line number Diff line change 31
31
32
32
#if !defined(MBED_RAM_SIZE )
33
33
#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
36
36
#warning "check MBED_RAM_SIZE value in cmsis_nvic.h"
37
37
#endif
38
38
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ uint8_t SetSysClock_PLL_HSI(void);
63
63
* @param None
64
64
* @retval None
65
65
*/
66
- void SystemInit (void )
66
+ void SystemInit (void )
67
67
{
68
68
/*!< Set MSION bit */
69
69
RCC -> CR |= (uint32_t )0x00000100 ;
@@ -117,7 +117,7 @@ void SetSysClock(void)
117
117
{
118
118
/* 3- If fail start with HSI clock */
119
119
if (SetSysClock_PLL_HSI () == 0 ) {
120
- while (1 ) {
120
+ while (1 ) {
121
121
// [TODO] Put something here to tell the user that a problem occured...
122
122
}
123
123
}
@@ -137,8 +137,9 @@ uint8_t SetSysClock_PLL_HSE(uint8_t bypass)
137
137
RCC_ClkInitTypeDef RCC_ClkInitStruct ;
138
138
RCC_OscInitTypeDef RCC_OscInitStruct ;
139
139
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
+ }
142
143
143
144
/* Used to gain time after DeepSleep in case HSI is used */
144
145
if (__HAL_RCC_GET_FLAG (RCC_FLAG_HSIRDY ) != RESET ) {
Original file line number Diff line number Diff line change 17
17
#define __US_TICKER_DATA_H
18
18
19
19
#ifdef __cplusplus
20
- extern "C" {
20
+ extern "C" {
21
21
#endif
22
22
23
23
#include "stm32l1xx.h"
24
24
#include "stm32l1xx_ll_tim.h"
25
25
#include "cmsis_nvic.h"
26
-
26
+
27
27
#define TIM_MST TIM5
28
28
#define TIM_MST_IRQ TIM5_IRQn
29
29
#define TIM_MST_RCC __TIM5_CLK_ENABLE()
You can’t perform that action at this time.
0 commit comments