Home
last modified time | relevance | path

Searched refs:total_cycles (Results 1 – 2 of 2) sorted by relevance

/hal_espressif-3.6.0/examples/bluetooth/esp_ble_mesh/common_components/light_driver/
Diot_led.c192 int total_cycles = max_fade_time_ms * freq / 1000; in _iot_set_fade_with_time() local
194 if (total_cycles == 0) { in _iot_set_fade_with_time()
200 if (total_cycles > duty_delta) { in _iot_set_fade_with_time()
202 cycle_num = total_cycles / duty_delta; in _iot_set_fade_with_time()
215 scale = duty_delta / total_cycles; in _iot_set_fade_with_time()
/hal_espressif-3.6.0/components/driver/
Dledc.c735 uint32_t total_cycles = max_fade_time_ms * freq / 1000; in _ledc_set_fade_with_time() local
736 if (total_cycles == 0) { in _ledc_set_fade_with_time()
741 if (total_cycles > duty_delta) { in _ledc_set_fade_with_time()
743 cycle_num = total_cycles / duty_delta; in _ledc_set_fade_with_time()
750 scale = duty_delta / total_cycles; in _ledc_set_fade_with_time()