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
servos_4017_hw.h File Reference
#include <inttypes.h>
#include "std.h"
#include "LPC21xx.h"
#include "mcu_periph/sys_time.h"
+ Include dependency graph for servos_4017_hw.h:

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 Actuator(i)   servos_values[i]
 
#define ActuatorsCommit()   {}
 
#define ACTUATORS_IT   TIR_MR1I
 
#define SERVOS_4017_ISR()
 

Variables

uint16_t servos_values [_4017_NB_CHANNELS]
 
uint8_t servos_4017_idx
 

Macro Definition Documentation

#define _4017_NB_CHANNELS   10

Definition at line 18 of file servos_4017_hw.h.

Referenced by actuators_init().

#define Actuator (   i)    servos_values[i]

Definition at line 22 of file servos_4017_hw.h.

#define ACTUATORS_IT   TIR_MR1I

Definition at line 28 of file servos_4017_hw.h.

#define ActuatorsCommit (   void)    {}

Definition at line 24 of file servos_4017_hw.h.

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

Definition at line 13 of file servos_4017_hw.h.

#define SERVOS_4017_ISR ( )
Value:
{ \
SetBit(IO1CLR, SERVO_RESET_PIN); \
} \
\
/* request clock high on next match */ \
/* lower clock pin */ \
}
#define IO1SET
Definition: LPC21xx.h:306
uint8_t servos_4017_idx
Definition: servos_4017_hw.c:6
#define T0EMR
Definition: LPC21xx.h:65
#define T0MR1
Definition: LPC21xx.h:57
uint16_t servos_values[_4017_NB_CHANNELS]
Definition: servos_4015_hw.c:8
#define _4017_NB_CHANNELS
#define TEMR_EM1
Definition: lpcTMR.h:150
#define IO1CLR
Definition: LPC21xx.h:308
#define SERVO_RESET_PIN
Definition: hb_1.1.h:60

Definition at line 31 of file servos_4017_hw.h.

Referenced by TIMER0_ISR().

#define SERVOS_TICS_OF_USEC (   s)    CPU_TICKS_OF_USEC(s)

Definition at line 12 of file servos_4017_hw.h.

Variable Documentation

uint8_t servos_4017_idx

Definition at line 6 of file servos_4017_hw.c.

Referenced by actuators_init().

uint16_t servos_values[_4017_NB_CHANNELS]

Definition at line 8 of file servos_4015_hw.c.