From c1e7ffff605dad9eebcf518c8c4c35e5d253439d Mon Sep 17 00:00:00 2001 From: jeromecoutant Date: Mon, 13 Aug 2018 15:55:17 +0200 Subject: [PATCH] STM32F7 assert in SetSysClock replaced --- .../TARGET_STM32F746xG/TARGET_DISCO_F746NG/system_clock.c | 6 +++--- .../TARGET_STM32F746xG/TARGET_NUCLEO_F746ZG/system_clock.c | 6 +++--- .../TARGET_STM32F756xG/TARGET_NUCLEO_F756ZG/system_clock.c | 6 +++--- .../TARGET_STM32F767xI/TARGET_NUCLEO_F767ZI/system_clock.c | 6 +++--- .../TARGET_STM32F769xI/TARGET_DISCO_F769NI/system_clock.c | 6 +++--- 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F746xG/TARGET_DISCO_F746NG/system_clock.c b/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F746xG/TARGET_DISCO_F746NG/system_clock.c index 6a33c7fb08..0d52647f84 100644 --- a/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F746xG/TARGET_DISCO_F746NG/system_clock.c +++ b/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F746xG/TARGET_DISCO_F746NG/system_clock.c @@ -30,7 +30,7 @@ **/ #include "stm32f7xx.h" -#include "mbed_assert.h" +#include "mbed_error.h" /*!< Uncomment the following line if you need to relocate your vector Table in Internal SRAM. */ @@ -123,8 +123,8 @@ void SetSysClock(void) if (SetSysClock_PLL_HSI() == 0) #endif { - while (1) { - MBED_ASSERT(1); + { + error("SetSysClock failed\n"); } } } diff --git a/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F746xG/TARGET_NUCLEO_F746ZG/system_clock.c b/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F746xG/TARGET_NUCLEO_F746ZG/system_clock.c index c37256a1e1..d0afc10a24 100644 --- a/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F746xG/TARGET_NUCLEO_F746ZG/system_clock.c +++ b/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F746xG/TARGET_NUCLEO_F746ZG/system_clock.c @@ -31,7 +31,7 @@ #include "stm32f7xx.h" #include "nvic_addr.h" -#include "mbed_assert.h" +#include "mbed_error.h" /*!< Uncomment the following line if you need to relocate your vector Table in Internal SRAM. */ @@ -124,8 +124,8 @@ void SetSysClock(void) if (SetSysClock_PLL_HSI() == 0) #endif { - while (1) { - MBED_ASSERT(1); + { + error("SetSysClock failed\n"); } } } diff --git a/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F756xG/TARGET_NUCLEO_F756ZG/system_clock.c b/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F756xG/TARGET_NUCLEO_F756ZG/system_clock.c index fac353279c..c9ccf489dd 100644 --- a/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F756xG/TARGET_NUCLEO_F756ZG/system_clock.c +++ b/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F756xG/TARGET_NUCLEO_F756ZG/system_clock.c @@ -30,7 +30,7 @@ **/ #include "stm32f7xx.h" -#include "mbed_assert.h" +#include "mbed_error.h" /*!< Uncomment the following line if you need to relocate your vector Table in Internal SRAM. */ @@ -123,8 +123,8 @@ void SetSysClock(void) if (SetSysClock_PLL_HSI() == 0) #endif { - while (1) { - MBED_ASSERT(1); + { + error("SetSysClock failed\n"); } } } diff --git a/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F767xI/TARGET_NUCLEO_F767ZI/system_clock.c b/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F767xI/TARGET_NUCLEO_F767ZI/system_clock.c index f18c625110..b7b2f9ed3b 100644 --- a/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F767xI/TARGET_NUCLEO_F767ZI/system_clock.c +++ b/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F767xI/TARGET_NUCLEO_F767ZI/system_clock.c @@ -31,7 +31,7 @@ #include "stm32f7xx.h" #include "nvic_addr.h" -#include "mbed_assert.h" +#include "mbed_error.h" /*!< Uncomment the following line if you need to relocate your vector Table in Internal SRAM. */ @@ -124,8 +124,8 @@ void SetSysClock(void) if (SetSysClock_PLL_HSI() == 0) #endif { - while (1) { - MBED_ASSERT(1); + { + error("SetSysClock failed\n"); } } } diff --git a/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F769xI/TARGET_DISCO_F769NI/system_clock.c b/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F769xI/TARGET_DISCO_F769NI/system_clock.c index c665b68673..153d6b09a4 100644 --- a/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F769xI/TARGET_DISCO_F769NI/system_clock.c +++ b/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F769xI/TARGET_DISCO_F769NI/system_clock.c @@ -30,7 +30,7 @@ **/ #include "stm32f7xx.h" -#include "mbed_assert.h" +#include "mbed_error.h" /*!< Uncomment the following line if you need to relocate your vector Table in Internal SRAM. */ @@ -123,8 +123,8 @@ void SetSysClock(void) if (SetSysClock_PLL_HSI() == 0) #endif { - while (1) { - MBED_ASSERT(1); + { + error("SetSysClock failed\n"); } } }