diff options
Diffstat (limited to 'nuttx/configs/stm32f4discovery/src/stm32f4discovery.h')
-rw-r--r-- | nuttx/configs/stm32f4discovery/src/stm32f4discovery.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/nuttx/configs/stm32f4discovery/src/stm32f4discovery.h b/nuttx/configs/stm32f4discovery/src/stm32f4discovery.h index 0992f1f4d..5c29e38b7 100644 --- a/nuttx/configs/stm32f4discovery/src/stm32f4discovery.h +++ b/nuttx/configs/stm32f4discovery/src/stm32f4discovery.h @@ -67,6 +67,7 @@ #define HAVE_USBHOST 1 #define HAVE_USBMONITOR 1 #define HAVE_SDIO 1 +#define HAVE_RTC_DRIVER 1 /* Can't support USB host or device features if USB OTG FS is not enabled */ @@ -133,6 +134,12 @@ # endif #endif +/* Check if we can support the RTC driver */ + +#if !defined(CONFIG_RTC) || !defined(CONFIG_RTC_DRIVER) +# undef HAVE_RTC_DRIVER +#endif + /* STM32F4 Discovery GPIOs **************************************************/ /* LEDs */ |