Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
actuators_pwm.h File Reference
#include "std.h"
#include "modules/actuators/actuators_pwm_arch.h"
+ Include dependency graph for actuators_pwm.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ACTUATORS_PWM_NB   8
 
#define ActuatorPwmSet   actuators_pwm_set
 Compatibility macros.
 
#define ActuatorsPwmInit   actuators_pwm_arch_init
 
#define ActuatorsPwmCommit   actuators_pwm_arch_commit
 

Functions

void actuators_pwm_arch_init (void)
 Arch dependent init function.
 
void actuators_pwm_arch_commit (void)
 Arch dependent commit function.
 
void actuators_pwm_set (uint8_t idx, int16_t value)
 Set actuator value in array.
 

Variables

int32_t actuators_pwm_values [ACTUATORS_PWM_NB]
 

Macro Definition Documentation

◆ ActuatorPwmSet

#define ActuatorPwmSet   actuators_pwm_set

Compatibility macros.

Definition at line 49 of file actuators_pwm.h.

◆ ACTUATORS_PWM_NB

#define ACTUATORS_PWM_NB   8

Definition at line 29 of file actuators_pwm.h.

◆ ActuatorsPwmCommit

#define ActuatorsPwmCommit   actuators_pwm_arch_commit

Definition at line 51 of file actuators_pwm.h.

◆ ActuatorsPwmInit

#define ActuatorsPwmInit   actuators_pwm_arch_init

Definition at line 50 of file actuators_pwm.h.

Function Documentation

◆ actuators_pwm_arch_commit()

void actuators_pwm_arch_commit ( void  )
extern

Arch dependent commit function.

Arch dependent commit function.

Definition at line 375 of file actuators_pwm_arch.c.

References actuators_pwm_values, foo, PWM_CMD_TO_US, PWM_SERVO_3, PWM_SERVO_4, PWM_SERVO_5, and PWM_SERVO_6.

◆ actuators_pwm_arch_init()

void actuators_pwm_arch_init ( void  )
extern

Arch dependent init function.

implemented in arch files

Arch dependent init function.

Definition at line 265 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.

+ Here is the call graph for this function:

◆ actuators_pwm_set()

void actuators_pwm_set ( uint8_t  idx,
int16_t  value 
)
extern

Set actuator value in array.

Definition at line 30 of file actuators_pwm.c.

References ACTUATORS_PWM_NB, actuators_pwm_values, and idx.

Variable Documentation

◆ actuators_pwm_values

int32_t actuators_pwm_values[ACTUATORS_PWM_NB]
extern