26 #ifndef ACTUATORS_dualpwm_ARCH_H
27 #define ACTUATORS_dualpwm_ARCH_H
34 #ifndef ACTUATORS_DUALPWM_NB
35 #define ACTUATORS_DUALPWM_NB 4
51 #define SERVOS_TICS_OF_USEC(_v) (_v)
53 #define ActuatorDualpwmSet(_i, _v) { actuators_dualpwm_values[_i] = _v; }
54 #define ActuatorsDualpwmCommit actuators_dualpwm_commit
void set_dual_pwm_timer_s_oc(uint32_t oc_value, uint32_t oc_value2)
#define ACTUATORS_DUALPWM_NB
void set_dual_pwm_timer_s_period(uint32_t period)
void actuators_dualpwm_commit(void)
Set pulse widths from actuator values, assumed to be in us.
void clear_timer_flag(void)
Interuption called at the end of the timer.
uint32_t actuators_dualpwm_values[ACTUATORS_DUALPWM_NB]
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.