Searched refs:mcpwm_num (Results 1 – 3 of 3) sorted by relevance
/hal_espressif-3.4.0/components/driver/ |
D | mcpwm.c | 55 #define MCPWM_TIMER_ID_CHECK(mcpwm_num, timer_num) … argument 57 …ESP_RETURN_ON_FALSE((mcpwm_num) < SOC_MCPWM_GROUPS, ESP_ERR_INVALID_ARG, TAG, MCPWM_GROUP_NUM_ERRO… 61 #define MCPWM_TIMER_CHECK(mcpwm_num, timer_num) … argument 63 …MCPWM_TIMER_ID_CHECK(mcpwm_num, timer_num); … 64 …ESP_RETURN_ON_FALSE(context[mcpwm_num].hal.dev, ESP_ERR_INVALID_STATE, TAG, MCPWM_DRIVER_INIT_ERRO… 67 #define MCPWM_GEN_CHECK(mcpwm_num, timer_num, gen) \ argument 69 MCPWM_TIMER_CHECK(mcpwm_num, timer_num); \ 114 static inline void mcpwm_critical_enter(mcpwm_unit_t mcpwm_num) in mcpwm_critical_enter() argument 116 portENTER_CRITICAL(&context[mcpwm_num].spinlock); in mcpwm_critical_enter() 119 static inline void mcpwm_critical_exit(mcpwm_unit_t mcpwm_num) in mcpwm_critical_exit() argument [all …]
|
/hal_espressif-3.4.0/components/driver/include/driver/ |
D | mcpwm.h | 340 esp_err_t mcpwm_gpio_init(mcpwm_unit_t mcpwm_num, mcpwm_io_signals_t io_signal, int gpio_num); 354 esp_err_t mcpwm_set_pin(mcpwm_unit_t mcpwm_num, const mcpwm_pin_config_t *mcpwm_pin); 371 esp_err_t mcpwm_init( mcpwm_unit_t mcpwm_num, mcpwm_timer_t timer_num, const mcpwm_config_t *mcpwm… 387 esp_err_t mcpwm_group_set_resolution(mcpwm_unit_t mcpwm_num, unsigned long int resolution); 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); [all …]
|
/hal_espressif-3.4.0/components/driver/test/ |
D | test_pwm.c | 47 static esp_err_t test_mcpwm_gpio_init(mcpwm_unit_t mcpwm_num, mcpwm_io_signals_t io_signal, int gpi… in test_mcpwm_gpio_init() argument 57 …esp_rom_gpio_connect_out_signal(gpio_num, mcpwm_periph_signals.groups[mcpwm_num].operators[operato… in test_mcpwm_gpio_init() 61 …esp_rom_gpio_connect_in_signal(gpio_num, mcpwm_periph_signals.groups[mcpwm_num].gpio_synchros[gpio… in test_mcpwm_gpio_init() 65 …esp_rom_gpio_connect_in_signal(gpio_num, mcpwm_periph_signals.groups[mcpwm_num].gpio_faults[fault_… in test_mcpwm_gpio_init() 69 …esp_rom_gpio_connect_in_signal(gpio_num, mcpwm_periph_signals.groups[mcpwm_num].captures[capture_i… in test_mcpwm_gpio_init()
|