added set_Frequency to mcpwm.c

changes mcpwm to upDown Timer
This commit is contained in:
2025-02-02 22:30:32 +01:00
parent e098ab6c7a
commit f12f908933
5 changed files with 78 additions and 39 deletions

View File

@@ -9,7 +9,9 @@ typedef enum {
} Phase;
void mcpwm_init();
void set_mcpwm_output(Phase highside, Phase lowside, float Duty);
void set_mcpwm_duty(float Duty);
esp_err_t set_mcpwm_output(Phase highside, Phase lowside);
esp_err_t set_mcpwm_duty(float duty);
esp_err_t set_mcpwm_frequenzy(uint16_t frequenzy);
void get_comps(mcpwm_cmpr_handle_t comps[3]);
float get_duty();
#endif