File tree Expand file tree Collapse file tree 7 files changed +21
-21
lines changed
targets/TARGET_STM/TARGET_STM32F0
TARGET_DISCO_F051R8/device
TARGET_NUCLEO_F030R8/device
TARGET_NUCLEO_F031K6/device
TARGET_NUCLEO_F042K6/device
TARGET_NUCLEO_F070RB/device
TARGET_NUCLEO_F072RB/device
TARGET_NUCLEO_F091RC/device Expand file tree Collapse file tree 7 files changed +21
-21
lines changed Original file line number Diff line number Diff line change 29
29
*/
30
30
31
31
#include "stm32f0xx.h"
32
- #include "mbed_assert .h"
32
+ #include "mbed_error .h"
33
33
34
34
#define USE_PLL_HSE_EXTC 0x8 // Use external clock (ST Link MCO)
35
35
#define USE_PLL_HSE_XTAL 0x4 // Use external xtal (X3 on board)
@@ -138,8 +138,8 @@ void SetSysClock(void)
138
138
if (SetSysClock_PLL_HSI () == 0 )
139
139
#endif
140
140
{
141
- while ( 1 ) {
142
- MBED_ASSERT ( 1 );
141
+ {
142
+ error ( "SetSysClock failed\n" );
143
143
}
144
144
}
145
145
}
Original file line number Diff line number Diff line change 29
29
*/
30
30
31
31
#include "stm32f0xx.h"
32
- #include "mbed_assert .h"
32
+ #include "mbed_error .h"
33
33
34
34
#define USE_PLL_HSE_EXTC 0x8 // Use external clock (ST Link MCO)
35
35
#define USE_PLL_HSE_XTAL 0x4 // Use external xtal (X3 on board - not provided by default)
@@ -138,8 +138,8 @@ void SetSysClock(void)
138
138
if (SetSysClock_PLL_HSI () == 0 )
139
139
#endif
140
140
{
141
- while ( 1 ) {
142
- MBED_ASSERT ( 1 );
141
+ {
142
+ error ( "SetSysClock failed\n" );
143
143
}
144
144
}
145
145
}
Original file line number Diff line number Diff line change 29
29
*/
30
30
31
31
#include "stm32f0xx.h"
32
- #include "mbed_assert .h"
32
+ #include "mbed_error .h"
33
33
34
34
#define USE_PLL_HSE_EXTC 0x8 // Use external clock (ST Link MCO - not connected by default)
35
35
#define USE_PLL_HSE_XTAL 0x4 // Use external xtal (X3 on board - not provided by default)
@@ -138,8 +138,8 @@ void SetSysClock(void)
138
138
if (SetSysClock_PLL_HSI () == 0 )
139
139
#endif
140
140
{
141
- while ( 1 ) {
142
- MBED_ASSERT ( 1 );
141
+ {
142
+ error ( "SetSysClock failed\n" );
143
143
}
144
144
}
145
145
}
Original file line number Diff line number Diff line change 29
29
*/
30
30
31
31
#include "stm32f0xx.h"
32
- #include "mbed_assert .h"
32
+ #include "mbed_error .h"
33
33
34
34
#define USE_PLL_HSE_EXTC 0x8 // Use external clock (ST Link MCO - not connected by default)
35
35
#define USE_PLL_HSE_XTAL 0x4 // Use external xtal (X3 on board - not provided by default)
@@ -138,8 +138,8 @@ void SetSysClock(void)
138
138
if (SetSysClock_PLL_HSI () == 0 )
139
139
#endif
140
140
{
141
- while ( 1 ) {
142
- MBED_ASSERT ( 1 );
141
+ {
142
+ error ( "SetSysClock failed\n" );
143
143
}
144
144
}
145
145
}
Original file line number Diff line number Diff line change 29
29
*/
30
30
31
31
#include "stm32f0xx.h"
32
- #include "mbed_assert .h"
32
+ #include "mbed_error .h"
33
33
34
34
#define USE_PLL_HSE_EXTC 0x8 // Use external clock (ST Link MCO)
35
35
#define USE_PLL_HSE_XTAL 0x4 // Use external xtal (X3 on board - not provided by default)
@@ -138,8 +138,8 @@ void SetSysClock(void)
138
138
if (SetSysClock_PLL_HSI () == 0 )
139
139
#endif
140
140
{
141
- while ( 1 ) {
142
- MBED_ASSERT ( 1 );
141
+ {
142
+ error ( "SetSysClock failed\n" );
143
143
}
144
144
}
145
145
}
Original file line number Diff line number Diff line change 29
29
*/
30
30
31
31
#include "stm32f0xx.h"
32
- #include "mbed_assert .h"
32
+ #include "mbed_error .h"
33
33
34
34
#define USE_PLL_HSE_EXTC 0x8 // Use external clock (ST Link MCO)
35
35
#define USE_PLL_HSE_XTAL 0x4 // Use external xtal (X3 on board - not provided by default)
@@ -138,8 +138,8 @@ void SetSysClock(void)
138
138
if (SetSysClock_PLL_HSI () == 0 )
139
139
#endif
140
140
{
141
- while ( 1 ) {
142
- MBED_ASSERT ( 1 );
141
+ {
142
+ error ( "SetSysClock failed\n" );
143
143
}
144
144
}
145
145
}
Original file line number Diff line number Diff line change 29
29
*/
30
30
31
31
#include "stm32f0xx.h"
32
- #include "mbed_assert .h"
32
+ #include "mbed_error .h"
33
33
34
34
#define USE_PLL_HSE_EXTC 0x8 // Use external clock (ST Link MCO)
35
35
#define USE_PLL_HSE_XTAL 0x4 // Use external xtal (X3 on board - not provided by default)
@@ -138,8 +138,8 @@ void SetSysClock(void)
138
138
if (SetSysClock_PLL_HSI () == 0 )
139
139
#endif
140
140
{
141
- while ( 1 ) {
142
- MBED_ASSERT ( 1 );
141
+ {
142
+ error ( "SetSysClock failed\n" );
143
143
}
144
144
}
145
145
}
You can’t perform that action at this time.
0 commit comments