|
Paparazzi UAS
v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
|
Interface from actuators to ChibiOS PWM driver. More...
#include "std.h"#include "hal.h"#include <BOARD_CONFIG>
Include dependency graph for actuators_pwm_arch.h:Go to the source code of this file.
Macros | |
| #define | ACTUATORS_PWM_NB 8 |
| #define | PWM_FREQUENCY 1000000 |
| #define | SERVO_HZ 40 |
| Default servo update rate in Hz. More... | |
| #define | TIM1_SERVO_HZ SERVO_HZ |
| #define | TIM2_SERVO_HZ SERVO_HZ |
| #define | TIM3_SERVO_HZ SERVO_HZ |
| #define | TIM4_SERVO_HZ SERVO_HZ |
| #define | TIM5_SERVO_HZ SERVO_HZ |
| #define | TIM8_SERVO_HZ SERVO_HZ |
| #define | TIM9_SERVO_HZ SERVO_HZ |
| #define | TIM12_SERVO_HZ SERVO_HZ |
| #define | ActuatorPwmSet(_i, _v) { actuators_pwm_values[_i] = _v; } |
| #define | ActuatorsPwmCommit actuators_pwm_commit |
Functions | |
| void | actuators_pwm_commit (void) |
| Set pulse widths from actuator values, assumed to be in us. More... | |
Variables | |
| int32_t | actuators_pwm_values [ACTUATORS_PWM_NB] |
Interface from actuators to ChibiOS PWM driver.
PWM configuration files are defined in the board file, so maximal architecture independence is ensured.
Definition in file actuators_pwm_arch.h.
| #define ActuatorPwmSet | ( | _i, | |
| _v | |||
| ) | { actuators_pwm_values[_i] = _v; } |
Definition at line 85 of file actuators_pwm_arch.h.
Referenced by px4_set_gimbal_angle_periodic().
| #define ACTUATORS_PWM_NB 8 |
Definition at line 42 of file actuators_pwm_arch.h.
| #define ActuatorsPwmCommit actuators_pwm_commit |
Definition at line 86 of file actuators_pwm_arch.h.
| #define PWM_FREQUENCY 1000000 |
Definition at line 47 of file actuators_pwm_arch.h.
| #define SERVO_HZ 40 |
Default servo update rate in Hz.
Definition at line 52 of file actuators_pwm_arch.h.
| #define TIM12_SERVO_HZ SERVO_HZ |
Definition at line 78 of file actuators_pwm_arch.h.
Referenced by actuators_pwm_arch_init().
| #define TIM1_SERVO_HZ SERVO_HZ |
Definition at line 57 of file actuators_pwm_arch.h.
Referenced by actuators_pwm_arch_init().
| #define TIM2_SERVO_HZ SERVO_HZ |
Definition at line 60 of file actuators_pwm_arch.h.
Referenced by actuators_pwm_arch_init().
| #define TIM3_SERVO_HZ SERVO_HZ |
Definition at line 63 of file actuators_pwm_arch.h.
Referenced by actuators_pwm_arch_init().
| #define TIM4_SERVO_HZ SERVO_HZ |
Definition at line 66 of file actuators_pwm_arch.h.
Referenced by actuators_pwm_arch_init().
| #define TIM5_SERVO_HZ SERVO_HZ |
Definition at line 69 of file actuators_pwm_arch.h.
Referenced by actuators_dualpwm_arch_init(), and actuators_pwm_arch_init().
| #define TIM8_SERVO_HZ SERVO_HZ |
Definition at line 72 of file actuators_pwm_arch.h.
Referenced by actuators_pwm_arch_init().
| #define TIM9_SERVO_HZ SERVO_HZ |
Definition at line 75 of file actuators_pwm_arch.h.
Referenced by actuators_pwm_arch_init().
| void actuators_pwm_commit | ( | void | ) |
Set pulse widths from actuator values, assumed to be in us.
Definition at line 155 of file actuators_pwm_arch.c.
| int32_t actuators_pwm_values[ACTUATORS_PWM_NB] |
Definition at line 50 of file actuators_pwm_arch.c.