|
Paparazzi UAS
v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
|
STM32 PWM and dualPWM servos shared functions. More...
#include "arch/stm32/subsystems/actuators/actuators_shared_arch.h"#include <libopencm3/stm32/timer.h>#include "arch/stm32/mcu_arch.h"
Include dependency graph for actuators_shared_arch.c:Go to the source code of this file.
Functions | |
| void | actuators_pwm_arch_channel_init (uint32_t timer_peripheral, enum tim_oc_id oc_id) |
| Set PWM channel configuration. More... | |
| void | set_servo_timer (uint32_t timer, uint32_t freq, uint8_t channels_mask) |
| Set Timer configuration. More... | |
STM32 PWM and dualPWM servos shared functions.
Definition in file actuators_shared_arch.c.
| void actuators_pwm_arch_channel_init | ( | uint32_t | timer_peripheral, |
| enum tim_oc_id | oc_id | ||
| ) |
Set PWM channel configuration.
Definition at line 35 of file actuators_shared_arch.c.
Referenced by set_servo_timer().
Here is the caller graph for this function:Set Timer configuration.
| [in] | timer | Timer register address base |
| [in] | freq | PWM frequency in Hz (1 / auto-reload period) |
| [in] | channels_mask | output compare channels to enable |
Definition at line 59 of file actuators_shared_arch.c.
References actuators_pwm_arch_channel_init(), PWM_BASE_FREQ, and timer_get_frequency().
Referenced by actuators_dualpwm_arch_init(), and actuators_pwm_arch_init().
Here is the call graph for this function:
Here is the caller graph for this function: