From e2976c5b4ee397eee099439d93a13a310a17549a Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Tue, 5 Nov 2019 07:47:12 -0600 Subject: [PATCH] boards/../stm32_appinit.c: Handle cases where 'OK' is not defined. --- boards/arm/stm32/nucleo-f4x1re/src/stm32_appinit.c | 8 ++++++++ boards/arm/stm32f0l0g0/nucleo-g070rb/src/stm32_appinit.c | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/boards/arm/stm32/nucleo-f4x1re/src/stm32_appinit.c b/boards/arm/stm32/nucleo-f4x1re/src/stm32_appinit.c index 378624f052..6e447afc7e 100644 --- a/boards/arm/stm32/nucleo-f4x1re/src/stm32_appinit.c +++ b/boards/arm/stm32/nucleo-f4x1re/src/stm32_appinit.c @@ -45,6 +45,14 @@ #include "nucleo-f4x1re.h" +/**************************************************************************** + * Pre-processor Definitions + ****************************************************************************/ + +#ifndef OK +# define OK 0 +#endif + /**************************************************************************** * Public Functions ****************************************************************************/ diff --git a/boards/arm/stm32f0l0g0/nucleo-g070rb/src/stm32_appinit.c b/boards/arm/stm32f0l0g0/nucleo-g070rb/src/stm32_appinit.c index 857ee20443..568e09bbb4 100644 --- a/boards/arm/stm32f0l0g0/nucleo-g070rb/src/stm32_appinit.c +++ b/boards/arm/stm32f0l0g0/nucleo-g070rb/src/stm32_appinit.c @@ -50,6 +50,14 @@ #include "nucleo-g070rb.h" +/**************************************************************************** + * Pre-processor Definitions + ****************************************************************************/ + +#ifndef OK +# define OK 0 +#endif + /**************************************************************************** * Public Functions ****************************************************************************/