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
tiny_sim.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   0x00
 
#define PBSD_VAL   4
 
#define PCLK   (CCLK / PBSD_VAL)
 
#define USE_LED_1   1
 
#define LED_1_BANK   1
 
#define LED_1_PIN   28
 
#define USE_LED_2   1
 
#define LED_2_BANK   1
 
#define LED_2_PIN   19
 
#define SERV0_CLOCK_PIN   21
 
#define SERV0_CLOCK_PINSEL   PINSEL1
 
#define SERV0_CLOCK_PINSEL_VAL   0x01
 
#define SERV0_CLOCK_PINSEL_BIT   10
 
#define SERV0_DATA_PIN   20
 
#define SERV0_RESET_PIN   21
 
#define SERV1_CLOCK_PIN   7
 
#define SERV1_CLOCK_PINSEL   PINSEL0
 
#define SERV1_CLOCK_PINSEL_VAL   0x02
 
#define SERV1_CLOCK_PINSEL_BIT   14
 
#define SERV1_DATA_PIN   30
 
#define SERV1_RESET_PIN   29
 
#define PPM_PINSEL   PINSEL0
 
#define PPM_PINSEL_VAL   0x02
 
#define PPM_PINSEL_BIT   12
 
#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   AdcBank0(3)
 
#define ADC_1   AdcBank0(2)
 
#define ADC_2   AdcBank0(1)
 
#define ADC_3   AdcBank0(6)
 
#define ADC_4   AdcBank1(3)
 
#define ADC_5   AdcBank1(4)
 
#define ADC_6   AdcBank1(5)
 
#define ADC_7   AdcBank1(2)
 
#define ADC_CHANNEL_VSUPPLY   AdcBank1(7)
 
#define USE_AD1
 
#define USE_AD1_7
 
#define DefaultVoltageOfAdc(adc)   (0.01787109375*adc)
 

Macro Definition Documentation

#define ADC_0   AdcBank0(3)

Definition at line 64 of file tiny_sim.h.

#define ADC_1   AdcBank0(2)

Definition at line 72 of file tiny_sim.h.

#define ADC_2   AdcBank0(1)

Definition at line 81 of file tiny_sim.h.

#define ADC_3   AdcBank0(6)

Definition at line 89 of file tiny_sim.h.

#define ADC_4   AdcBank1(3)

Definition at line 98 of file tiny_sim.h.

#define ADC_5   AdcBank1(4)

Definition at line 106 of file tiny_sim.h.

#define ADC_6   AdcBank1(5)

Definition at line 114 of file tiny_sim.h.

#define ADC_7   AdcBank1(2)

Definition at line 122 of file tiny_sim.h.

#define ADC_CHANNEL_VSUPPLY   AdcBank1(7)

Definition at line 133 of file tiny_sim.h.

#define CCLK   (FOSC * PLL_MUL)

Definition at line 11 of file tiny_sim.h.

#define DefaultVoltageOfAdc (   adc)    (0.01787109375*adc)

Definition at line 141 of file tiny_sim.h.

#define FOSC   (12000000)

Definition at line 5 of file tiny_sim.h.

#define LED_1_BANK   1

Definition at line 23 of file tiny_sim.h.

#define LED_1_PIN   28

Definition at line 24 of file tiny_sim.h.

#define LED_2_BANK   1

Definition at line 29 of file tiny_sim.h.

#define LED_2_PIN   19

Definition at line 30 of file tiny_sim.h.

#define PBSD_BITS   0x00

Definition at line 14 of file tiny_sim.h.

#define PBSD_VAL   4

Definition at line 15 of file tiny_sim.h.

#define PCLK   (CCLK / PBSD_VAL)

Definition at line 18 of file tiny_sim.h.

#define PLL_MUL   (5)

Definition at line 8 of file tiny_sim.h.

#define PPM_CCR_CRF   TCCR_CR2_F

Definition at line 57 of file tiny_sim.h.

#define PPM_CCR_CRI   TCCR_CR2_I

Definition at line 59 of file tiny_sim.h.

#define PPM_CCR_CRR   TCCR_CR2_R

Definition at line 58 of file tiny_sim.h.

#define PPM_CR   T0CR2

Definition at line 60 of file tiny_sim.h.

#define PPM_CRI   TIR_CR2I

Definition at line 56 of file tiny_sim.h.

#define PPM_PINSEL   PINSEL0

Definition at line 53 of file tiny_sim.h.

#define PPM_PINSEL_BIT   12

Definition at line 55 of file tiny_sim.h.

#define PPM_PINSEL_VAL   0x02

Definition at line 54 of file tiny_sim.h.

#define SERV0_CLOCK_PIN   21

Definition at line 33 of file tiny_sim.h.

Referenced by actuators_init().

#define SERV0_CLOCK_PINSEL   PINSEL1

Definition at line 34 of file tiny_sim.h.

Referenced by actuators_init().

#define SERV0_CLOCK_PINSEL_BIT   10

Definition at line 36 of file tiny_sim.h.

Referenced by actuators_init().

#define SERV0_CLOCK_PINSEL_VAL   0x01

Definition at line 35 of file tiny_sim.h.

Referenced by actuators_init().

#define SERV0_DATA_PIN   20

Definition at line 38 of file tiny_sim.h.

Referenced by actuators_init(), and PWM_ISR().

#define SERV0_RESET_PIN   21

Definition at line 40 of file tiny_sim.h.

Referenced by actuators_init(), and PWM_ISR().

#define SERV1_CLOCK_PIN   7

Definition at line 43 of file tiny_sim.h.

Referenced by actuators_init().

#define SERV1_CLOCK_PINSEL   PINSEL0

Definition at line 44 of file tiny_sim.h.

Referenced by actuators_init().

#define SERV1_CLOCK_PINSEL_BIT   14

Definition at line 46 of file tiny_sim.h.

Referenced by actuators_init().

#define SERV1_CLOCK_PINSEL_VAL   0x02

Definition at line 45 of file tiny_sim.h.

Referenced by actuators_init().

#define SERV1_DATA_PIN   30

Definition at line 48 of file tiny_sim.h.

Referenced by actuators_init(), and PWM_ISR().

#define SERV1_RESET_PIN   29

Definition at line 50 of file tiny_sim.h.

Referenced by actuators_init(), and PWM_ISR().

#define USE_AD1

Definition at line 135 of file tiny_sim.h.

#define USE_AD1_7

Definition at line 137 of file tiny_sim.h.

#define USE_LED_1   1

Definition at line 21 of file tiny_sim.h.

#define USE_LED_2   1

Definition at line 27 of file tiny_sim.h.