Skip to content

Commit 3476f88

Browse files
jeromecoutantCruz Monrreal II
authored andcommitted
STM32F4 assert in SetSysClock replaced
1 parent 0b37633 commit 3476f88

File tree

18 files changed

+54
-54
lines changed

18 files changed

+54
-54
lines changed

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F401xE/TARGET_NUCLEO_F401RE/system_clock.c

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

3232
#include "stm32f4xx.h"
33-
#include "mbed_assert.h"
33+
#include "mbed_error.h"
3434

3535
/*!< Uncomment the following line if you need to relocate your vector Table in
3636
Internal SRAM. */
@@ -125,8 +125,8 @@ void SetSysClock(void)
125125
if (SetSysClock_PLL_HSI() == 0)
126126
#endif
127127
{
128-
while (1) {
129-
MBED_ASSERT(1);
128+
{
129+
error("SetSysClock failed\n");
130130
}
131131
}
132132
}

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F401xE/TARGET_STEVAL_3DP001V1/system_clock.c

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

3232
#include "stm32f4xx.h"
33-
#include "mbed_assert.h"
33+
#include "mbed_error.h"
3434

3535
/*!< Uncomment the following line if you need to relocate your vector Table in
3636
Internal SRAM. */
@@ -125,8 +125,8 @@ void SetSysClock(void)
125125
if (SetSysClock_PLL_HSI() == 0)
126126
#endif
127127
{
128-
while (1) {
129-
MBED_ASSERT(1);
128+
{
129+
error("SetSysClock failed\n");
130130
}
131131
}
132132
}

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407xG/TARGET_DISCO_F407VG/system_clock.c

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

3232
#include "stm32f4xx.h"
33-
#include "mbed_assert.h"
33+
#include "mbed_error.h"
3434

3535
/*!< Uncomment the following line if you need to relocate your vector Table in
3636
Internal SRAM. */
@@ -124,8 +124,8 @@ void SetSysClock(void)
124124
if (SetSysClock_PLL_HSI() == 0)
125125
#endif
126126
{
127-
while (1) {
128-
MBED_ASSERT(1);
127+
{
128+
error("SetSysClock failed\n");
129129
}
130130
}
131131
}

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F410xB/TARGET_NUCLEO_F410RB/system_clock.c

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

3232
#include "stm32f4xx.h"
33-
#include "mbed_assert.h"
33+
#include "mbed_error.h"
3434

3535
/*!< Uncomment the following line if you need to relocate your vector Table in
3636
Internal SRAM. */
@@ -125,8 +125,8 @@ void SetSysClock(void)
125125
if (SetSysClock_PLL_HSI() == 0)
126126
#endif
127127
{
128-
while (1) {
129-
MBED_ASSERT(1);
128+
{
129+
error("SetSysClock failed\n");
130130
}
131131
}
132132
}

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F411xE/TARGET_NUCLEO_F411RE/system_clock.c

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

3232
#include "stm32f4xx.h"
33-
#include "mbed_assert.h"
33+
#include "mbed_error.h"
3434

3535
// clock source is selected with CLOCK_SOURCE in json config
3636
#define USE_PLL_HSE_EXTC 0x8 // Use external clock (ST Link MCO)
@@ -110,8 +110,8 @@ void SetSysClock(void)
110110
if (SetSysClock_PLL_HSI() == 0)
111111
#endif
112112
{
113-
while (1) {
114-
MBED_ASSERT(1);
113+
{
114+
error("SetSysClock failed\n");
115115
}
116116
}
117117
}

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F411xE/TARGET_SAKURAIO_EVB_01/system_clock.c

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

3232
#include "stm32f4xx.h"
33-
#include "mbed_assert.h"
33+
#include "mbed_error.h"
3434

3535
/*!< Uncomment the following line if you need to relocate your vector Table in
3636
Internal SRAM. */
@@ -125,8 +125,8 @@ void SetSysClock(void)
125125
if (SetSysClock_PLL_HSI() == 0)
126126
#endif
127127
{
128-
while (1) {
129-
MBED_ASSERT(1);
128+
{
129+
error("SetSysClock failed\n");
130130
}
131131
}
132132
}

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F412xG/TARGET_MTB_MXCHIP_EMW3166/system_clock.c

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

3232
#include "stm32f4xx.h"
3333
#include "nvic_addr.h"
34-
#include "mbed_assert.h"
34+
#include "mbed_error.h"
3535

3636
/*!< Uncomment the following line if you need to relocate your vector Table in
3737
Internal SRAM. */
@@ -126,8 +126,8 @@ void SetSysClock(void)
126126
if (ret_HSIclk_status == 0)
127127
#endif
128128
{
129-
while (1) {
130-
MBED_ASSERT(1);
129+
{
130+
error("SetSysClock failed\n");
131131
}
132132
}
133133
}

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F412xG/TARGET_NUCLEO_F412ZG/system_clock.c

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

3232
#include "stm32f4xx.h"
3333
#include "nvic_addr.h"
34-
#include "mbed_assert.h"
34+
#include "mbed_error.h"
3535

3636
/*!< Uncomment the following line if you need to relocate your vector Table in
3737
Internal SRAM. */
@@ -125,8 +125,8 @@ void SetSysClock(void)
125125
if (SetSysClock_PLL_HSI() == 0)
126126
#endif
127127
{
128-
while (1) {
129-
MBED_ASSERT(1);
128+
{
129+
error("SetSysClock failed\n");
130130
}
131131
}
132132
}

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F412xG/TARGET_USI_WM_BN_BM_22/system_clock.c

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

3232
#include "stm32f4xx.h"
3333
#include "nvic_addr.h"
34-
#include "mbed_assert.h"
34+
#include "mbed_error.h"
3535

3636
/*!< Uncomment the following line if you need to relocate your vector Table in
3737
Internal SRAM. */
@@ -126,8 +126,8 @@ void SetSysClock(void)
126126
if (ret_HSIclk_status == 0)
127127
#endif
128128
{
129-
while (1) {
130-
MBED_ASSERT(1);
129+
{
130+
error("SetSysClock failed\n");
131131
}
132132
}
133133
}

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F413xH/TARGET_DISCO_F413ZH/system_clock.c

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

3232
#include "stm32f4xx.h"
33-
#include "mbed_assert.h"
33+
#include "mbed_error.h"
3434

3535

3636
/*!< Uncomment the following line if you need to relocate your vector Table in
@@ -126,8 +126,8 @@ void SetSysClock(void)
126126
if (SetSysClock_PLL_HSI() == 0)
127127
#endif
128128
{
129-
while (1) {
130-
MBED_ASSERT(1);
129+
{
130+
error("SetSysClock failed\n");
131131
}
132132
}
133133
}

0 commit comments

Comments
 (0)