mirror of
https://github.com/apache/nuttx.git
synced 2026-10-06 22:05:21 +00:00
esp32s3-devkit: Enable RT-Timer on board bringup
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
This commit is contained in:
parent
7ede285cfe
commit
d7364a6506
1 changed files with 12 additions and 0 deletions
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue