Skip to content

Commit

Permalink
Merge pull request #7775 from jeromecoutant/PR_ASSERT
Browse files Browse the repository at this point in the history
STM32 wrong MBED_ASSERT use
  • Loading branch information
Cruz Monrreal committed Aug 21, 2018
2 parents cd0126a + 063cad5 commit c167275
Show file tree
Hide file tree
Showing 58 changed files with 174 additions and 174 deletions.
Expand Up @@ -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)
Expand Down Expand Up @@ -138,8 +138,8 @@ void SetSysClock(void)
if (SetSysClock_PLL_HSI() == 0)
#endif
{
while(1) {
MBED_ASSERT(1);
{
error("SetSysClock failed\n");
}
}
}
Expand Down
Expand Up @@ -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)
Expand Down Expand Up @@ -138,8 +138,8 @@ void SetSysClock(void)
if (SetSysClock_PLL_HSI() == 0)
#endif
{
while(1) {
MBED_ASSERT(1);
{
error("SetSysClock failed\n");
}
}
}
Expand Down
Expand Up @@ -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)
Expand Down Expand Up @@ -138,8 +138,8 @@ void SetSysClock(void)
if (SetSysClock_PLL_HSI() == 0)
#endif
{
while(1) {
MBED_ASSERT(1);
{
error("SetSysClock failed\n");
}
}
}
Expand Down
Expand Up @@ -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)
Expand Down Expand Up @@ -138,8 +138,8 @@ void SetSysClock(void)
if (SetSysClock_PLL_HSI() == 0)
#endif
{
while(1) {
MBED_ASSERT(1);
{
error("SetSysClock failed\n");
}
}
}
Expand Down
Expand Up @@ -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)
Expand Down Expand Up @@ -138,8 +138,8 @@ void SetSysClock(void)
if (SetSysClock_PLL_HSI() == 0)
#endif
{
while(1) {
MBED_ASSERT(1);
{
error("SetSysClock failed\n");
}
}
}
Expand Down
Expand Up @@ -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)
Expand Down Expand Up @@ -138,8 +138,8 @@ void SetSysClock(void)
if (SetSysClock_PLL_HSI() == 0)
#endif
{
while(1) {
MBED_ASSERT(1);
{
error("SetSysClock failed\n");
}
}
}
Expand Down
Expand Up @@ -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)
Expand Down Expand Up @@ -138,8 +138,8 @@ void SetSysClock(void)
if (SetSysClock_PLL_HSI() == 0)
#endif
{
while(1) {
MBED_ASSERT(1);
{
error("SetSysClock failed\n");
}
}
}
Expand Down
Expand Up @@ -35,7 +35,7 @@
*/

#include "stm32f1xx.h"
#include "mbed_assert.h"
#include "mbed_error.h"

/*!< Uncomment the following line if you need to relocate your vector Table in
Internal SRAM. */
Expand Down Expand Up @@ -145,8 +145,8 @@ void SetSysClock(void)
if (SetSysClock_PLL_HSI() == 0)
#endif
{
while(1) {
MBED_ASSERT(1);
{
error("SetSysClock failed\n");
}
}
}
Expand Down
Expand Up @@ -30,7 +30,7 @@
**/

#include "stm32f2xx.h"
#include "mbed_assert.h"
#include "mbed_error.h"

/*!< Uncomment the following line if you need to relocate your vector Table in
Internal SRAM. */
Expand Down Expand Up @@ -120,8 +120,8 @@ void SetSysClock(void)
if (SetSysClock_PLL_HSI() == 0)
#endif
{
while(1) {
MBED_ASSERT(1);
{
error("SetSysClock failed\n");
}
}
}
Expand Down
Expand Up @@ -36,7 +36,7 @@


#include "stm32f3xx.h"
#include "mbed_assert.h"
#include "mbed_error.h"

/*!< Uncomment the following line if you need to relocate your vector Table in
Internal SRAM. */
Expand Down Expand Up @@ -130,8 +130,8 @@ void SetSysClock(void)
if (SetSysClock_PLL_HSI() == 0)
#endif
{
while (1) {
MBED_ASSERT(1);
{
error("SetSysClock failed\n");
}
}
}
Expand Down
Expand Up @@ -36,7 +36,7 @@


#include "stm32f3xx.h"
#include "mbed_assert.h"
#include "mbed_error.h"

/*!< Uncomment the following line if you need to relocate your vector Table in
Internal SRAM. */
Expand Down Expand Up @@ -130,8 +130,8 @@ void SetSysClock(void)
if (SetSysClock_PLL_HSI() == 0)
#endif
{
while (1) {
MBED_ASSERT(1);
{
error("SetSysClock failed\n");
}
}
}
Expand Down
Expand Up @@ -35,7 +35,7 @@
**/

