STM32F0 assert in SetSysClock replaced

pull/7775/head
jeromecoutant 2018-08-13 14:53:33 +02:00
parent 2a824a1ceb
commit 76356039d9
7 changed files with 21 additions and 21 deletions

View File

@ -29,7 +29,7 @@
*/
#include "stm32f0xx.h"
#include "mbed_assert.h"
#include "mbed_error.h"
#define USE_PLL_HSE_EXTC 0x8 // Use external clock (ST Link MCO)
#define USE_PLL_HSE_XTAL 0x4 // Use external xtal (X3 on board)
@ -138,8 +138,8 @@ void SetSysClock(void)
if (SetSysClock_PLL_HSI() == 0)
#endif
{
while(1) {
MBED_ASSERT(1);
{
error("SetSysClock failed\n");
}
}
}

View File

@ -29,7 +29,7 @@
*/
#include "stm32f0xx.h"
#include "mbed_assert.h"
#include "mbed_error.h"
#define USE_PLL_HSE_EXTC 0x8 // Use external clock (ST Link MCO)
#define USE_PLL_HSE_XTAL 0x4 // Use external xtal (X3 on board - not provided by default)
@ -138,8 +138,8 @@ void SetSysClock(void)
if (SetSysClock_PLL_HSI() == 0)
#endif
{
while(1) {
MBED_ASSERT(1);
{
error("SetSysClock failed\n");
}
}
}

View File

@ -29,7 +29,7 @@
*/
#include "stm32f0xx.h"
#include "mbed_assert.h"
#include "mbed_error.h"
#define USE_PLL_HSE_EXTC 0x8 // Use external clock (ST Link MCO - not connected by default)
#define USE_PLL_HSE_XTAL 0x4 // Use external xtal (X3 on board - not provided by default)
@ -138,8 +138,8 @@ void SetSysClock(void)
if (SetSysClock_PLL_HSI() == 0)
#endif
{
while(1) {
MBED_ASSERT(1);
{
error("SetSysClock failed\n");
}
}
}

View File

@ -29,7 +29,7 @@
*/
#include "stm32f0xx.h"
#include "mbed_assert.h"
#include "mbed_error.h"
#define USE_PLL_HSE_EXTC 0x8 // Use external clock (ST Link MCO - not connected by default)
#define USE_PLL_HSE_XTAL 0x4 // Use external xtal (X3 on board - not provided by default)
@ -138,8 +138,8 @@ void SetSysClock(void)
if (SetSysClock_PLL_HSI() == 0)
#endif
{
while(1) {
MBED_ASSERT(1);
{
error("SetSysClock failed\n");
}
}
}

View File

@ -29,7 +29,7 @@
*/
#include "stm32f0xx.h"
#include "mbed_assert.h"
#include "mbed_error.h"
#define USE_PLL_HSE_EXTC 0x8 // Use external clock (ST Link MCO)
#define USE_PLL_HSE_XTAL 0x4 // Use external xtal (X3 on board - not provided by default)
@ -138,8 +138,8 @@ void SetSysClock(void)
if (SetSysClock_PLL_HSI() == 0)
#endif
{
while(1) {
MBED_ASSERT(1);
{
error("SetSysClock failed\n");
}
}
}

View File

@ -29,7 +29,7 @@
*/
#include "stm32f0xx.h"
#include "mbed_assert.h"
#include "mbed_error.h"
#define USE_PLL_HSE_EXTC 0x8 // Use external clock (ST Link MCO)
#define USE_PLL_HSE_XTAL 0x4 // Use external xtal (X3 on board - not provided by default)
@ -138,8 +138,8 @@ void SetSysClock(void)
if (SetSysClock_PLL_HSI() == 0)
#endif
{
while(1) {
MBED_ASSERT(1);
{
error("SetSysClock failed\n");
}
}
}

View File

@ -29,7 +29,7 @@
*/
#include "stm32f0xx.h"
#include "mbed_assert.h"
#include "mbed_error.h"
#define USE_PLL_HSE_EXTC 0x8 // Use external clock (ST Link MCO)
#define USE_PLL_HSE_XTAL 0x4 // Use external xtal (X3 on board - not provided by default)
@ -138,8 +138,8 @@ void SetSysClock(void)
if (SetSysClock_PLL_HSI() == 0)
#endif
{
while(1) {
MBED_ASSERT(1);
{
error("SetSysClock failed\n");
}
}
}