Skip to content

Commit 0b37633

Browse files
jeromecoutantCruz Monrreal II
authored andcommitted
STM32F3 assert in SetSysClock replaced
1 parent 3884e09 commit 0b37633

File tree

7 files changed

+21
-21
lines changed

7 files changed

+21
-21
lines changed

targets/TARGET_STM/TARGET_STM32F3/TARGET_STM32F302x8/TARGET_NUCLEO_F302R8/system_clock.c

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

3737

3838
#include "stm32f3xx.h"
39-
#include "mbed_assert.h"
39+
#include "mbed_error.h"
4040

4141
/*!< Uncomment the following line if you need to relocate your vector Table in
4242
Internal SRAM. */
@@ -130,8 +130,8 @@ void SetSysClock(void)
130130
if (SetSysClock_PLL_HSI() == 0)
131131
#endif
132132
{
133-
while (1) {
134-
MBED_ASSERT(1);
133+
{
134+
error("SetSysClock failed\n");
135135
}
136136
}
137137
}

targets/TARGET_STM/TARGET_STM32F3/TARGET_STM32F303x8/TARGET_NUCLEO_F303K8/system_clock.c

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

3737

3838
#include "stm32f3xx.h"
39-
#include "mbed_assert.h"
39+
#include "mbed_error.h"
4040

4141
/*!< Uncomment the following line if you need to relocate your vector Table in
4242
Internal SRAM. */
@@ -130,8 +130,8 @@ void SetSysClock(void)
130130
if (SetSysClock_PLL_HSI() == 0)
131131
#endif
132132
{
133-
while (1) {
134-
MBED_ASSERT(1);
133+
{
134+
error("SetSysClock failed\n");
135135
}
136136
}
137137
}

targets/TARGET_STM/TARGET_STM32F3/TARGET_STM32F303xC/TARGET_DISCO_F303VC/system_clock.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
**/
3636

3737
#include "stm32f3xx.h"
38-
#include "mbed_assert.h"
38+
#include "mbed_error.h"
3939

4040
/*!< Uncomment the following line if you need to relocate your vector Table in
4141
Internal SRAM. */
@@ -129,8 +129,8 @@ void SetSysClock(void)
129129
if (SetSysClock_PLL_HSI() == 0)
130130
#endif
131131
{
132-
while (1) {
133-
MBED_ASSERT(1);
132+
{
133+
error("SetSysClock failed\n");
134134
}
135135
}
136136
}

targets/TARGET_STM/TARGET_STM32F3/TARGET_STM32F303xE/TARGET_NUCLEO_F303RE/system_clock.c

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

3232

3333
#include "stm32f3xx.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_STM32F3/TARGET_STM32F303xE/TARGET_NUCLEO_F303ZE/system_clock.c

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

3232

3333
#include "stm32f3xx.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_STM32F3/TARGET_STM32F334x8/TARGET_DISCO_F334C8/system_clock.c

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

3737

3838
#include "stm32f3xx.h"
39-
#include "mbed_assert.h"
39+
#include "mbed_error.h"
4040

4141
/*!< Uncomment the following line if you need to relocate your vector Table in
4242
Internal SRAM. */
@@ -130,8 +130,8 @@ void SetSysClock(void)
130130
if (SetSysClock_PLL_HSI() == 0)
131131
#endif
132132
{
133-
while (1) {
134-
MBED_ASSERT(1);
133+
{
134+
error("SetSysClock failed\n");
135135
}
136136
}
137137
}

targets/TARGET_STM/TARGET_STM32F3/TARGET_STM32F334x8/TARGET_NUCLEO_F334R8/system_clock.c

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

3737

3838
#include "stm32f3xx.h"
39-
#include "mbed_assert.h"
39+
#include "mbed_error.h"
4040

4141
/*!< Uncomment the following line if you need to relocate your vector Table in
4242
Internal SRAM. */
@@ -130,8 +130,8 @@ void SetSysClock(void)
130130
if (SetSysClock_PLL_HSI() == 0)
131131
#endif
132132
{
133-
while (1) {
134-
MBED_ASSERT(1);
133+
{
134+
error("SetSysClock failed\n");
135135
}
136136
}
137137
}

0 commit comments

Comments
 (0)