Skip to content

Commit ae0872e

Browse files
jeromecoutantCruz Monrreal II
authored andcommitted
STM32L0 assert in SetSysClock replaced
1 parent c1e7fff commit ae0872e

File tree

7 files changed

+21
-21
lines changed

7 files changed

+21
-21
lines changed

targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/device/system_clock.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
*/
3030

3131
#include "stm32l0xx.h"
32-
#include "mbed_assert.h"
32+
#include "mbed_error.h"
3333

3434
/*!< Uncomment the following line if you need to relocate your vector Table in
3535
Internal SRAM. */
@@ -112,8 +112,8 @@ void SetSysClock(void)
112112
if (SetSysClock_PLL_HSI() == 0)
113113
#endif
114114
{
115-
while(1) {
116-
MBED_ASSERT(1);
115+
{
116+
error("SetSysClock failed\n");
117117
}
118118
}
119119
}

targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/device/system_clock.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
*/
3030

3131
#include "stm32l0xx.h"
32-
#include "mbed_assert.h"
32+
#include "mbed_error.h"
3333

3434
/*!< Uncomment the following line if you need to relocate your vector Table in
3535
Internal SRAM. */
@@ -112,8 +112,8 @@ void SetSysClock(void)
112112
if (SetSysClock_PLL_HSI() == 0)
113113
#endif
114114
{
115-
while(1) {
116-
MBED_ASSERT(1);
115+
{
116+
error("SetSysClock failed\n");
117117
}
118118
}
119119
}

targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/device/system_clock.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
*/
3030

3131
#include "stm32l0xx.h"
32-
#include "mbed_assert.h"
32+
#include "mbed_error.h"
3333

3434
/*!< Uncomment the following line if you need to relocate your vector Table in
3535
Internal SRAM. */
@@ -112,8 +112,8 @@ void SetSysClock(void)
112112
if (SetSysClock_PLL_HSI() == 0)
113113
#endif
114114
{
115-
while(1) {
116-
MBED_ASSERT(1);
115+
{
116+
error("SetSysClock failed\n");
117117
}
118118
}
119119
}

targets/TARGET_STM/TARGET_STM32L0/TARGET_STM32L053x8/TARGET_DISCO_L053C8/system_clock.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
*/
3030

3131
#include "stm32l0xx.h"
32-
#include "mbed_assert.h"
32+
#include "mbed_error.h"
3333

3434
/*!< Uncomment the following line if you need to relocate your vector Table in
3535
Internal SRAM. */
@@ -112,8 +112,8 @@ void SetSysClock(void)
112112
if (SetSysClock_PLL_HSI() == 0)
113113
#endif
114114
{
115-
while (1) {
116-
MBED_ASSERT(1);
115+
{
116+
error("SetSysClock failed\n");
117117
}
118118
}
119119
}

targets/TARGET_STM/TARGET_STM32L0/TARGET_STM32L053x8/TARGET_NUCLEO_L053R8/system_clock.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
*/
3030

3131
#include "stm32l0xx.h"
32-
#include "mbed_assert.h"
32+
#include "mbed_error.h"
3333

3434
/*!< Uncomment the following line if you need to relocate your vector Table in
3535
Internal SRAM. */
@@ -112,8 +112,8 @@ void SetSysClock(void)
112112
if (SetSysClock_PLL_HSI() == 0)
113113
#endif
114114
{
115-
while (1) {
116-
MBED_ASSERT(1);
115+
{
116+
error("SetSysClock failed\n");
117117
}
118118
}
119119
}

targets/TARGET_STM/TARGET_STM32L0/TARGET_STM32L072xZ/TARGET_DISCO_L072CZ_LRWAN1/system_clock.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
*/
3030

3131
#include "stm32l0xx.h"
32-
#include "mbed_assert.h"
32+
#include "mbed_error.h"
3333

3434
/*!< Uncomment the following line if you need to relocate your vector Table in
3535
Internal SRAM. */
@@ -115,8 +115,8 @@ void SetSysClock(void)
115115
if (SetSysClock_PLL_HSI() == 0)
116116
#endif
117117
{
118-
while (1) {
119-
MBED_ASSERT(1);
118+
{
119+
error("SetSysClock failed\n");
120120
}
121121
}
122122
}

targets/TARGET_STM/TARGET_STM32L0/TARGET_STM32L0x2xZ/TARGET_MTB_MURATA_ABZ/system_clock.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
*/
2828

2929
#include "stm32l0xx.h"
30-
#include "mbed_assert.h"
30+
#include "mbed_error.h"
3131

3232
/*!< Uncomment the following line if you need to relocate your vector Table in
3333
Internal SRAM. */
@@ -85,8 +85,8 @@ void SystemInit(void)
8585
void SetSysClock(void)
8686
{
8787
if (SetSysClock_PLL_HSI() == 0) {
88-
while (1) {
89-
MBED_ASSERT(1);
88+
{
89+
error("SetSysClock failed\n");
9090
}
9191
}
9292

0 commit comments

Comments
 (0)