mirror of
https://github.com/apache/nuttx.git
synced 2026-10-12 08:40:20 +00:00
boards/szpi-esp32s3: Add PWM setup
Add PWM setup for LCKFB SZPI-ESP32S3. Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
This commit is contained in:
parent
7d288a9894
commit
ad622c018c
1 changed files with 12 additions and 0 deletions
|
|
@ -84,6 +84,10 @@
|
|||
# include "esp32s3_efuse.h"
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESP32S3_LEDC
|
||||
# include "esp32s3_board_ledc.h"
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESP32S3_PARTITION_TABLE
|
||||
# include "esp32s3_partition.h"
|
||||
#endif
|
||||
|
|
@ -218,6 +222,14 @@ int esp32s3_bringup(void)
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESP32S3_LEDC
|
||||
ret = esp32s3_pwm_setup();
|
||||
if (ret < 0)
|
||||
{
|
||||
syslog(LOG_ERR, "ERROR: esp32s3_pwm_setup() failed: %d\n", ret);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESP32S3_TIMER
|
||||
/* Configure general purpose timers */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue