boards/esp32s3: Add RTC initialization
This commit is contained in:
parent
276d1c8f48
commit
37f318c038
|
@ -62,6 +62,10 @@
|
|||
# include <nuttx/input/buttons.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_RTC_DRIVER
|
||||
# include "esp32s3_rtc_lowerhalf.h"
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_VIDEO_FB
|
||||
#include <nuttx/video/fb.h>
|
||||
#endif
|
||||
|
@ -153,6 +157,17 @@ int esp32s3_bringup(void)
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_RTC_DRIVER
|
||||
/* Instantiate the ESP32-S3 RTC driver */
|
||||
|
||||
ret = esp32s3_rtc_driverinit();
|
||||
if (ret < 0)
|
||||
{
|
||||
syslog(LOG_ERR,
|
||||
"ERROR: Failed to Instantiate the RTC driver: %d\n", ret);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_WATCHDOG
|
||||
/* Configure watchdog timer */
|
||||
|
||||
|
|
Loading…
Reference in New Issue