Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
umarim_lite_2.0.h File Reference

Go to the source code of this file.

Macros

#define FOSC   (12000000)
 
#define PLL_MUL   (5)
 
#define CCLK   (FOSC * PLL_MUL)
 
#define PBSD_BITS   0x02
 
#define PBSD_VAL   2
 
#define PCLK   (CCLK / PBSD_VAL)
 
#define USE_LED_1   1
 
#define LED_1_BANK   1
 
#define LED_1_PIN   25
 
#define USE_LED_2   1
 
#define LED_2_BANK   1
 
#define LED_2_PIN   24
 
#define DEFAULT_ACTUATORS   "subsystems/actuators/actuators_4017.h"
 
#define ActuatorDefaultSet(_x, _y)   Actuator4017Set(_x,_y)
 
#define ActuatorsDefaultInit()   Actuators4017Init()
 
#define ActuatorsDefaultCommit()   Actuators4017Commit()
 
#define SERVO_CLOCK_PIN   5
 
#define SERVO_CLOCK_PINSEL   PINSEL0
 
#define SERVO_CLOCK_PINSEL_VAL   0x02
 
#define SERVO_CLOCK_PINSEL_BIT   10
 
#define SERVO_RESET_PIN   20
 
#define PPM_PINSEL   PINSEL1
 
#define PPM_PINSEL_VAL   0x02
 
#define PPM_PINSEL_BIT   24
 
#define PPM_CRI   TIR_CR2I
 
#define PPM_CCR_CRF   TCCR_CR2_F
 
#define PPM_CCR_CRR   TCCR_CR2_R
 
#define PPM_CCR_CRI   TCCR_CR2_I
 
#define PPM_CR   T0CR2
 
#define ADC_0   AdcBank1(5)
 
#define ADC_1   AdcBank1(4)
 
#define ADC_2   AdcBank1(3)
 
#define ADC_3   AdcBank1(2)
 
#define ADC_CHANNEL_VSUPPLY   AdcBank0(2)
 
#define USE_AD0
 
#define USE_AD0_2
 
#define DefaultVoltageOfAdc(adc)   (0.0247*adc)
 
#define SPI_SELECT_SLAVE0_PORT   0
 
#define SPI_SELECT_SLAVE0_PIN   20
 
#define SPI_SELECT_SLAVE0_PINSEL   PINSEL1
 
#define SPI_SELECT_SLAVE0_PINSEL_BIT   8
 
#define SPI_SELECT_SLAVE0_PINSEL_VAL   0
 
#define SPI1_DRDY_PINSEL   PINSEL1
 
#define SPI1_DRDY_PINSEL_BIT   0
 
#define SPI1_DRDY_PINSEL_VAL   1
 
#define SPI1_DRDY_EINT   0
 
#define SPI1_DRDY_VIC_IT   VIC_EINT0
 

Macro Definition Documentation

◆ ActuatorDefaultSet

#define ActuatorDefaultSet (   _x,
  _y 
)    Actuator4017Set(_x,_y)

Definition at line 35 of file umarim_lite_2.0.h.

◆ ActuatorsDefaultCommit

#define ActuatorsDefaultCommit ( )    Actuators4017Commit()

Definition at line 37 of file umarim_lite_2.0.h.

◆ ActuatorsDefaultInit

#define ActuatorsDefaultInit ( )    Actuators4017Init()

Definition at line 36 of file umarim_lite_2.0.h.

◆ ADC_0

#define ADC_0   AdcBank1(5)

Definition at line 59 of file umarim_lite_2.0.h.

◆ ADC_1

#define ADC_1   AdcBank1(4)

Definition at line 67 of file umarim_lite_2.0.h.

◆ ADC_2

#define ADC_2   AdcBank1(3)

Definition at line 75 of file umarim_lite_2.0.h.

◆ ADC_3

#define ADC_3   AdcBank1(2)

Definition at line 83 of file umarim_lite_2.0.h.

◆ ADC_CHANNEL_VSUPPLY

#define ADC_CHANNEL_VSUPPLY   AdcBank0(2)

Definition at line 95 of file umarim_lite_2.0.h.

◆ CCLK

#define CCLK   (FOSC * PLL_MUL)

Definition at line 11 of file umarim_lite_2.0.h.

◆ DEFAULT_ACTUATORS

#define DEFAULT_ACTUATORS   "subsystems/actuators/actuators_4017.h"

Definition at line 34 of file umarim_lite_2.0.h.

◆ DefaultVoltageOfAdc

#define DefaultVoltageOfAdc (   adc)    (0.0247*adc)

Definition at line 102 of file umarim_lite_2.0.h.

◆ FOSC

#define FOSC   (12000000)

Definition at line 5 of file umarim_lite_2.0.h.

◆ LED_1_BANK

#define LED_1_BANK   1

Definition at line 24 of file umarim_lite_2.0.h.

◆ LED_1_PIN

#define LED_1_PIN   25

Definition at line 25 of file umarim_lite_2.0.h.

◆ LED_2_BANK

#define LED_2_BANK   1

