Paparazzi UAS  v5.2.2_stable-0-gd6b9f29
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
servos_4015_MAT_hw.h File Reference
#include "std.h"
#include "LPC21xx.h"
#include "mcu_periph/sys_time.h"
#include <BOARD_CONFIG>
+ Include dependency graph for servos_4015_MAT_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 _4015_NB_CHANNELS   8
 
#define Actuator4015Set(_i, _v)   { servos_values[_i] = SERVOS_TICS_OF_USEC(_v); }
 
#define Actuators4015Commit()   {}
 
#define Actuators4015Init()   actuators_4015_init()
 
#define SERVO_REFRESH_TICS   SERVOS_TICS_OF_USEC(20000)
 
#define ACTUATORS_IT   TIR_MR1I
 
#define Servos4015Mat_ISR()
 

Functions

void actuators_4015_init (void)
 

Variables

uint16_t servos_values [_4015_NB_CHANNELS]
 
uint8_t servos_4015_idx
 
uint32_t servos_delay
 

Macro Definition Documentation

#define _4015_NB_CHANNELS   8

Definition at line 41 of file servos_4015_MAT_hw.h.

#define Actuator4015Set (   _i,
  _v 
)    { servos_values[_i] = SERVOS_TICS_OF_USEC(_v); }

Definition at line 43 of file servos_4015_MAT_hw.h.

#define Actuators4015Commit ( )    {}

Definition at line 46 of file servos_4015_MAT_hw.h.

#define Actuators4015Init ( )    actuators_4015_init()

Definition at line 47 of file servos_4015_MAT_hw.h.

#define ACTUATORS_IT   TIR_MR1I

Definition at line 53 of file servos_4015_MAT_hw.h.

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

Definition at line 39 of file servos_4015_MAT_hw.h.

#define SERVO_REFRESH_TICS   SERVOS_TICS_OF_USEC(20000)

Definition at line 51 of file servos_4015_MAT_hw.h.

#define Servos4015Mat_ISR ( )
Value:
{ \
SetBit(IO1CLR, SERVO_DATA_PIN); \
} \
} else { \
SetBit(IO1SET, SERVO_DATA_PIN); \
} \
/* lower clock pin */ \
}
#define IO1SET
Definition: LPC21xx.h:338
#define _4015_NB_CHANNELS
uint32_t servos_delay
if(PrimarySpektrumState.SpektrumTimer)--PrimarySpektrumState.SpektrumTimer
#define SERVO_DATA_PIN
Definition: tiny_0.99.h:50
uint16_t servos_values[_4015_NB_CHANNELS]
#define T0EMR
Definition: LPC21xx.h:65
#define T0MR1
Definition: LPC21xx.h:57
uint8_t servos_4015_idx
#define TEMR_EM1
Definition: lpcTMR.h:150
#define SERVO_REFRESH_TICS
#define IO1CLR
Definition: LPC21xx.h:340
#define SERVO_RESET_PIN
Definition: hb_1.1.h:34

Definition at line 54 of file servos_4015_MAT_hw.h.

Referenced by TIMER0_ISR().

#define SERVOS_TICS_OF_USEC (   s)    cpu_ticks_of_usec(s)

Definition at line 38 of file servos_4015_MAT_hw.h.

Function Documentation

Variable Documentation

uint8_t servos_4015_idx

Definition at line 32 of file servos_4015_MAT_hw.c.

Referenced by actuators_4015_init().

uint32_t servos_delay

Definition at line 33 of file servos_4015_MAT_hw.c.

uint16_t servos_values[_4015_NB_CHANNELS]

Definition at line 29 of file servos_4015_hw.c.