Home
last modified time | relevance | path

Searched refs:ledc_channel (Results 1 – 9 of 9) sorted by relevance

/hal_espressif-3.6.0/examples/peripherals/ledc/ledc_fade/main/
Dledc_fade_example_main.c116 ledc_channel_config_t ledc_channel[LEDC_TEST_CH_NUM] = { in app_main() local
178 ledc_channel_config(&ledc_channel[ch]); in app_main()
189 …ledc_cb_register(ledc_channel[ch].speed_mode, ledc_channel[ch].channel, &callbacks, (void *) count… in app_main()
195 ledc_set_fade_with_time(ledc_channel[ch].speed_mode, in app_main()
196 ledc_channel[ch].channel, LEDC_TEST_DUTY, LEDC_TEST_FADE_TIME); in app_main()
197 ledc_fade_start(ledc_channel[ch].speed_mode, in app_main()
198 ledc_channel[ch].channel, LEDC_FADE_NO_WAIT); in app_main()
207 ledc_set_fade_with_time(ledc_channel[ch].speed_mode, in app_main()
208 ledc_channel[ch].channel, 0, LEDC_TEST_FADE_TIME); in app_main()
209 ledc_fade_start(ledc_channel[ch].speed_mode, in app_main()
[all …]
/hal_espressif-3.6.0/examples/mesh/internal_communication/main/
Dmesh_light.c50 ledc_channel_config_t ledc_channel = { in mesh_light_init() local
59 ledc_channel_config(&ledc_channel); in mesh_light_init()
60 ledc_channel.channel = LEDC_CHANNEL_1; in mesh_light_init()
61 ledc_channel.gpio_num = LEDC_IO_1; in mesh_light_init()
62 ledc_channel_config(&ledc_channel); in mesh_light_init()
63 ledc_channel.channel = LEDC_CHANNEL_2; in mesh_light_init()
64 ledc_channel.gpio_num = LEDC_IO_2; in mesh_light_init()
65 ledc_channel_config(&ledc_channel); in mesh_light_init()
66 ledc_channel.channel = LEDC_CHANNEL_3; in mesh_light_init()
67 ledc_channel.gpio_num = LEDC_IO_3; in mesh_light_init()
[all …]
/hal_espressif-3.6.0/examples/mesh/manual_networking/main/
Dmesh_light.c53 ledc_channel_config_t ledc_channel = { in mesh_light_init() local
62 ledc_channel_config(&ledc_channel); in mesh_light_init()
63 ledc_channel.channel = LEDC_CHANNEL_1; in mesh_light_init()
64 ledc_channel.gpio_num = LEDC_IO_1; in mesh_light_init()
65 ledc_channel_config(&ledc_channel); in mesh_light_init()
66 ledc_channel.channel = LEDC_CHANNEL_2; in mesh_light_init()
67 ledc_channel.gpio_num = LEDC_IO_2; in mesh_light_init()
68 ledc_channel_config(&ledc_channel); in mesh_light_init()
69 ledc_channel.channel = LEDC_CHANNEL_3; in mesh_light_init()
70 ledc_channel.gpio_num = LEDC_IO_3; in mesh_light_init()
[all …]
/hal_espressif-3.6.0/examples/peripherals/pcnt/pulse_count_event/main/
Dpcnt_event_example_main.c92 ledc_channel_config_t ledc_channel; in ledc_init() local
93 ledc_channel.speed_mode = LEDC_LOW_SPEED_MODE; in ledc_init()
94 ledc_channel.channel = LEDC_CHANNEL_1; in ledc_init()
95 ledc_channel.timer_sel = LEDC_TIMER_1; in ledc_init()
96 ledc_channel.intr_type = LEDC_INTR_DISABLE; in ledc_init()
97 ledc_channel.gpio_num = LEDC_OUTPUT_IO; in ledc_init()
98 ledc_channel.duty = 100; // set duty at about 10% in ledc_init()
99 ledc_channel.hpoint = 0; in ledc_init()
100 ledc_channel_config(&ledc_channel); in ledc_init()
/hal_espressif-3.6.0/examples/peripherals/ledc/ledc_basic/main/
Dledc_basic_example_main.c34 ledc_channel_config_t ledc_channel = { in example_ledc_init() local
43 ESP_ERROR_CHECK(ledc_channel_config(&ledc_channel)); in example_ledc_init()
/hal_espressif-3.6.0/components/driver/
Dledc.c345 esp_err_t ledc_set_pin(int gpio_num, ledc_mode_t speed_mode, ledc_channel_t ledc_channel) in ledc_set_pin() argument
347 LEDC_ARG_CHECK(ledc_channel < LEDC_CHANNEL_MAX, "ledc_channel"); in ledc_set_pin()
352 …pio_connect_out_signal(gpio_num, ledc_periph_signal[speed_mode].sig_out0_idx + ledc_channel, 0, 0); in ledc_set_pin()
361 uint32_t ledc_channel = ledc_conf->channel; in ledc_channel_config() local
367 LEDC_ARG_CHECK(ledc_channel < LEDC_CHANNEL_MAX, "ledc_channel"); in ledc_channel_config()
387 ledc_set_duty_with_hpoint(speed_mode, ledc_channel, duty, hpoint); in ledc_channel_config()
389 ledc_update_duty(speed_mode, ledc_channel); in ledc_channel_config()
391 ledc_bind_channel_timer(speed_mode, ledc_channel, timer_select); in ledc_channel_config()
393 ledc_enable_intr_type(speed_mode, ledc_channel, intr_type); in ledc_channel_config()
395 ledc_channel, gpio_num, duty, timer_select in ledc_channel_config()
[all …]
/hal_espressif-3.6.0/components/driver/test/
Dtest_pcnt.c81 ledc_channel_config_t ledc_channel = { in produce_pulse() local
90 ESP_ERROR_CHECK(ledc_channel_config(&ledc_channel)); in produce_pulse()
187 ledc_channel_config_t ledc_channel = { in count_mode_test() local
196 ledc_channel_config(&ledc_channel); in count_mode_test()
/hal_espressif-3.6.0/components/driver/include/driver/
Dledc.h114 esp_err_t ledc_set_pin(int gpio_num, ledc_mode_t speed_mode, ledc_channel_t ledc_channel)
/hal_espressif-3.6.0/examples/bluetooth/esp_ble_mesh/common_components/light_driver/
Diot_light.c230 ledc_channel_config_t ledc_channel = { in light_channel_create() local
238 ERR_ASSERT(TAG, ledc_channel_config(&ledc_channel), NULL); in light_channel_create()