Definition at line 30 of file umarim_lite_2.0.h.

◆ LED_2_PIN

#define LED_2_PIN   24

Definition at line 31 of file umarim_lite_2.0.h.

◆ PBSD_BITS

#define PBSD_BITS   0x02

Definition at line 14 of file umarim_lite_2.0.h.

◆ PBSD_VAL

#define PBSD_VAL   2

Definition at line 15 of file umarim_lite_2.0.h.

◆ PCLK

#define PCLK   (CCLK / PBSD_VAL)

Definition at line 18 of file umarim_lite_2.0.h.

◆ PLL_MUL

#define PLL_MUL   (5)

Definition at line 8 of file umarim_lite_2.0.h.

◆ PPM_CCR_CRF

#define PPM_CCR_CRF   TCCR_CR2_F

Definition at line 52 of file umarim_lite_2.0.h.

◆ PPM_CCR_CRI

#define PPM_CCR_CRI   TCCR_CR2_I

Definition at line 54 of file umarim_lite_2.0.h.

◆ PPM_CCR_CRR

#define PPM_CCR_CRR   TCCR_CR2_R

Definition at line 53 of file umarim_lite_2.0.h.

◆ PPM_CR

#define PPM_CR   T0CR2

Definition at line 55 of file umarim_lite_2.0.h.

◆ PPM_CRI

#define PPM_CRI   TIR_CR2I

Definition at line 51 of file umarim_lite_2.0.h.

◆ PPM_PINSEL

#define PPM_PINSEL   PINSEL1

Definition at line 48 of file umarim_lite_2.0.h.

◆ PPM_PINSEL_BIT

#define PPM_PINSEL_BIT   24

Definition at line 50 of file umarim_lite_2.0.h.

◆ PPM_PINSEL_VAL

#define PPM_PINSEL_VAL   0x02

Definition at line 49 of file umarim_lite_2.0.h.

◆ SERVO_CLOCK_PIN

#define SERVO_CLOCK_PIN   5

Definition at line 40 of file umarim_lite_2.0.h.

◆ SERVO_CLOCK_PINSEL

#define SERVO_CLOCK_PINSEL   PINSEL0

Definition at line 41 of file umarim_lite_2.0.h.

◆ SERVO_CLOCK_PINSEL_BIT

#define SERVO_CLOCK_PINSEL_BIT   10

Definition at line 43 of file umarim_lite_2.0.h.

◆ SERVO_CLOCK_PINSEL_VAL

#define SERVO_CLOCK_PINSEL_VAL   0x02

Definition at line 42 of file umarim_lite_2.0.h.

◆ SERVO_RESET_PIN

#define SERVO_RESET_PIN   20

Definition at line 45 of file umarim_lite_2.0.h.

◆ SPI1_DRDY_EINT

#define SPI1_DRDY_EINT   0

Definition at line 114 of file umarim_lite_2.0.h.

◆ SPI1_DRDY_PINSEL

#define SPI1_DRDY_PINSEL   PINSEL1

Definition at line 111 of file umarim_lite_2.0.h.

◆ SPI1_DRDY_PINSEL_BIT

#define SPI1_DRDY_PINSEL_BIT   0

Definition at line 112 of file umarim_lite_2.0.h.

◆ SPI1_DRDY_PINSEL_VAL

#define SPI1_DRDY_PINSEL_VAL   1

Definition at line 113 of file umarim_lite_2.0.h.

◆ SPI1_DRDY_VIC_IT

#define SPI1_DRDY_VIC_IT   VIC_EINT0

Definition at line 115 of file umarim_lite_2.0.h.

◆ SPI_SELECT_SLAVE0_PIN

#define SPI_SELECT_SLAVE0_PIN   20

Definition at line 106 of file umarim_lite_2.0.h.

◆ SPI_SELECT_SLAVE0_PINSEL

#define SPI_SELECT_SLAVE0_PINSEL   PINSEL1

Definition at line 107 of file umarim_lite_2.0.h.

◆ SPI_SELECT_SLAVE0_PINSEL_BIT

#define SPI_SELECT_SLAVE0_PINSEL_BIT   8

Definition at line 108 of file umarim_lite_2.0.h.

◆ SPI_SELECT_SLAVE0_PINSEL_VAL

#define SPI_SELECT_SLAVE0_PINSEL_VAL   0

Definition at line 109 of file umarim_lite_2.0.h.

◆ SPI_SELECT_SLAVE0_PORT

#define SPI_SELECT_SLAVE0_PORT   0

Definition at line 105 of file umarim_lite_2.0.h.

◆ USE_AD0

#define USE_AD0

Definition at line 97 of file umarim_lite_2.0.h.

◆ USE_AD0_2

#define USE_AD0_2

Definition at line 99 of file umarim_lite_2.0.h.

◆ USE_LED_1

#define USE_LED_1   1

Definition at line 22 of file umarim_lite_2.0.h.

◆ USE_LED_2

#define USE_LED_2   1

Definition at line 28 of file umarim_lite_2.0.h.