/hal_espressif-3.6.0/components/hal/esp32s2/include/hal/ |
D | timer_ll.h | 47 static inline void timer_ll_set_divider(timg_dev_t *hw, timer_idx_t timer_num, uint32_t divider) in timer_ll_set_divider() argument 53 int timer_en = hw->hw_timer[timer_num].config.tx_en; in timer_ll_set_divider() 54 hw->hw_timer[timer_num].config.tx_en = 0; in timer_ll_set_divider() 55 HAL_FORCE_MODIFY_U32_REG_FIELD(hw->hw_timer[timer_num].config, tx_divider, divider); in timer_ll_set_divider() 56 hw->hw_timer[timer_num].config.tx_en = timer_en; in timer_ll_set_divider() 68 static inline void timer_ll_get_divider(timg_dev_t *hw, timer_idx_t timer_num, uint32_t *divider) in timer_ll_get_divider() argument 70 uint32_t d = HAL_FORCE_READ_U32_REG_FIELD(hw->hw_timer[timer_num].config, tx_divider); in timer_ll_get_divider() 88 static inline void timer_ll_set_counter_value(timg_dev_t *hw, timer_idx_t timer_num, uint64_t load_… in timer_ll_set_counter_value() argument 90 hw->hw_timer[timer_num].loadhi.tx_load_hi = (uint32_t) (load_val >> 32); in timer_ll_set_counter_value() 91 hw->hw_timer[timer_num].loadlo.tx_load_lo = (uint32_t) load_val; in timer_ll_set_counter_value() [all …]
|
/hal_espressif-3.6.0/components/hal/esp32/include/hal/ |
D | timer_ll.h | 47 static inline void timer_ll_set_divider(timg_dev_t *hw, timer_idx_t timer_num, uint32_t divider) in timer_ll_set_divider() argument 53 int timer_en = hw->hw_timer[timer_num].config.enable; in timer_ll_set_divider() 54 hw->hw_timer[timer_num].config.enable = 0; in timer_ll_set_divider() 55 HAL_FORCE_MODIFY_U32_REG_FIELD(hw->hw_timer[timer_num].config, divider, divider); in timer_ll_set_divider() 56 hw->hw_timer[timer_num].config.enable = timer_en; in timer_ll_set_divider() 68 static inline void timer_ll_get_divider(timg_dev_t *hw, timer_idx_t timer_num, uint32_t *divider) in timer_ll_get_divider() argument 70 uint32_t d = HAL_FORCE_READ_U32_REG_FIELD(hw->hw_timer[timer_num].config, divider); in timer_ll_get_divider() 88 static inline void timer_ll_set_counter_value(timg_dev_t *hw, timer_idx_t timer_num, uint64_t load_… in timer_ll_set_counter_value() argument 90 hw->hw_timer[timer_num].load_high = (uint32_t) (load_val >> 32); in timer_ll_set_counter_value() 91 hw->hw_timer[timer_num].load_low = (uint32_t) load_val; in timer_ll_set_counter_value() [all …]
|
/hal_espressif-3.6.0/components/hal/esp32h2/include/hal/ |
D | timer_ll.h | 51 static inline void timer_ll_set_divider(timg_dev_t *hw, timer_idx_t timer_num, uint32_t divider) in timer_ll_set_divider() argument 57 int timer_en = hw->hw_timer[timer_num].config.tx_en; in timer_ll_set_divider() 58 hw->hw_timer[timer_num].config.tx_en = 0; in timer_ll_set_divider() 59 hw->hw_timer[timer_num].config.tx_divcnt_rst = 1; in timer_ll_set_divider() 60 HAL_FORCE_MODIFY_U32_REG_FIELD(hw->hw_timer[timer_num].config, tx_divider, divider); in timer_ll_set_divider() 61 hw->hw_timer[timer_num].config.tx_en = timer_en; in timer_ll_set_divider() 73 static inline void timer_ll_get_divider(timg_dev_t *hw, timer_idx_t timer_num, uint32_t *divider) in timer_ll_get_divider() argument 75 uint32_t d = HAL_FORCE_READ_U32_REG_FIELD(hw->hw_timer[timer_num].config, tx_divider); in timer_ll_get_divider() 93 static inline void timer_ll_set_counter_value(timg_dev_t *hw, timer_idx_t timer_num, uint64_t load_… in timer_ll_set_counter_value() argument 95 hw->hw_timer[timer_num].loadhi.tx_load_hi = (uint32_t) (load_val >> 32); in timer_ll_set_counter_value() [all …]
|
/hal_espressif-3.6.0/components/hal/esp32c3/include/hal/ |
D | timer_ll.h | 51 static inline void timer_ll_set_divider(timg_dev_t *hw, timer_idx_t timer_num, uint32_t divider) in timer_ll_set_divider() argument 57 int timer_en = hw->hw_timer[timer_num].config.tx_en; in timer_ll_set_divider() 58 hw->hw_timer[timer_num].config.tx_en = 0; in timer_ll_set_divider() 59 hw->hw_timer[timer_num].config.tx_divcnt_rst = 1; in timer_ll_set_divider() 60 HAL_FORCE_MODIFY_U32_REG_FIELD(hw->hw_timer[timer_num].config, tx_divider, divider); in timer_ll_set_divider() 61 hw->hw_timer[timer_num].config.tx_en = timer_en; in timer_ll_set_divider() 73 static inline void timer_ll_get_divider(timg_dev_t *hw, timer_idx_t timer_num, uint32_t *divider) in timer_ll_get_divider() argument 75 uint32_t d = HAL_FORCE_READ_U32_REG_FIELD(hw->hw_timer[timer_num].config, tx_divider); in timer_ll_get_divider() 93 static inline void timer_ll_set_counter_value(timg_dev_t *hw, timer_idx_t timer_num, uint64_t load_… in timer_ll_set_counter_value() argument 95 hw->hw_timer[timer_num].loadhi.tx_load_hi = (uint32_t) (load_val >> 32); in timer_ll_set_counter_value() [all …]
|
/hal_espressif-3.6.0/components/hal/esp32s3/include/hal/ |
D | timer_ll.h | 52 static inline void timer_ll_set_divider(timg_dev_t *hw, timer_idx_t timer_num, uint32_t divider) in timer_ll_set_divider() argument 58 int timer_en = hw->hw_timer[timer_num].config.tn_en; in timer_ll_set_divider() 59 hw->hw_timer[timer_num].config.tn_en = 0; in timer_ll_set_divider() 60 HAL_FORCE_MODIFY_U32_REG_FIELD(hw->hw_timer[timer_num].config, tn_divider, divider); in timer_ll_set_divider() 61 hw->hw_timer[timer_num].config.tn_en = timer_en; in timer_ll_set_divider() 73 static inline void timer_ll_get_divider(timg_dev_t *hw, timer_idx_t timer_num, uint32_t *divider) in timer_ll_get_divider() argument 75 uint32_t d = HAL_FORCE_READ_U32_REG_FIELD(hw->hw_timer[timer_num].config, tn_divider); in timer_ll_get_divider() 93 static inline void timer_ll_set_counter_value(timg_dev_t *hw, timer_idx_t timer_num, uint64_t load_… in timer_ll_set_counter_value() argument 95 hw->hw_timer[timer_num].loadhi.tn_load_hi = (uint32_t) (load_val >> 32); in timer_ll_set_counter_value() 96 hw->hw_timer[timer_num].loadlo.tn_load_lo = (uint32_t) load_val; in timer_ll_set_counter_value() [all …]
|
/hal_espressif-3.6.0/components/driver/ |
D | timer.c | 49 esp_err_t timer_get_counter_value(timer_group_t group_num, timer_idx_t timer_num, uint64_t *timer_v… in timer_get_counter_value() argument 52 ESP_RETURN_ON_FALSE(timer_num < TIMER_MAX, ESP_ERR_INVALID_ARG, TIMER_TAG, TIMER_NUM_ERROR); in timer_get_counter_value() 54 …ESP_RETURN_ON_FALSE(p_timer_obj[group_num][timer_num] != NULL, ESP_ERR_INVALID_ARG, TIMER_TAG, TI… in timer_get_counter_value() 56 timer_hal_get_counter_value(&(p_timer_obj[group_num][timer_num]->hal), timer_val); in timer_get_counter_value() 61 esp_err_t timer_get_counter_time_sec(timer_group_t group_num, timer_idx_t timer_num, double *time) in timer_get_counter_time_sec() argument 64 ESP_RETURN_ON_FALSE(timer_num < TIMER_MAX, ESP_ERR_INVALID_ARG, TIMER_TAG, TIMER_NUM_ERROR); in timer_get_counter_time_sec() 66 …ESP_RETURN_ON_FALSE(p_timer_obj[group_num][timer_num] != NULL, ESP_ERR_INVALID_ARG, TIMER_TAG, TI… in timer_get_counter_time_sec() 68 esp_err_t err = timer_get_counter_value(group_num, timer_num, &timer_val); in timer_get_counter_time_sec() 71 timer_hal_get_divider(&(p_timer_obj[group_num][timer_num]->hal), &div); in timer_get_counter_time_sec() 74 if (timer_hal_get_use_xtal(&(p_timer_obj[group_num][timer_num]->hal))) { in timer_get_counter_time_sec() [all …]
|
D | mcpwm.c | 55 #define MCPWM_TIMER_ID_CHECK(mcpwm_num, timer_num) … argument 58 …ESP_RETURN_ON_FALSE((timer_num) < SOC_MCPWM_TIMERS_PER_GROUP, ESP_ERR_INVALID_ARG, TAG, MCPWM_TIME… 61 #define MCPWM_TIMER_CHECK(mcpwm_num, timer_num) … argument 63 …MCPWM_TIMER_ID_CHECK(mcpwm_num, timer_num); … 67 #define MCPWM_GEN_CHECK(mcpwm_num, timer_num, gen) \ argument 69 MCPWM_TIMER_CHECK(mcpwm_num, timer_num); \ 185 esp_err_t mcpwm_start(mcpwm_unit_t mcpwm_num, mcpwm_timer_t timer_num) in mcpwm_start() argument 187 MCPWM_TIMER_CHECK(mcpwm_num, timer_num); in mcpwm_start() 190 …mcpwm_ll_timer_set_execute_command(context[mcpwm_num].hal.dev, timer_num, MCPWM_TIMER_START_NO_STO… in mcpwm_start() 195 esp_err_t mcpwm_stop(mcpwm_unit_t mcpwm_num, mcpwm_timer_t timer_num) in mcpwm_stop() argument [all …]
|
D | ledc.c | 262 static esp_err_t ledc_set_timer_div(ledc_mode_t speed_mode, ledc_timer_t timer_num, ledc_clk_cfg_t … in ledc_set_timer_div() argument 305 ledc_timer_set(speed_mode, timer_num, div_param, duty_resolution, timer_clk_src); in ledc_set_timer_div() 307 ledc_timer_rst(speed_mode, timer_num); in ledc_set_timer_div() 320 uint32_t timer_num = timer_conf->timer_num; in ledc_timer_config() local 329 if (timer_num > LEDC_TIMER_3) { in ledc_timer_config() 330 ESP_LOGE(LEDC_TAG, "invalid timer #%u", timer_num); in ledc_timer_config() 342 return ledc_set_timer_div(speed_mode, timer_num, timer_conf->clk_cfg, freq_hz, duty_resolution); in ledc_timer_config() 517 esp_err_t ledc_set_freq(ledc_mode_t speed_mode, ledc_timer_t timer_num, uint32_t freq_hz) in ledc_set_freq() argument 520 LEDC_ARG_CHECK(timer_num < LEDC_TIMER_MAX, "timer_num"); in ledc_set_freq() 524 ledc_hal_get_clk_cfg(&(p_ledc_obj[speed_mode]->ledc_hal), timer_num, &clk_cfg); in ledc_set_freq() [all …]
|
/hal_espressif-3.6.0/components/driver/include/driver/ |
D | timer.h | 54 esp_err_t timer_get_counter_value(timer_group_t group_num, timer_idx_t timer_num, uint64_t *timer_v… 67 esp_err_t timer_get_counter_time_sec(timer_group_t group_num, timer_idx_t timer_num, double *time); 80 esp_err_t timer_set_counter_value(timer_group_t group_num, timer_idx_t timer_num, uint64_t load_val… 92 esp_err_t timer_start(timer_group_t group_num, timer_idx_t timer_num); 104 esp_err_t timer_pause(timer_group_t group_num, timer_idx_t timer_num); 117 esp_err_t timer_set_counter_mode(timer_group_t group_num, timer_idx_t timer_num, timer_count_dir_t … 130 esp_err_t timer_set_auto_reload(timer_group_t group_num, timer_idx_t timer_num, timer_autoreload_t … 144 esp_err_t timer_set_divider(timer_group_t group_num, timer_idx_t timer_num, uint32_t divider); 157 esp_err_t timer_set_alarm_value(timer_group_t group_num, timer_idx_t timer_num, uint64_t alarm_valu… 170 esp_err_t timer_get_alarm_value(timer_group_t group_num, timer_idx_t timer_num, uint64_t *alarm_val… [all …]
|
D | mcpwm.h | 371 esp_err_t mcpwm_init( mcpwm_unit_t mcpwm_num, mcpwm_timer_t timer_num, const mcpwm_config_t *mcpwm… 404 esp_err_t mcpwm_timer_set_resolution(mcpwm_unit_t mcpwm_num, mcpwm_timer_t timer_num, unsigned long… 417 esp_err_t mcpwm_set_frequency(mcpwm_unit_t mcpwm_num, mcpwm_timer_t timer_num, uint32_t frequency); 431 esp_err_t mcpwm_set_duty(mcpwm_unit_t mcpwm_num, mcpwm_timer_t timer_num, mcpwm_generator_t gen, fl… 445 esp_err_t mcpwm_set_duty_in_us(mcpwm_unit_t mcpwm_num, mcpwm_timer_t timer_num, mcpwm_generator_t g… 461 esp_err_t mcpwm_set_duty_type(mcpwm_unit_t mcpwm_num, mcpwm_timer_t timer_num, mcpwm_generator_t ge… 472 uint32_t mcpwm_get_frequency(mcpwm_unit_t mcpwm_num, mcpwm_timer_t timer_num); 484 float mcpwm_get_duty(mcpwm_unit_t mcpwm_num, mcpwm_timer_t timer_num, mcpwm_operator_t gen); 496 uint32_t mcpwm_get_duty_in_us(mcpwm_unit_t mcpwm_num, mcpwm_timer_t timer_num, mcpwm_operator_t gen… 510 esp_err_t mcpwm_set_signal_high(mcpwm_unit_t mcpwm_num, mcpwm_timer_t timer_num, mcpwm_generator_t … [all …]
|
D | ledc.h | 142 esp_err_t ledc_set_freq(ledc_mode_t speed_mode, ledc_timer_t timer_num, uint32_t freq_hz); 154 uint32_t ledc_get_freq(ledc_mode_t speed_mode, ledc_timer_t timer_num);
|
/hal_espressif-3.6.0/examples/bluetooth/esp_ble_mesh/common_components/light_driver/ |
D | iot_led.c | 54 ledc_timer_t timer_num; member 64 static IRAM_ATTR esp_err_t _timer_pause(timer_group_t group_num, timer_idx_t timer_num) in _timer_pause() argument 66 TG[group_num]->hw_timer[timer_num].config.enable = 0; in _timer_pause() 177 …uint32_t timer_source_clk = LEDC.timer_group[speed_mode].timer[g_light_config->timer_num].conf.tic… in _iot_set_fade_with_time() 178 …uint32_t duty_resolution = LEDC.timer_group[speed_mode].timer[g_light_config->timer_num].conf.duty… in _iot_set_fade_with_time() 179 …uint32_t clock_divider = LEDC.timer_group[speed_mode].timer[g_light_config->timer_num].conf.clock_… in _iot_set_fade_with_time() 380 esp_err_t iot_led_init(ledc_timer_t timer_num, ledc_mode_t speed_mode, uint32_t freq_hz) in iot_led_init() argument 385 .timer_num = timer_num, in iot_led_init() 405 g_light_config->timer_num = timer_num; in iot_led_init() 455 .timer_sel = g_light_config->timer_num, in iot_led_regist_channel()
|
D | iot_light.c | 287 .timer_num = timer, in iot_light_create()
|
/hal_espressif-3.6.0/components/driver/test/ |
D | test_timer.c | 254 static void timer_isr_check(timer_group_t group_num, timer_idx_t timer_num, timer_autoreload_t auto… in timer_isr_check() argument 260 TEST_ASSERT_EQUAL(timer_num, evt.timer_idx); in timer_isr_check() 265 static void timer_intr_enable_disable_test(timer_group_t group_num, timer_idx_t timer_num, uint64_t… in timer_intr_enable_disable_test() argument 268 TEST_ESP_OK(timer_set_counter_value(group_num, timer_num, 0)); in timer_intr_enable_disable_test() 269 TEST_ESP_OK(timer_set_alarm(group_num, timer_num, TIMER_ALARM_EN)); in timer_intr_enable_disable_test() 270 TEST_ESP_OK(timer_enable_intr(group_num, timer_num)); in timer_intr_enable_disable_test() 271 TEST_ESP_OK(timer_start(group_num, timer_num)); in timer_intr_enable_disable_test() 272 timer_isr_check(group_num, timer_num, TIMER_AUTORELOAD_DIS, alarm_cnt_val); in timer_intr_enable_disable_test() 277 TEST_ESP_OK(timer_pause(group_num, timer_num)); in timer_intr_enable_disable_test() 278 TEST_ESP_OK(timer_set_counter_value(group_num, timer_num, 0)); in timer_intr_enable_disable_test() [all …]
|
D | test_ledc.c | 67 ledc_time_config.timer_num = LEDC_TIMER_0; in create_default_timer_config() 106 ledc_time_config.timer_num = timer; in timer_duty_test() 179 .timer_num = timer, in timer_frequency_test() 245 ledc_time_config.timer_num = LEDC_TIMER_MAX; 293 ledc_time_config.timer_num = timer_select[k]; 477 .timer_num = LEDC_TIMER_0, 530 .timer_num = LEDC_TIMER_0,
|
D | test_pcnt.c | 74 .timer_num = LEDC_TIMER_1, in produce_pulse() 180 .timer_num = LEDC_TIMER_1, in count_mode_test()
|
/hal_espressif-3.6.0/components/hal/ |
D | timer_hal.c | 18 void timer_hal_init(timer_hal_context_t *hal, timer_group_t group_num, timer_idx_t timer_num) in timer_hal_init() argument 21 hal->idx = timer_num; in timer_hal_init()
|
/hal_espressif-3.6.0/examples/peripherals/ledc/ledc_fade/main/ |
D | ledc_fade_example_main.c | 92 .timer_num = LEDC_LS_TIMER, // timer index in app_main() 100 ledc_timer.timer_num = LEDC_HS_TIMER; in app_main()
|
/hal_espressif-3.6.0/examples/peripherals/ledc/ledc_basic/main/ |
D | ledc_basic_example_main.c | 26 .timer_num = LEDC_TIMER, in example_ledc_init()
|
/hal_espressif-3.6.0/examples/bluetooth/esp_ble_mesh/common_components/light_driver/include/ |
D | iot_led.h | 72 esp_err_t iot_led_init(ledc_timer_t timer_num, ledc_mode_t speed_mode, uint32_t freq_hz);
|
/hal_espressif-3.6.0/components/hal/include/hal/ |
D | ledc_types.h | 152 ledc_timer_t timer_num; /*!< The timer source of channel (0 - 3) */ member
|
D | timer_hal.h | 51 void timer_hal_init(timer_hal_context_t *hal, timer_group_t group_num, timer_idx_t timer_num);
|
/hal_espressif-3.6.0/examples/peripherals/pcnt/pulse_count_event/main/ |
D | pcnt_event_example_main.c | 85 ledc_timer.timer_num = LEDC_TIMER_1; in ledc_init()
|
/hal_espressif-3.6.0/examples/mesh/internal_communication/main/ |
D | mesh_light.c | 45 .timer_num = LEDC_TIMER_0, in mesh_light_init()
|
/hal_espressif-3.6.0/examples/mesh/manual_networking/main/ |
D | mesh_light.c | 45 .timer_num = LEDC_TIMER_0, in mesh_light_init()
|