STM32L1 assert in SetSysClock replaced

pull/7874/head
jeromecoutant 2018-08-13 15:56:20 +02:00 committed by Cruz Monrreal II
parent ae0872ed92
commit dbcaafe561
1 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@
*/ */
#include "stm32l1xx.h" #include "stm32l1xx.h"
#include "mbed_assert.h" #include "mbed_error.h"
/*!< Uncomment the following line if you need to relocate your vector Table in /*!< Uncomment the following line if you need to relocate your vector Table in
Internal SRAM. */ Internal SRAM. */
@ -114,8 +114,8 @@ void SetSysClock(void)
if (SetSysClock_PLL_HSI() == 0) if (SetSysClock_PLL_HSI() == 0)
#endif #endif
{ {
while(1) { {
MBED_ASSERT(1); error("SetSysClock failed\n");
} }
} }
} }