Paparazzi UAS
v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
|
Efficient driving of MAT0.1 (SERVO_CLOCK_PIN) using TIMER0 to produce PPM for a R/C receiver which has a microcontroller to drive the servos (not a 4015 or 4017 decade counter chip). More...
Go to the source code of this file.
Macros | |
#define | START_TIMEOUT 0xFFFF; |
Functions | |
void | actuators_ppm_init (void) |
Variables | |
uint8_t | servos_PPM_idx |
uint8_t | ppm_pulse |
uint32_t | servos_delay |
uint16_t | servos_values [_PPM_NB_CHANNELS] |
Efficient driving of MAT0.1 (SERVO_CLOCK_PIN) using TIMER0 to produce PPM for a R/C receiver which has a microcontroller to drive the servos (not a 4015 or 4017 decade counter chip).
Definition in file servos_ppm_hw.c.
#define START_TIMEOUT 0xFFFF; |
Definition at line 39 of file servos_ppm_hw.c.
Referenced by actuators_ppm_init().
void actuators_ppm_init | ( | void | ) |
Definition at line 41 of file servos_ppm_hw.c.
References _PPM_NB_CHANNELS, SERVO_CLOCK_PINSEL, SERVO_CLOCK_PINSEL_BIT, SERVO_CLOCK_PINSEL_VAL, SERVO_REFRESH_TICS, servos_delay, servos_PPM_idx, SERVOS_TICS_OF_USEC, servos_values, START_TIMEOUT, T0EMR, T0MCR, T0MR1, TEMR_EM1, TEMR_EMC1_2, and TMCR_MR1_I.
uint8_t ppm_pulse |
Definition at line 36 of file servos_ppm_hw.c.
uint32_t servos_delay |
Definition at line 37 of file servos_ppm_hw.c.
Referenced by actuators_ppm_init().
uint8_t servos_PPM_idx |
Definition at line 35 of file servos_ppm_hw.c.
Referenced by actuators_ppm_init().
uint16_t servos_values[_PPM_NB_CHANNELS] |
Definition at line 66 of file servos_ppm_hw.c.
Referenced by actuators_ppm_init().