miniFOC 1.0.3
This open-source project aims to accomplish a FOC(Field Oriented Control) scheme that is operatable with minimum costs in China.
timer.h
Go to the documentation of this file.
1/**************************************************************************/
9#ifndef MINIFOC_HARDWARE_TIMER_H_
10#define MINIFOC_HARDWARE_TIMER_H_
11
15#define PWM_PERIOD 18000 / PWM_FREQUENCY
16
17void update_pwm_dutycycle(float ch0, float ch1, float ch2);
18void timer2_disable(void);
19void timer13_disable(void);
20void timer2_config(void);
21void timer13_config(void);
22void pwm_config(void);
23
24#endif //MINIFOC_HARDWARE_TIMER_H_
void timer2_disable(void)
disable timer2 periph and timer2 interrupt
Definition: timer.c:44
void pwm_config(void)
configure timer1 periph and its gpios
Definition: timer.c:117
void timer13_disable(void)
disable timer13 periph and timer2 interrupt
Definition: timer.c:30
void timer13_config(void)
configure timer13 periph for timing interrupt
Definition: timer.c:89
void update_pwm_dutycycle(float ch0, float ch1, float ch2)
update timer1 ch0 1 2 duty-cycle
Definition: timer.c:20
void timer2_config(void)
configure timer2 periph for timing interrupt
Definition: timer.c:61