mirror of https://github.com/ARMmbed/mbed-os.git
STM32F2 assert in SetSysClock replaced
parent
dc02be705a
commit
bf7dc5f8b8
|
@ -30,7 +30,7 @@
|
|||
**/
|
||||
|
||||
#include "stm32f2xx.h"
|
||||
#include "mbed_assert.h"
|
||||
#include "mbed_error.h"
|
||||
|
||||
/*!< Uncomment the following line if you need to relocate your vector Table in
|
||||
Internal SRAM. */
|
||||
|
@ -120,8 +120,8 @@ void SetSysClock(void)
|
|||
if (SetSysClock_PLL_HSI() == 0)
|
||||
#endif
|
||||
{
|
||||
while(1) {
|
||||
MBED_ASSERT(1);
|
||||
{
|
||||
error("SetSysClock failed\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue