Paparazzi UAS
v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
|
#include <inttypes.h>
#include "std.h"
#include "LPC21xx.h"
#include "mcu_periph/sys_time.h"
#include <BOARD_CONFIG>
Go to the source code of this file.
Macros | |
#define | SERVOS_TICS_OF_USEC(s) cpu_ticks_of_usec(s) |
#define | ChopServo(x, a, b) Chop(x, a, b) |
#define | _4017_NB_CHANNELS 10 |
#define | Actuator4017Set(_i, _v) { servos_values[_i] = SERVOS_TICS_OF_USEC(_v); } |
#define | Actuators4017Commit() {} |
#define | Actuators4017Init() actuators_4017_init() |
#define | ACTUATORS_IT TIR_MR1I |
#define | SERVOS_4017_ISR() |
Functions | |
void | actuators_4017_init (void) |
Variables | |
uint16_t | servos_values [_4017_NB_CHANNELS] |
uint8_t | servos_4017_idx |
#define _4017_NB_CHANNELS 10 |
Definition at line 40 of file servos_4017_hw.h.
Referenced by actuators_4017_init().
#define Actuator4017Set | ( | _i, | |
_v | |||
) | { servos_values[_i] = SERVOS_TICS_OF_USEC(_v); } |
Definition at line 44 of file servos_4017_hw.h.
#define Actuators4017Commit | ( | ) | {} |
Definition at line 47 of file servos_4017_hw.h.
#define Actuators4017Init | ( | ) | actuators_4017_init() |
Definition at line 48 of file servos_4017_hw.h.
#define ACTUATORS_IT TIR_MR1I |
Definition at line 52 of file servos_4017_hw.h.
#define ChopServo | ( | x, | |
a, | |||
b | |||
) | Chop(x, a, b) |
Definition at line 35 of file servos_4017_hw.h.
#define SERVOS_4017_ISR | ( | ) |
Definition at line 55 of file servos_4017_hw.h.
Referenced by TIMER0_ISR().
#define SERVOS_TICS_OF_USEC | ( | s | ) | cpu_ticks_of_usec(s) |
Definition at line 34 of file servos_4017_hw.h.
void actuators_4017_init | ( | void | ) |
Definition at line 31 of file servos_4017_hw.c.
References _4017_NB_CHANNELS, IO0DIR, IO1DIR, IO1SET, PINSEL2, SERVO_CLOCK_PIN, SERVO_CLOCK_PINSEL, SERVO_CLOCK_PINSEL_BIT, SERVO_CLOCK_PINSEL_VAL, SERVO_RESET_PIN, servos_4017_idx, SERVOS_TICS_OF_USEC, servos_values, START_TIMEOUT, T0EMR, T0MCR, T0MR1, TEMR_EM1, TEMR_EMC1_1, TEMR_EMC1_2, and TMCR_MR1_I.
uint8_t servos_4017_idx |
Definition at line 27 of file servos_4017_hw.c.
Referenced by actuators_4017_init().
uint16_t servos_values[_4017_NB_CHANNELS] |
Definition at line 29 of file servos_4015_hw.c.