mirror of
https://github.com/esp-rs/esp-idf-hal.git
synced 2025-09-27 12:21:02 +00:00
ledc clk name change in esp-idf master (#208)
This commit is contained in:
parent
967f96a6a1
commit
423ab99fab
@ -116,7 +116,10 @@ impl<'d> LedcTimerDriver<'d> {
|
||||
#[cfg(not(esp_idf_version_major = "4"))]
|
||||
duty_resolution: config.resolution.timer_bits(),
|
||||
freq_hz: config.frequency.into(),
|
||||
#[cfg(any(esp_idf_version_major = "4", esp_idf_version_minor = "0"))]
|
||||
clk_cfg: ledc_clk_cfg_t_LEDC_AUTO_CLK,
|
||||
#[cfg(not(any(esp_idf_version_major = "4", esp_idf_version_minor = "0")))]
|
||||
clk_cfg: soc_periph_ledc_clk_src_legacy_t_LEDC_AUTO_CLK,
|
||||
};
|
||||
|
||||
// SAFETY: We own the instance and therefor are safe to configure it.
|
||||
|
Loading…
x
Reference in New Issue
Block a user