refactor(ledc): deprecate ledc_isr_register and ledc_channel_config_t::intr_type

This commit is contained in:
Song Ruo Jing
2025-07-07 17:55:38 +08:00
parent dca8f204eb
commit 63e2d6828b
10 changed files with 12 additions and 35 deletions

View File

@@ -90,13 +90,6 @@ TEST_CASE("LEDC channel config wrong channel", "[ledc]")
TEST_ASSERT(ledc_channel_config(&ledc_ch_config) == ESP_ERR_INVALID_ARG);
}
TEST_CASE("LEDC channel config wrong interrupt type", "[ledc]")
{
ledc_channel_config_t ledc_ch_config = initialize_channel_config();
ledc_ch_config.intr_type = 2;
TEST_ASSERT_EQUAL(ESP_ERR_INVALID_ARG, ledc_channel_config(&ledc_ch_config));
}
TEST_CASE("LEDC wrong timer", "[ledc]")
{
ledc_channel_config_t ledc_ch_config = initialize_channel_config();

View File

@@ -18,7 +18,6 @@ ledc_channel_config_t initialize_channel_config(void)
config.gpio_num = PULSE_IO;
config.speed_mode = TEST_SPEED_MODE;
config.channel = LEDC_CHANNEL_0;
config.intr_type = LEDC_INTR_DISABLE;
config.timer_sel = LEDC_TIMER_0;
config.duty = 4000;
config.hpoint = 0;