mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 11:26:12 +08: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:
committed by
Lup Yuen Lee
parent
7d288a9894
commit
ad622c018c
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user