mirror of https://github.com/ARMmbed/mbed-os.git
STM32F0 assert in SetSysClock replaced
parent
2a824a1ceb
commit
76356039d9
|
@ -29,7 +29,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "stm32f0xx.h"
|
#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_EXTC 0x8 // Use external clock (ST Link MCO)
|
||||||
#define USE_PLL_HSE_XTAL 0x4 // Use external xtal (X3 on board)
|
#define USE_PLL_HSE_XTAL 0x4 // Use external xtal (X3 on board)
|
||||||
|
@ -138,8 +138,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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "stm32f0xx.h"
|
#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_EXTC 0x8 // Use external clock (ST Link MCO)
|
||||||
#define USE_PLL_HSE_XTAL 0x4 // Use external xtal (X3 on board - not provided 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)
|
if (SetSysClock_PLL_HSI() == 0)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
while(1) {
|
{
|
||||||
MBED_ASSERT(1);
|
error("SetSysClock failed\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "stm32f0xx.h"
|
#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_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)
|
#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)
|
if (SetSysClock_PLL_HSI() == 0)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
while(1) {
|
{
|
||||||
MBED_ASSERT(1);
|
error("SetSysClock failed\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "stm32f0xx.h"
|
#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_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)
|
#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)
|
if (SetSysClock_PLL_HSI() == 0)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
while(1) {
|
{
|
||||||
MBED_ASSERT(1);
|
error("SetSysClock failed\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "stm32f0xx.h"
|
#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_EXTC 0x8 // Use external clock (ST Link MCO)
|
||||||
#define USE_PLL_HSE_XTAL 0x4 // Use external xtal (X3 on board - not provided 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)
|
if (SetSysClock_PLL_HSI() == 0)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
while(1) {
|
{
|
||||||
MBED_ASSERT(1);
|
error("SetSysClock failed\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "stm32f0xx.h"
|
#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_EXTC 0x8 // Use external clock (ST Link MCO)
|
||||||
#define USE_PLL_HSE_XTAL 0x4 // Use external xtal (X3 on board - not provided 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)
|
if (SetSysClock_PLL_HSI() == 0)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
while(1) {
|
{
|
||||||
MBED_ASSERT(1);
|
error("SetSysClock failed\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "stm32f0xx.h"
|
#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_EXTC 0x8 // Use external clock (ST Link MCO)
|
||||||
#define USE_PLL_HSE_XTAL 0x4 // Use external xtal (X3 on board - not provided 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)
|
if (SetSysClock_PLL_HSI() == 0)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
while(1) {
|
{
|
||||||
MBED_ASSERT(1);
|
error("SetSysClock failed\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue