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_4015_MAT_hw.h File Reference
#include "std.h"
#include "LPC21xx.h"
#include "mcu_periph/sys_time.h"
+ 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 Actuator(i)   servos_values[i]
 
#define ActuatorsCommit()   {}
 
#define SERVO_REFRESH_TICS   SERVOS_TICS_OF_USEC(20000)
 
#define ACTUATORS_IT   TIR_MR1I
 
#define Servos4015Mat_ISR()
 

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 43 of file servos_4015_MAT_hw.h.

#define Actuator (   i)    servos_values[i]

Definition at line 45 of file servos_4015_MAT_hw.h.

#define ACTUATORS_IT   TIR_MR1I

Definition at line 53 of file servos_4015_MAT_hw.h.

#define ActuatorsCommit (   void)    {}

Definition at line 47 of file servos_4015_MAT_hw.h.

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

Definition at line 41 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:
{ \
if (servos_4015_idx == 0) { \
SetBit(IO1CLR, SERVO_DATA_PIN); \
} \
} else { \
SetBit(IO1SET, SERVO_DATA_PIN); \
} \
/* lower clock pin */ \
}
#define IO1SET
Definition: LPC21xx.h:306
#define SERVO_REFRESH_TICS
#define _4015_NB_CHANNELS
uint32_t servos_delay
#define SERVO_DATA_PIN
Definition: tiny_0.99.h:44
#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 IO1CLR
Definition: LPC21xx.h:308
#define SERVO_RESET_PIN
Definition: hb_1.1.h:60
uint16_t servos_values[_4015_NB_CHANNELS]
Definition: servos_4015_hw.c:8

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 40 of file servos_4015_MAT_hw.h.

Variable Documentation

uint8_t servos_4015_idx

Definition at line 34 of file servos_4015_MAT_hw.c.

Referenced by actuators_init().

uint32_t servos_delay

Definition at line 35 of file servos_4015_MAT_hw.c.

uint16_t servos_values[_4015_NB_CHANNELS]

Definition at line 8 of file servos_4015_hw.c.