Skip to content

Commit 063cad5

Browse files
committed
STM32L4 assert in SetSysClock replaced
1 parent ac06d55 commit 063cad5

File tree

11 files changed

+33
-33
lines changed

11 files changed

+33
-33
lines changed

targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L432xC/TARGET_NUCLEO_L432KC/system_clock.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545

4646
#include "stm32l4xx.h"
4747
#include "nvic_addr.h"
48-
#include "mbed_assert.h"
48+
#include "mbed_error.h"
4949

5050
/*!< Uncomment the following line if you need to relocate your vector Table in
5151
Internal SRAM. */
@@ -147,8 +147,8 @@ void SetSysClock(void)
147147
if (SetSysClock_PLL_MSI() == 0)
148148
#endif
149149
{
150-
while (1) {
151-
MBED_ASSERT(1);
150+
{
151+
error("SetSysClock failed\n");
152152
}
153153
}
154154
}

targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L433xC/TARGET_NUCLEO_L433RC_P/system_clock.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545

4646
#include "stm32l4xx.h"
4747
#include "nvic_addr.h"
48-
#include "mbed_assert.h"
48+
#include "mbed_error.h"
4949

5050
/*!< Uncomment the following line if you need to relocate your vector Table in
5151
Internal SRAM. */
@@ -147,8 +147,8 @@ void SetSysClock(void)
147147
if (SetSysClock_PLL_MSI() == 0)
148148
#endif
149149
{
150-
while (1) {
151-
MBED_ASSERT(1);
150+
{
151+
error("SetSysClock failed\n");
152152
}
153153
}
154154
}

targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L443xC/TARGET_MTB_ADV_WISE_1510/system_clock.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545

4646
#include "stm32l4xx.h"
4747
#include "nvic_addr.h"
48-
#include "mbed_assert.h"
48+
#include "mbed_error.h"
4949

5050
/*!< Uncomment the following line if you need to relocate your vector Table in
5151
Internal SRAM. */
@@ -147,8 +147,8 @@ void SetSysClock(void)
147147
if (SetSysClock_PLL_MSI() == 0)
148148
#endif
149149
{
150-
while (1) {
151-
MBED_ASSERT(1);
150+
{
151+
error("SetSysClock failed\n");
152152
}
153153
}
154154
}

targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L475xG/TARGET_DISCO_L475VG_IOT01A/system_clock.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
#include "stm32l4xx.h"
3434
#include "nvic_addr.h"
35-
#include "mbed_assert.h"
35+
#include "mbed_error.h"
3636

3737
/*!< Uncomment the following line if you need to relocate your vector Table in
3838
Internal SRAM. */
@@ -134,8 +134,8 @@ void SetSysClock(void)
134134
if (SetSysClock_PLL_MSI() == 0)
135135
#endif
136136
{
137-
while (1) {
138-
MBED_ASSERT(1);
137+
{
138+
error("SetSysClock failed\n");
139139
}
140140
}
141141
}

targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L476xG/TARGET_DISCO_L476VG/system_clock.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
#include "stm32l4xx.h"
3434
#include "nvic_addr.h"
35-
#include "mbed_assert.h"
35+
#include "mbed_error.h"
3636

3737
/*!< Uncomment the following line if you need to relocate your vector Table in
3838
Internal SRAM. */
@@ -134,8 +134,8 @@ void SetSysClock(void)
134134
if (SetSysClock_PLL_MSI() == 0)
135135
#endif
136136
{
137-
while (1) {
138-
MBED_ASSERT(1);
137+
{
138+
error("SetSysClock failed\n");
139139
}
140140
}
141141
}

targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L476xG/TARGET_NUCLEO_L476RG/system_clock.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
#include "stm32l4xx.h"
3434
#include "nvic_addr.h"
35-
#include "mbed_assert.h"
35+
#include "mbed_error.h"
3636

3737
/*!< Uncomment the following line if you need to relocate your vector Table in
3838
Internal SRAM. */
@@ -134,8 +134,8 @@ void SetSysClock(void)
134134
if (SetSysClock_PLL_MSI() == 0)
135135
#endif
136136
{
137-
while (1) {
138-
MBED_ASSERT(1);
137+
{
138+
error("SetSysClock failed\n");
139139
}
140140
}
141141
}

targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L476xG/TARGET_SILICA_SENSOR_NODE/system_clock.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
#include "stm32l4xx.h"
3434
#include "nvic_addr.h"
35-
#include "mbed_assert.h"
35+
#include "mbed_error.h"
3636

3737
/*!< Uncomment the following line if you need to relocate your vector Table in
3838
Internal SRAM. */
@@ -134,8 +134,8 @@ void SetSysClock(void)
134134
if (SetSysClock_PLL_MSI() == 0)
135135
#endif
136136
{
137-
while (1) {
138-
MBED_ASSERT(1);
137+
{
138+
error("SetSysClock failed\n");
139139
}
140140
}
141141
}

targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L486xG/TARGET_MTB_ADV_WISE_1570/system_clock.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
#include "stm32l4xx.h"
3434
#include "nvic_addr.h"
35-
#include "mbed_assert.h"
35+
#include "mbed_error.h"
3636

3737
/*!< Uncomment the following line if you need to relocate your vector Table in
3838
Internal SRAM. */
@@ -134,8 +134,8 @@ void SetSysClock(void)
134134
if (SetSysClock_PLL_MSI() == 0)
135135
#endif
136136
{
137-
while (1) {
138-
MBED_ASSERT(1);
137+
{
138+
error("SetSysClock failed\n");
139139
}
140140
}
141141
}

targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L486xG/TARGET_NUCLEO_L486RG/system_clock.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
#include "stm32l4xx.h"
3434
#include "nvic_addr.h"
35-
#include "mbed_assert.h"
35+
#include "mbed_error.h"
3636

3737
/*!< Uncomment the following line if you need to relocate your vector Table in
3838
Internal SRAM. */
@@ -134,8 +134,8 @@ void SetSysClock(void)
134134
if (SetSysClock_PLL_MSI() == 0)
135135
#endif
136136
{
137-
while (1) {
138-
MBED_ASSERT(1);
137+
{
138+
error("SetSysClock failed\n");
139139
}
140140
}
141141
}

targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L496xG/TARGET_DISCO_L496AG/system_clock.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
#include "stm32l4xx.h"
3434
#include "nvic_addr.h"
35-
#include "mbed_assert.h"
35+
#include "mbed_error.h"
3636

3737
/*!< Uncomment the following line if you need to relocate your vector Table in
3838
Internal SRAM. */
@@ -134,8 +134,8 @@ void SetSysClock(void)
134134
if (SetSysClock_PLL_MSI() == 0)
135135
#endif
136136
{
137-
while (1) {
138-
MBED_ASSERT(1);
137+
{
138+
error("SetSysClock failed\n");
139139
}
140140
}
141141
}

0 commit comments

Comments
 (0)