Skip to content

Commit

Permalink
feat(ledc): add ledc support on c61
Browse files Browse the repository at this point in the history
  • Loading branch information
Kainarx committed Aug 15, 2024
1 parent eff2e4e commit 2e2cbd9
Show file tree
Hide file tree
Showing 16 changed files with 2,824 additions and 88 deletions.
2 changes: 1 addition & 1 deletion components/esp_driver_ledc/src/ledc.c
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ esp_err_t ledc_channel_config(const ledc_channel_config_t *ledc_conf)
if (!new_speed_mode_ctx_created && !p_ledc_obj[speed_mode]) {
return ESP_ERR_NO_MEM;
}
#if !(CONFIG_IDF_TARGET_ESP32 || CONFIG_IDF_TARGET_ESP32H2 || CONFIG_IDF_TARGET_ESP32P4 || CONFIG_IDF_TARGET_ESP32C5)
#if !(CONFIG_IDF_TARGET_ESP32 || CONFIG_IDF_TARGET_ESP32H2 || CONFIG_IDF_TARGET_ESP32P4 || CONFIG_IDF_TARGET_ESP32C5 || CONFIG_IDF_TARGET_ESP32C61)
// On such targets, the default ledc core(global) clock does not connect to any clock source
// Set channel configurations and update bits before core clock is on could lead to error
// Therefore, we should connect the core clock to a real clock source to make it on before any ledc register operation
Expand Down
4 changes: 2 additions & 2 deletions components/esp_driver_ledc/test_apps/ledc/README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C5 | ESP32-C6 | ESP32-H2 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- | -------- | -------- |
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C5 | ESP32-C6 | ESP32-C61 | ESP32-H2 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- | --------- | -------- | -------- | -------- | -------- |
2 changes: 1 addition & 1 deletion components/esp_driver_ledc/test_apps/ledc/main/test_ledc.c
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ TEST_CASE("LEDC multi fade test", "[ledc]")
}
#endif // SOC_LEDC_GAMMA_CURVE_FADE_SUPPORTED

#if SOC_PCNT_SUPPORTED // Note. C3, C2 do not have PCNT peripheral, the following test cases cannot be tested
#if SOC_PCNT_SUPPORTED // Note. C61, C3, C2 do not have PCNT peripheral, the following test cases cannot be tested

#include "driver/pulse_cnt.h"

Expand Down
Loading

0 comments on commit 2e2cbd9

Please sign in to comment.