esp32s3-devkit: Enable RT-Timer on board bringup

Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
This commit is contained in:
Gustavo Henrique Nihei 2022-03-10 20:30:36 -03:00 • committed by Petro Karashchenko
parent 7ede285cfe
commit d7364a6506

View file

@ -42,6 +42,10 @@
# include "esp32s3_board_tim.h"
#endif
#ifdef CONFIG_ESP32S3_RT_TIMER
# include "esp32s3_rt_timer.h"
#endif
#ifdef CONFIG_WATCHDOG
# include "esp32s3_board_wdt.h"
#endif
@ -101,6 +105,14 @@ int esp32s3_bringup(void)
}
#endif
#ifdef CONFIG_ESP32S3_RT_TIMER
ret = esp32s3_rt_timer_init();
if (ret < 0)
{
syslog(LOG_ERR, "Failed to initialize RT timer: %d\n", ret);
}
#endif
#ifdef CONFIG_WATCHDOG
/* Configure watchdog timer */