Paparazzi UAS  v4.2.2_stable-4-gcc32f65
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
actuators_pwm_arch.h File Reference

STM32 PWM servos handling. More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ACTUATORS_PWM_NB   6
 
#define ChopServo(_x, _a, _b)   Chop(_x, _a, _b)
 
#define Actuator(_x)   actuators_pwm_values[_x]
 
#define SERVOS_TICS_OF_USEC(_v)   (_v)
 

Functions

void actuators_pwm_arch_init (void)
 
void actuators_pwm_commit (void)
 

Detailed Description

STM32 PWM servos handling.

Definition in file actuators_pwm_arch.h.

Macro Definition Documentation

#define Actuator (   _x)    actuators_pwm_values[_x]

Definition at line 43 of file actuators_pwm_arch.h.

#define ACTUATORS_PWM_NB   6

Definition at line 36 of file actuators_pwm_arch.h.

#define ChopServo (   _x,
  _a,
  _b 
)    Chop(_x, _a, _b)

Definition at line 42 of file actuators_pwm_arch.h.

#define SERVOS_TICS_OF_USEC (   _v)    (_v)

Definition at line 44 of file actuators_pwm_arch.h.

Function Documentation

void actuators_pwm_arch_init ( void  )

Definition at line 28 of file actuators_pwm_arch.c.

References ONE_MHZ_CLK, PCLK, PWM5_OC, PWM5_Pin, PWM6_OC, PWM6_Pin, PWM_5AND6_GPIO, PWM_5AND6_RCC, PWM_5AND6_TIMER, SERVO_HZ, TIM_OC_INIT, and TIM_OC_PRELOADCONFIG.

Referenced by actuators_init().

+ Here is the caller graph for this function:

void actuators_pwm_commit ( void  )

Definition at line 32 of file actuators_pwm_arch.c.

References actuators_pwm_values, PWM5_OC, PWM6_OC, PWM_5AND6_TIMER, and TIM_SETCOMPARE.

Referenced by actuators_set(), main_periodic(), on_overo_link_msg_received(), and test_srvo_periodic().

+ Here is the caller graph for this function: