Paparazzi UAS  v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
servos_4017_hw.h File Reference
#include <inttypes.h>
#include "std.h"
#include "LPC21xx.h"
#include "mcu_periph/sys_time.h"
#include <BOARD_CONFIG>
+ 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 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
 

Macro Definition Documentation

#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,
 
)    Chop(x, a, b)

Definition at line 35 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:338
uint16_t servos_values[_4017_NB_CHANNELS]
#define T0EMR
Definition: LPC21xx.h:65
#define T0MR1
Definition: LPC21xx.h:57
#define TEMR_EM1
Definition: lpcTMR.h:150
#define IO1CLR
Definition: LPC21xx.h:340
#define SERVO_RESET_PIN
Definition: hb_1.1.h:34
#define _4017_NB_CHANNELS
uint8_t servos_4017_idx
if(PrimarySpektrumState.SpektrumTimer)

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.

Function Documentation

Variable Documentation

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.