Skip to content

Commit dbcaafe

Browse files
jeromecoutantCruz Monrreal II
authored andcommitted
STM32L1 assert in SetSysClock replaced
1 parent ae0872e commit dbcaafe

File tree

1 file changed

+3
-3
lines changed
  • targets/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/device

1 file changed

+3
-3
lines changed

targets/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/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 "stm32l1xx.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. */
@@ -114,8 +114,8 @@ void SetSysClock(void)
114114
if (SetSysClock_PLL_HSI() == 0)
115115
#endif
116116
{
117-
while(1) {
118-
MBED_ASSERT(1);
117+
{
118+
error("SetSysClock failed\n");
119119
}
120120
}
121121
}

0 commit comments

Comments
 (0)