#include "stm32f3xx.h"
#include "mbed_assert.h"
#include "mbed_error.h"

/*!< Uncomment the following line if you need to relocate your vector Table in
Internal SRAM. */
Expand Down Expand Up @@ -129,8 +129,8 @@ void SetSysClock(void)
if (SetSysClock_PLL_HSI() == 0)
#endif
{
while (1) {
MBED_ASSERT(1);
{
error("SetSysClock failed\n");
}
}
}
Expand Down
Expand Up @@ -31,7 +31,7 @@


#include "stm32f3xx.h"
#include "mbed_assert.h"
#include "mbed_error.h"

/*!< Uncomment the following line if you need to relocate your vector Table in
Internal SRAM. */
Expand Down Expand Up @@ -125,8 +125,8 @@ void SetSysClock(void)
if (SetSysClock_PLL_HSI() == 0)
#endif
{
while (1) {
MBED_ASSERT(1);
{
error("SetSysClock failed\n");
}
}
}
Expand Down
Expand Up @@ -31,7 +31,7 @@


#include "stm32f3xx.h"
#include "mbed_assert.h"
#include "mbed_error.h"

/*!< Uncomment the following line if you need to relocate your vector Table in
Internal SRAM. */
Expand Down Expand Up @@ -125,8 +125,8 @@ void SetSysClock(void)
if (SetSysClock_PLL_HSI() == 0)
#endif
{
while (1) {
MBED_ASSERT(1);
{
error("SetSysClock failed\n");
}
}
}
Expand Down
Expand Up @@ -36,7 +36,7 @@


#include "stm32f3xx.h"
#include "mbed_assert.h"
#include "mbed_error.h"

/*!< Uncomment the following line if you need to relocate your vector Table in
Internal SRAM. */
Expand Down Expand Up @@ -130,8 +130,8 @@ void SetSysClock(void)
if (SetSysClock_PLL_HSI() == 0)
#endif
{
while (1) {
MBED_ASSERT(1);
{
error("SetSysClock failed\n");
}
}
}
Expand Down
Expand Up @@ -36,7 +36,7 @@


#include "stm32f3xx.h"
#include "mbed_assert.h"
#include "mbed_error.h"

/*!< Uncomment the following line if you need to relocate your vector Table in
Internal SRAM. */
Expand Down Expand Up @@ -130,8 +130,8 @@ void SetSysClock(void)
if (SetSysClock_PLL_HSI() == 0)
#endif
{
while (1) {
MBED_ASSERT(1);
{
error("SetSysClock failed\n");
}
}
}
Expand Down
Expand Up @@ -30,7 +30,7 @@
**/

#include "stm32f4xx.h"
#include "mbed_assert.h"
#include "mbed_error.h"

/*!< Uncomment the following line if you need to relocate your vector Table in
Internal SRAM. */
Expand Down Expand Up @@ -125,8 +125,8 @@ void SetSysClock(void)
if (SetSysClock_PLL_HSI() == 0)
#endif
{
while (1) {
MBED_ASSERT(1);
{
error("SetSysClock failed\n");
}
}
}
Expand Down
Expand Up @@ -30,7 +30,7 @@
**/

#include "stm32f4xx.h"
#include "mbed_assert.h"
#include "mbed_error.h"

/*!< Uncomment the following line if you need to relocate your vector Table in
Internal SRAM. */
Expand Down Expand Up @@ -125,8 +125,8 @@ void SetSysClock(void)
if (SetSysClock_PLL_HSI() == 0)
#endif
{
while (1) {
MBED_ASSERT(1);
{
error("SetSysClock failed\n");
}
}
}
Expand Down
Expand Up @@ -30,7 +30,7 @@
**/

#include "stm32f4xx.h"
#include "mbed_assert.h"
#include "mbed_error.h"

/*!< Uncomment the following line if you need to relocate your vector Table in
Internal SRAM. */
Expand Down Expand Up @@ -124,8 +124,8 @@ void SetSysClock(void)
if (SetSysClock_PLL_HSI() == 0)
#endif
{
while (1) {
MBED_ASSERT(1);
{
error("SetSysClock failed\n");
}
}
}
Expand Down
Expand Up @@ -30,7 +30,7 @@
**/

#include "stm32f4xx.h"
#include "mbed_assert.h"
#include "mbed_error.h"

/*!< Uncomment the following line if you need to relocate your vector Table in
Internal SRAM. */
Expand Down Expand Up @@ -125,8 +125,8 @@ void SetSysClock(void)
if (SetSysClock_PLL_HSI() == 0)
#endif
{
while (1) {
MBED_ASSERT(1);
{
error("SetSysClock failed\n");
}
}
}
Expand Down

0 comments on commit c167275

Please sign in to comment.