Skip to content

Commit 749343f

Browse files
committed
STM32F7 assert in SetSysClock replaced
1 parent b47c1ef commit 749343f

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F746xG/TARGET_DISCO_F746NG/system_clock.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
**/
3131

3232
#include "stm32f7xx.h"
33-
#include "mbed_assert.h"
33+
#include "mbed_error.h"
3434

3535
/*!< Uncomment the following line if you need to relocate your vector Table in
3636
Internal SRAM. */
@@ -123,8 +123,8 @@ void SetSysClock(void)
123123
if (SetSysClock_PLL_HSI() == 0)
124124
#endif
125125
{
126-
while (1) {
127-
MBED_ASSERT(1);
126+
{
127+
error("SetSysClock failed\n");
128128
}
129129
}
130130
}

targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F746xG/TARGET_NUCLEO_F746ZG/system_clock.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
#include "stm32f7xx.h"
3333
#include "nvic_addr.h"
34-
#include "mbed_assert.h"
34+
#include "mbed_error.h"
3535

3636
/*!< Uncomment the following line if you need to relocate your vector Table in
3737
Internal SRAM. */
@@ -124,8 +124,8 @@ void SetSysClock(void)
124124
if (SetSysClock_PLL_HSI() == 0)
125125
#endif
126126
{
127-
while (1) {
128-
MBED_ASSERT(1);
127+
{
128+
error("SetSysClock failed\n");
129129
}
130130
}
131131
}

targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F756xG/TARGET_NUCLEO_F756ZG/system_clock.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
**/
3131

3232
#include "stm32f7xx.h"
33-
#include "mbed_assert.h"
33+
#include "mbed_error.h"
3434

3535
/*!< Uncomment the following line if you need to relocate your vector Table in
3636
Internal SRAM. */
@@ -123,8 +123,8 @@ void SetSysClock(void)
123123
if (SetSysClock_PLL_HSI() == 0)
124124
#endif
125125
{
126-
while (1) {
127-
MBED_ASSERT(1);
126+
{
127+
error("SetSysClock failed\n");
128128
}
129129
}
130130
}

targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F767xI/TARGET_NUCLEO_F767ZI/system_clock.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
#include "stm32f7xx.h"
3333
#include "nvic_addr.h"
34-
#include "mbed_assert.h"
34+
#include "mbed_error.h"
3535

3636
/*!< Uncomment the following line if you need to relocate your vector Table in
3737
Internal SRAM. */
@@ -124,8 +124,8 @@ void SetSysClock(void)
124124
if (SetSysClock_PLL_HSI() == 0)
125125
#endif
126126
{
127-
while (1) {
128-
MBED_ASSERT(1);
127+
{
128+
error("SetSysClock failed\n");
129129
}
130130
}
131131
}

targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F769xI/TARGET_DISCO_F769NI/system_clock.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
**/
3131

3232
#include "stm32f7xx.h"
33-
#include "mbed_assert.h"
33+
#include "mbed_error.h"
3434

3535
/*!< Uncomment the following line if you need to relocate your vector Table in
3636
Internal SRAM. */
@@ -123,8 +123,8 @@ void SetSysClock(void)
123123
if (SetSysClock_PLL_HSI() == 0)
124124
#endif
125125
{
126-
while (1) {
127-
MBED_ASSERT(1);
126+
{
127+
error("SetSysClock failed\n");
128128
}
129129
}
130130
}

0 commit comments

Comments
 (0)