diff --git a/boards/arm/stm32h7/nucleo-h743zi/src/nucleo-h743zi.h b/boards/arm/stm32h7/nucleo-h743zi/src/nucleo-h743zi.h index 987dea9cbce..ed30382d8e3 100644 --- a/boards/arm/stm32h7/nucleo-h743zi/src/nucleo-h743zi.h +++ b/boards/arm/stm32h7/nucleo-h743zi/src/nucleo-h743zi.h @@ -50,6 +50,8 @@ * Pre-processor Definitions ****************************************************************************/ +/* Configuration ************************************************************/ + /* procfs File System */ #ifdef CONFIG_FS_PROCFS @@ -60,8 +62,12 @@ # endif #endif +/* Check if we can support the RTC driver */ + #define HAVE_RTC_DRIVER 1 -/* Configuration ************************************************************/ +#if !defined(CONFIG_RTC) || !defined(CONFIG_RTC_DRIVER) +# undef HAVE_RTC_DRIVER +#endif /* LED *