Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
STM32 PWM servos handling. More...
#include "modules/actuators/actuators_shared_arch.h"
#include "modules/actuators/actuators_pwm_arch.h"
#include "modules/actuators/actuators_pwm.h"
#include <libopencm3/stm32/gpio.h>
#include <libopencm3/stm32/rcc.h>
#include <libopencm3/stm32/timer.h>
#include "mcu_periph/gpio_arch.h"
Go to the source code of this file.
Functions | |
void | actuators_pwm_arch_init (void) |
PWM arch init called by generic pwm driver. | |
void | actuators_pwm_commit (void) |
Set pulse widths from actuator values, assumed to be in us. | |
Variables | |
int32_t | actuators_pwm_values [ACTUATORS_PWM_NB] |
STM32 PWM servos handling.
Definition in file actuators_pwm_arch.c.
PWM arch init called by generic pwm driver.
Arch dependent init file.
Definition at line 44 of file actuators_pwm_arch.c.
References foo, gpio_setup_pin_af(), PWM_TIM12_CHAN_MASK, PWM_TIM1_CHAN_MASK, PWM_TIM2_CHAN_MASK, PWM_TIM3_CHAN_MASK, PWM_TIM4_CHAN_MASK, PWM_TIM5_CHAN_MASK, PWM_TIM8_CHAN_MASK, PWM_TIM9_CHAN_MASK, set_servo_timer(), TIM12_SERVO_HZ, TIM1_SERVO_HZ, TIM2_SERVO_HZ, TIM3_SERVO_HZ, TIM4_SERVO_HZ, TIM5_SERVO_HZ, TIM8_SERVO_HZ, TIM9_SERVO_HZ, and TRUE.
Set pulse widths from actuator values, assumed to be in us.
Definition at line 158 of file actuators_pwm_arch.c.
References actuators_pwm_values, foo, PWM_SERVO_3, PWM_SERVO_4, PWM_SERVO_5, and PWM_SERVO_6.
int32_t actuators_pwm_values[ACTUATORS_PWM_NB] |
Definition at line 39 of file actuators_pwm_arch.c.