boards/esp32s3: Add RTC initialization

This commit is contained in:
Alan Carvalho de Assis 2023-04-26 10:15:57 -03:00 committed by Xiang Xiao
parent 276d1c8f48
commit 37f318c038
1 changed files with 15 additions and 0 deletions

View File

@ -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 */