Paparazzi UAS  v4.0.4_stable-3-gf39211a
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
servos_4015_hw.h File Reference
#include <inttypes.h>
#include "std.h"
#include "LPC21xx.h"
#include "mcu_periph/sys_time.h"
+ Include dependency graph for servos_4015_hw.h:

Go to the source code of this file.


#define PWM_TICS_OF_USEC(us)   (uint32_t)((us) *1e-6 * PCLK / PWM_PRESCALER + 0.5)
#define ChopServo(x, a, b)   Chop(x, a, b)
#define _4015_NB_CHANNELS   8
#define Actuator(i)   servos_values[i]
#define ActuatorsCommit()   {}


void PWM_ISR (void) __attribute__((naked))


uint16_t servos_values [_4015_NB_CHANNELS]

Macro Definition Documentation

#define _4015_NB_CHANNELS   8

Definition at line 36 of file servos_4015_hw.h.

Referenced by actuators_init(), and PWM_ISR().

#define Actuator (   i)    servos_values[i]

Definition at line 38 of file servos_4015_hw.h.

#define ActuatorsCommit (   void)    {}

Definition at line 40 of file servos_4015_hw.h.

#define ChopServo (   x,
)    Chop(x, a, b)

Definition at line 34 of file servos_4015_hw.h.

#define PWM_TICS_OF_USEC (   us)    (uint32_t)((us) *1e-6 * PCLK / PWM_PRESCALER + 0.5)

Definition at line 31 of file servos_4015_hw.h.


Definition at line 33 of file servos_4015_hw.h.

Referenced by actuators_init().

Function Documentation

Variable Documentation

uint16_t servos_values[_4015_NB_CHANNELS]

Definition at line 8 of file servos_4015_hw.c.