File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
components/esp_driver_ledc/src
en/api-reference/peripherals
zh_CN/api-reference/peripherals Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1116,7 +1116,7 @@ uint32_t ledc_get_freq(ledc_mode_t speed_mode, ledc_timer_t timer_num)
1116
1116
ledc_hal_get_clock_divider (& (p_ledc_obj [speed_mode ]-> ledc_hal ), timer_num , & clock_divider );
1117
1117
ledc_hal_get_duty_resolution (& (p_ledc_obj [speed_mode ]-> ledc_hal ), timer_num , & duty_resolution );
1118
1118
ledc_hal_get_clk_cfg (& (p_ledc_obj [speed_mode ]-> ledc_hal ), timer_num , & clk_cfg );
1119
- uint32_t precision = (0x1 << duty_resolution );
1119
+ uint64_t precision = (0x1 << duty_resolution );
1120
1120
uint32_t src_clk_freq = 0 ;
1121
1121
esp_clk_tree_src_get_freq_hz ((soc_module_clk_t )clk_cfg , LEDC_CLK_SRC_FREQ_PRECISION , & src_clk_freq );
1122
1122
portEXIT_CRITICAL (& ledc_spinlock );
Original file line number Diff line number Diff line change @@ -319,14 +319,14 @@ The LEDC API provides several ways to change the PWM frequency "on the fly":
319
319
More Control Over PWM
320
320
"""""""""""""""""""""
321
321
322
- There are several lower level timer-specific functions that can be used to change PWM settings :
322
+ There are several individual timer-specific functions that can be used to change PWM output :
323
323
324
324
* :cpp:func: `ledc_timer_set `
325
325
* :cpp:func: `ledc_timer_rst `
326
326
* :cpp:func: `ledc_timer_pause `
327
327
* :cpp:func: `ledc_timer_resume `
328
328
329
- The first two functions are called "behind the scenes" by :cpp:func: `ledc_channel_config ` to provide a startup of a timer after it is configured.
329
+ The first two functions are called "behind the scenes" by :cpp:func: `ledc_timer_config ` to provide a startup of a timer after it is configured.
330
330
331
331
332
332
Use Interrupts
Original file line number Diff line number Diff line change @@ -319,14 +319,14 @@ LED PWM 控制器 API 有多种方式即时改变 PWM 频率:
319
319
控制 PWM 的更多方式
320
320
"""""""""""""""""""""
321
321
322
- 有一些较底层的定时器特定函数可用于更改 PWM 设置 :
322
+ 有一些较独立的定时器特定函数可用于更改 PWM 输出 :
323
323
324
324
* :cpp:func: `ledc_timer_set `
325
325
* :cpp:func: `ledc_timer_rst `
326
326
* :cpp:func: `ledc_timer_pause `
327
327
* :cpp:func: `ledc_timer_resume `
328
328
329
- 前两个功能可通过函数 :cpp:func: `ledc_channel_config ` 在后台运行,在定时器配置后启动。
329
+ 前两个功能可通过函数 :cpp:func: `ledc_timer_config ` 在后台运行,在定时器配置后启动。
330
330
331
331
332
332
使用中断
You can’t perform that action at this time.
0 commit comments