Skip to content

Commit dc02be7

Browse files
committed
STM32F1 assert in SetSysClock replaced
1 parent 7635603 commit dc02be7

File tree

1 file changed

+3
-3
lines changed
  • targets/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/device

1 file changed

+3
-3
lines changed

targets/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/device/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 "stm32f1xx.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. */
@@ -145,8 +145,8 @@ void SetSysClock(void)
145145
if (SetSysClock_PLL_HSI() == 0)
146146
#endif
147147
{
148-
while(1) {
149-
MBED_ASSERT(1);
148+
{
149+
error("SetSysClock failed\n");
150150
}
151151
}
152152
}

0 commit comments

Comments
 (0)