33 #include "subsystems/actuators/actuators_pwm_arch.h"
47 #define PWM_CMD_TO_US(_t) (PWM_FREQUENCY * _t / 1000000)
61 __attribute__((unused)) static
void pwmpcb(PWMDriver *pwmp __attribute__((unused))) {}
79 static PWMConfig pwmcfg8 = PWM_CONF8_DEF;
82 static PWMConfig pwmcfg9 = PWM_CONF9_DEF;
147 pwmStart(&PWMD1, &pwmcfg1);
150 pwmStart(&PWMD2, &pwmcfg2);
153 pwmStart(&PWMD3, &pwmcfg3);
156 pwmStart(&PWMD4, &pwmcfg4);
159 pwmStart(&PWMD5, &pwmcfg5);
162 pwmStart(&PWMD8, &pwmcfg8);
165 pwmStart(&PWMD9, &pwmcfg9);
void gpio_setup_pin_af(ioportid_t port, uint16_t pin, uint8_t af, bool is_output)
Setup a gpio for input or output with alternate function.
void actuators_pwm_arch_init(void)
Arch dependent init file.
Some architecture independent helper functions for GPIOs.
#define PWM_SERVO_3_DRIVER
#define PWM_SERVO_5_CHANNEL
#define PWM_SERVO_6_CHANNEL
#define PWM_SERVO_5_DRIVER
#define PWM_SERVO_1_CHANNEL
#define PWM_SERVO_0_CHANNEL
#define PWM_SERVO_2_CHANNEL
#define PWM_SERVO_4_CHANNEL
#define PWM_SERVO_2_DRIVER
void actuators_pwm_commit(void)
#define PWM_SERVO_4_DRIVER
#define PWM_SERVO_10_GPIO
#define PWM_SERVO_1_DRIVER
static void pwmpcb(PWMDriver *pwmp)
PWM callback function.
#define PWM_SERVO_6_DRIVER
#define PWM_SERVO_3_CHANNEL
#define PWM_CMD_TO_US(_t)
CMD_TO_US() is depending on architecture (e.g STM32 vs LPC), and on the hardware settings (clock spee...
#define PWM_SERVO_0_DRIVER
int32_t actuators_pwm_values[ACTUATORS_PWM_NB]