Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
elle0_common.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BOARD_ELLE0
 
#define EXT_CLK   25000000
 
#define AHB_CLK   168000000
 
#define USE_LED_1   1
 
#define LED_1_GPIO   GPIOA
 
#define LED_1_GPIO_PIN   GPIO8
 
#define LED_1_GPIO_ON   gpio_clear
 
#define LED_1_GPIO_OFF   gpio_set
 
#define LED_1_AFIO_REMAP   ((void)0)
 
#define USE_LED_2   1
 
#define LED_2_GPIO   GPIOB
 
#define LED_2_GPIO_PIN   GPIO4
 
#define LED_2_GPIO_ON   gpio_clear
 
#define LED_2_GPIO_OFF   gpio_set
 
#define LED_2_AFIO_REMAP   ((void)0)
 
#define USE_LED_3   1
 
#define LED_3_GPIO   GPIOC
 
#define LED_3_GPIO_PIN   GPIO2
 
#define LED_3_GPIO_ON   gpio_clear
 
#define LED_3_GPIO_OFF   gpio_set
 
#define LED_3_AFIO_REMAP   ((void)0)
 
#define LED_BODY_GPIO   GPIOB
 
#define LED_BODY_GPIO_PIN   GPIO1
 
#define LED_BODY_GPIO_ON   gpio_set
 
#define LED_BODY_GPIO_OFF   gpio_clear
 
#define LED_BODY_AFIO_REMAP   ((void)0)
 
#define LED_12_GPIO   GPIOC
 
#define LED_12_GPIO_PIN   GPIO12
 
#define LED_12_GPIO_ON   gpio_clear
 
#define LED_12_GPIO_OFF   gpio_set
 
#define LED_12_AFIO_REMAP   ((void)0)
 
#define DEFAULT_ACTUATORS   "modules/actuators/actuators_pwm.h"
 
#define ActuatorDefaultSet(_x, _y)   ActuatorPwmSet(_x,_y)
 
#define ActuatorsDefaultInit()   ActuatorsPwmInit()
 
#define ActuatorsDefaultCommit()   ActuatorsPwmCommit()
 
#define UART1_GPIO_AF   GPIO_AF7
 
#define UART1_GPIO_PORT_RX   GPIOA
 
#define UART1_GPIO_RX   GPIO10
 
#define UART1_GPIO_PORT_TX   GPIOA
 
#define UART1_GPIO_TX   GPIO9
 
#define UART2_GPIO_AF   GPIO_AF7
 
#define UART2_GPIO_PORT_RX   GPIOA
 
#define UART2_GPIO_RX   GPIO3
 
#define UART2_GPIO_PORT_TX   GPIOA
 
#define UART2_GPIO_TX   GPIO2
 
#define UART3_GPIO_AF   GPIO_AF7
 
#define UART3_GPIO_PORT_RX   GPIOC
 
#define UART3_GPIO_RX   GPIO11
 
#define UART3_GPIO_PORT_TX   GPIOC
 
#define UART3_GPIO_TX   GPIO10
 
#define UART5_GPIO_AF   GPIO_AF8
 
#define UART5_GPIO_PORT_RX   GPIOD
 
#define UART5_GPIO_RX   GPIO2
 
#define UART5_GPIO_PORT_TX   GPIOC
 
#define UART5_GPIO_TX   GPIO12
 
#define SPEKTRUM_BIND_PIN   GPIO0
 
#define SPEKTRUM_BIND_PIN_PORT   GPIOB
 
#define PPM_CONFIG   2
 
#define SPI1_GPIO_AF   GPIO_AF5
 
#define SPI1_GPIO_PORT_MISO   GPIOA
 
#define SPI1_GPIO_MISO   GPIO6
 
#define SPI1_GPIO_PORT_MOSI   GPIOA
 
#define SPI1_GPIO_MOSI   GPIO7
 
#define SPI1_GPIO_PORT_SCK   GPIOA
 
#define SPI1_GPIO_SCK   GPIO5
 
#define SPI2_GPIO_AF   GPIO_AF5
 
#define SPI2_GPIO_PORT_MISO   GPIOB
 
#define SPI2_GPIO_MISO   GPIO14
 
#define SPI2_GPIO_PORT_MOSI   GPIOB
 
#define SPI2_GPIO_MOSI   GPIO15
 
#define SPI2_GPIO_PORT_SCK   GPIOB
 
#define SPI2_GPIO_SCK   GPIO13
 
#define SPI_SELECT_SLAVE0_PORT   GPIOA
 
#define SPI_SELECT_SLAVE0_PIN   GPIO15
 
#define SPI_SELECT_SLAVE1_PORT   GPIOA
 
#define SPI_SELECT_SLAVE1_PIN   GPIO4
 
#define SPI_SELECT_SLAVE2_PORT   GPIOB
 
#define SPI_SELECT_SLAVE2_PIN   GPIO12
 
#define SPI_SELECT_SLAVE3_PORT   GPIOC
 
#define SPI_SELECT_SLAVE3_PIN   GPIO13
 
#define SPI_SELECT_SLAVE4_PORT   GPIOC
 
#define SPI_SELECT_SLAVE4_PIN   GPIO12
 
#define SPI_SELECT_SLAVE5_PORT   GPIOC
 
#define SPI_SELECT_SLAVE5_PIN   GPIO4
 
#define SPI1_GPIO_PORT_NSS   GPIOA
 
#define SPI1_GPIO_NSS   GPIO4
 
#define SPI2_GPIO_PORT_NSS   GPIOB
 
#define SPI2_GPIO_NSS   GPIO12
 
#define I2C1_GPIO_PORT   GPIOB
 
#define I2C1_GPIO_SCL   GPIO6
 
#define I2C1_GPIO_SDA   GPIO7
 
#define I2C2_GPIO_PORT   GPIOB
 
#define I2C2_GPIO_SCL   GPIO10
 
#define I2C2_GPIO_SDA   GPIO11
 
#define USE_ADC_1   1
 
#define ADC_CHANNEL_VSUPPLY   ADC_1
 
#define DefaultVoltageOfAdc(adc)   (0.0045*adc)
 
#define PWM_USE_TIM3   1
 
#define PWM_USE_TIM5   1
 
#define USE_PWM1   1
 
#define USE_PWM2   1
 
#define USE_PWM3   1
 
#define USE_PWM4   1
 
#define USE_PWM5   1
 
#define USE_PWM6   1
 
#define ACTUATORS_PWM_NB   6
 
#define PWM_SERVO_1_OC_BIT   0
 
#define PWM_SERVO_2_OC_BIT   0
 
#define PWM_SERVO_3_OC_BIT   0
 
#define PWM_SERVO_4_OC_BIT   0
 
#define PWM_SERVO_5_OC_BIT   0
 
#define PWM_SERVO_6_OC_BIT   0
 
#define PWM_SERVO_7_OC_BIT   0
 
#define PWM_SERVO_8_OC_BIT   0
 
#define PWM_TIM3_CHAN_MASK   (PWM_SERVO_1_OC_BIT|PWM_SERVO_2_OC_BIT|PWM_SERVO_3_OC_BIT|PWM_SERVO_4_OC_BIT)
 
#define PWM_TIM5_CHAN_MASK   (PWM_SERVO_5_OC_BIT|PWM_SERVO_6_OC_BIT)
 
#define PWM_TIM4_CHAN_MASK   (PWM_SERVO_7_OC_BIT|PWM_SERVO_8_OC_BIT)
 
#define USE_BARO_BOARD   1
 

Macro Definition Documentation

◆ ActuatorDefaultSet

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

Definition at line 87 of file elle0_common.h.

◆ ACTUATORS_PWM_NB

#define ACTUATORS_PWM_NB   6

Definition at line 327 of file elle0_common.h.

◆ ActuatorsDefaultCommit

#define ActuatorsDefaultCommit ( )    ActuatorsPwmCommit()

Definition at line 89 of file elle0_common.h.

◆ ActuatorsDefaultInit

#define ActuatorsDefaultInit ( )    ActuatorsPwmInit()

Definition at line 88 of file elle0_common.h.

◆ ADC_CHANNEL_VSUPPLY

#define ADC_CHANNEL_VSUPPLY   ADC_1

Definition at line 284 of file elle0_common.h.

◆ AHB_CLK

#define AHB_CLK   168000000

Definition at line 30 of file elle0_common.h.

◆ BOARD_ELLE0

#define BOARD_ELLE0

Definition at line 26 of file elle0_common.h.

◆ DEFAULT_ACTUATORS

#define DEFAULT_ACTUATORS   "modules/actuators/actuators_pwm.h"

Definition at line 86 of file elle0_common.h.

◆ DefaultVoltageOfAdc

#define DefaultVoltageOfAdc (   adc)    (0.0045*adc)

Definition at line 287 of file elle0_common.h.

◆ EXT_CLK

#define EXT_CLK   25000000

Definition at line 29 of file elle0_common.h.

◆ I2C1_GPIO_PORT

#define I2C1_GPIO_PORT   GPIOB

Definition at line 230 of file elle0_common.h.

◆ I2C1_GPIO_SCL

#define I2C1_GPIO_SCL   GPIO6

Definition at line 231 of file elle0_common.h.

◆ I2C1_GPIO_SDA

#define I2C1_GPIO_SDA   GPIO7

Definition at line 232 of file elle0_common.h.

◆ I2C2_GPIO_PORT

#define I2C2_GPIO_PORT   GPIOB

Definition at line 234 of file elle0_common.h.

◆ I2C2_GPIO_SCL

#define I2C2_GPIO_SCL   GPIO10

Definition at line 235 of file elle0_common.h.

◆ I2C2_GPIO_SDA

#define I2C2_GPIO_SDA   GPIO11

Definition at line 236 of file elle0_common.h.

◆ LED_12_AFIO_REMAP

#define LED_12_AFIO_REMAP   ((void)0)

Definition at line 82 of file elle0_common.h.

◆ LED_12_GPIO

#define LED_12_GPIO   GPIOC

Definition at line 78 of file elle0_common.h.

◆ LED_12_GPIO_OFF

#define LED_12_GPIO_OFF   gpio_set

Definition at line 81 of file elle0_common.h.

◆ LED_12_GPIO_ON

#define LED_12_GPIO_ON   gpio_clear

Definition at line 80 of file elle0_common.h.

◆ LED_12_GPIO_PIN

#define LED_12_GPIO_PIN   GPIO12

Definition at line 79 of file elle0_common.h.

◆ LED_1_AFIO_REMAP

#define LED_1_AFIO_REMAP   ((void)0)

Definition at line 44 of file elle0_common.h.

◆ LED_1_GPIO

#define LED_1_GPIO   GPIOA

Definition at line 40 of file elle0_common.h.

◆ LED_1_GPIO_OFF

#define LED_1_GPIO_OFF   gpio_set

Definition at line 43 of file elle0_common.h.

◆ LED_1_GPIO_ON

#define LED_1_GPIO_ON   gpio_clear

Definition at line 42 of file elle0_common.h.

◆ LED_1_GPIO_PIN

#define LED_1_GPIO_PIN   GPIO8

Definition at line 41 of file elle0_common.h.

◆ LED_2_AFIO_REMAP

#define LED_2_AFIO_REMAP   ((void)0)

Definition at line 54 of file elle0_common.h.

◆ LED_2_GPIO

#define LED_2_GPIO   GPIOB

Definition at line 50 of file elle0_common.h.

◆ LED_2_GPIO_OFF

#define LED_2_GPIO_OFF   gpio_set

Definition at line 53 of file elle0_common.h.

◆ LED_2_GPIO_ON

#define LED_2_GPIO_ON   gpio_clear

Definition at line 52 of file elle0_common.h.

◆ LED_2_GPIO_PIN

#define LED_2_GPIO_PIN   GPIO4

Definition at line 51 of file elle0_common.h.

◆ LED_3_AFIO_REMAP

#define LED_3_AFIO_REMAP   ((void)0)

Definition at line 64 of file elle0_common.h.

◆ LED_3_GPIO

#define LED_3_GPIO   GPIOC

Definition at line 60 of file elle0_common.h.

◆ LED_3_GPIO_OFF

#define LED_3_GPIO_OFF   gpio_set

Definition at line 63 of file elle0_common.h.

◆ LED_3_GPIO_ON

#define LED_3_GPIO_ON   gpio_clear

Definition at line 62 of file elle0_common.h.

◆ LED_3_GPIO_PIN

#define LED_3_GPIO_PIN   GPIO2

Definition at line 61 of file elle0_common.h.

◆ LED_BODY_AFIO_REMAP

#define LED_BODY_AFIO_REMAP   ((void)0)

Definition at line 75 of file elle0_common.h.

◆ LED_BODY_GPIO

#define LED_BODY_GPIO   GPIOB

Definition at line 71 of file elle0_common.h.

◆ LED_BODY_GPIO_OFF

#define LED_BODY_GPIO_OFF   gpio_clear

Definition at line 74 of file elle0_common.h.

◆ LED_BODY_GPIO_ON

#define LED_BODY_GPIO_ON   gpio_set

Definition at line 73 of file elle0_common.h.

◆ LED_BODY_GPIO_PIN

#define LED_BODY_GPIO_PIN   GPIO1

Definition at line 72 of file elle0_common.h.

◆ PPM_CONFIG

#define PPM_CONFIG   2

Definition at line 130 of file elle0_common.h.

◆ PWM_SERVO_1_OC_BIT

#define PWM_SERVO_1_OC_BIT   0

Definition at line 340 of file elle0_common.h.

◆ PWM_SERVO_2_OC_BIT

#define PWM_SERVO_2_OC_BIT   0

Definition at line 352 of file elle0_common.h.

◆ PWM_SERVO_3_OC_BIT

#define PWM_SERVO_3_OC_BIT   0

Definition at line 364 of file elle0_common.h.

◆ PWM_SERVO_4_OC_BIT

#define PWM_SERVO_4_OC_BIT   0

Definition at line 376 of file elle0_common.h.

◆ PWM_SERVO_5_OC_BIT

#define PWM_SERVO_5_OC_BIT   0

Definition at line 388 of file elle0_common.h.

◆ PWM_SERVO_6_OC_BIT

#define PWM_SERVO_6_OC_BIT   0

Definition at line 400 of file elle0_common.h.

◆ PWM_SERVO_7_OC_BIT

#define PWM_SERVO_7_OC_BIT   0

Definition at line 412 of file elle0_common.h.

◆ PWM_SERVO_8_OC_BIT

#define PWM_SERVO_8_OC_BIT   0

Definition at line 424 of file elle0_common.h.

◆ PWM_TIM3_CHAN_MASK

◆ PWM_TIM4_CHAN_MASK

#define PWM_TIM4_CHAN_MASK   (PWM_SERVO_7_OC_BIT|PWM_SERVO_8_OC_BIT)

Definition at line 432 of file elle0_common.h.

◆ PWM_TIM5_CHAN_MASK

#define PWM_TIM5_CHAN_MASK   (PWM_SERVO_5_OC_BIT|PWM_SERVO_6_OC_BIT)

Definition at line 430 of file elle0_common.h.

◆ PWM_USE_TIM3

#define PWM_USE_TIM3   1

Definition at line 294 of file elle0_common.h.

◆ PWM_USE_TIM5

#define PWM_USE_TIM5   1

Definition at line 295 of file elle0_common.h.

◆ SPEKTRUM_BIND_PIN

#define SPEKTRUM_BIND_PIN   GPIO0

Definition at line 121 of file elle0_common.h.

◆ SPEKTRUM_BIND_PIN_PORT

#define SPEKTRUM_BIND_PIN_PORT   GPIOB

Definition at line 122 of file elle0_common.h.

◆ SPI1_GPIO_AF

#define SPI1_GPIO_AF   GPIO_AF5

Definition at line 188 of file elle0_common.h.

◆ SPI1_GPIO_MISO

#define SPI1_GPIO_MISO   GPIO6

Definition at line 190 of file elle0_common.h.

◆ SPI1_GPIO_MOSI

#define SPI1_GPIO_MOSI   GPIO7

Definition at line 192 of file elle0_common.h.

◆ SPI1_GPIO_NSS

#define SPI1_GPIO_NSS   GPIO4

Definition at line 223 of file elle0_common.h.

◆ SPI1_GPIO_PORT_MISO

#define SPI1_GPIO_PORT_MISO   GPIOA

Definition at line 189 of file elle0_common.h.

◆ SPI1_GPIO_PORT_MOSI

#define SPI1_GPIO_PORT_MOSI   GPIOA

Definition at line 191 of file elle0_common.h.

◆ SPI1_GPIO_PORT_NSS

#define SPI1_GPIO_PORT_NSS   GPIOA

Definition at line 222 of file elle0_common.h.

◆ SPI1_GPIO_PORT_SCK

#define SPI1_GPIO_PORT_SCK   GPIOA

Definition at line 193 of file elle0_common.h.

◆ SPI1_GPIO_SCK

#define SPI1_GPIO_SCK   GPIO5

Definition at line 194 of file elle0_common.h.

◆ SPI2_GPIO_AF

#define SPI2_GPIO_AF   GPIO_AF5

Definition at line 196 of file elle0_common.h.

◆ SPI2_GPIO_MISO

#define SPI2_GPIO_MISO   GPIO14

Definition at line 198 of file elle0_common.h.

◆ SPI2_GPIO_MOSI

#define SPI2_GPIO_MOSI   GPIO15

Definition at line 200 of file elle0_common.h.

◆ SPI2_GPIO_NSS

#define SPI2_GPIO_NSS   GPIO12

Definition at line 226 of file elle0_common.h.

◆ SPI2_GPIO_PORT_MISO

#define SPI2_GPIO_PORT_MISO   GPIOB

Definition at line 197 of file elle0_common.h.

◆ SPI2_GPIO_PORT_MOSI

#define SPI2_GPIO_PORT_MOSI   GPIOB

Definition at line 199 of file elle0_common.h.

◆ SPI2_GPIO_PORT_NSS

#define SPI2_GPIO_PORT_NSS   GPIOB

Definition at line 225 of file elle0_common.h.

◆ SPI2_GPIO_PORT_SCK

#define SPI2_GPIO_PORT_SCK   GPIOB

Definition at line 201 of file elle0_common.h.

◆ SPI2_GPIO_SCK

#define SPI2_GPIO_SCK   GPIO13

Definition at line 202 of file elle0_common.h.

◆ SPI_SELECT_SLAVE0_PIN

#define SPI_SELECT_SLAVE0_PIN   GPIO15

Definition at line 205 of file elle0_common.h.

◆ SPI_SELECT_SLAVE0_PORT

#define SPI_SELECT_SLAVE0_PORT   GPIOA

Definition at line 204 of file elle0_common.h.

◆ SPI_SELECT_SLAVE1_PIN

#define SPI_SELECT_SLAVE1_PIN   GPIO4

Definition at line 208 of file elle0_common.h.

◆ SPI_SELECT_SLAVE1_PORT

#define SPI_SELECT_SLAVE1_PORT   GPIOA

Definition at line 207 of file elle0_common.h.

◆ SPI_SELECT_SLAVE2_PIN

#define SPI_SELECT_SLAVE2_PIN   GPIO12

Definition at line 211 of file elle0_common.h.

◆ SPI_SELECT_SLAVE2_PORT

#define SPI_SELECT_SLAVE2_PORT   GPIOB

Definition at line 210 of file elle0_common.h.

◆ SPI_SELECT_SLAVE3_PIN

#define SPI_SELECT_SLAVE3_PIN   GPIO13

Definition at line 214 of file elle0_common.h.

◆ SPI_SELECT_SLAVE3_PORT

#define SPI_SELECT_SLAVE3_PORT   GPIOC

Definition at line 213 of file elle0_common.h.

◆ SPI_SELECT_SLAVE4_PIN

#define SPI_SELECT_SLAVE4_PIN   GPIO12

Definition at line 217 of file elle0_common.h.

◆ SPI_SELECT_SLAVE4_PORT

#define SPI_SELECT_SLAVE4_PORT   GPIOC

Definition at line 216 of file elle0_common.h.

◆ SPI_SELECT_SLAVE5_PIN

#define SPI_SELECT_SLAVE5_PIN   GPIO4

Definition at line 220 of file elle0_common.h.

◆ SPI_SELECT_SLAVE5_PORT

#define SPI_SELECT_SLAVE5_PORT   GPIOC

Definition at line 219 of file elle0_common.h.

◆ UART1_GPIO_AF

#define UART1_GPIO_AF   GPIO_AF7

Definition at line 93 of file elle0_common.h.

◆ UART1_GPIO_PORT_RX

#define UART1_GPIO_PORT_RX   GPIOA

Definition at line 94 of file elle0_common.h.

◆ UART1_GPIO_PORT_TX

#define UART1_GPIO_PORT_TX   GPIOA

Definition at line 96 of file elle0_common.h.

◆ UART1_GPIO_RX

#define UART1_GPIO_RX   GPIO10

Definition at line 95 of file elle0_common.h.

◆ UART1_GPIO_TX

#define UART1_GPIO_TX   GPIO9

Definition at line 97 of file elle0_common.h.

◆ UART2_GPIO_AF

#define UART2_GPIO_AF   GPIO_AF7

Definition at line 99 of file elle0_common.h.

◆ UART2_GPIO_PORT_RX

#define UART2_GPIO_PORT_RX   GPIOA

Definition at line 100 of file elle0_common.h.

◆ UART2_GPIO_PORT_TX

#define UART2_GPIO_PORT_TX   GPIOA

Definition at line 102 of file elle0_common.h.

◆ UART2_GPIO_RX

#define UART2_GPIO_RX   GPIO3

Definition at line 101 of file elle0_common.h.

◆ UART2_GPIO_TX

#define UART2_GPIO_TX   GPIO2

Definition at line 103 of file elle0_common.h.

◆ UART3_GPIO_AF

#define UART3_GPIO_AF   GPIO_AF7

Definition at line 105 of file elle0_common.h.

◆ UART3_GPIO_PORT_RX

#define UART3_GPIO_PORT_RX   GPIOC

Definition at line 106 of file elle0_common.h.

◆ UART3_GPIO_PORT_TX

#define UART3_GPIO_PORT_TX   GPIOC

Definition at line 108 of file elle0_common.h.

◆ UART3_GPIO_RX

#define UART3_GPIO_RX   GPIO11

Definition at line 107 of file elle0_common.h.

◆ UART3_GPIO_TX

#define UART3_GPIO_TX   GPIO10

Definition at line 109 of file elle0_common.h.

◆ UART5_GPIO_AF

#define UART5_GPIO_AF   GPIO_AF8

Definition at line 111 of file elle0_common.h.

◆ UART5_GPIO_PORT_RX

#define UART5_GPIO_PORT_RX   GPIOD

Definition at line 112 of file elle0_common.h.

◆ UART5_GPIO_PORT_TX

#define UART5_GPIO_PORT_TX   GPIOC

Definition at line 114 of file elle0_common.h.

◆ UART5_GPIO_RX

#define UART5_GPIO_RX   GPIO2

Definition at line 113 of file elle0_common.h.

◆ UART5_GPIO_TX

#define UART5_GPIO_TX   GPIO12

Definition at line 115 of file elle0_common.h.

◆ USE_ADC_1

#define USE_ADC_1   1

Definition at line 251 of file elle0_common.h.

◆ USE_BARO_BOARD

#define USE_BARO_BOARD   1

Definition at line 437 of file elle0_common.h.

◆ USE_LED_1

#define USE_LED_1   1

Definition at line 38 of file elle0_common.h.

◆ USE_LED_2

#define USE_LED_2   1

Definition at line 48 of file elle0_common.h.

◆ USE_LED_3

#define USE_LED_3   1

Definition at line 58 of file elle0_common.h.

◆ USE_PWM1

#define USE_PWM1   1

Definition at line 298 of file elle0_common.h.

◆ USE_PWM2

#define USE_PWM2   1

Definition at line 301 of file elle0_common.h.

◆ USE_PWM3

#define USE_PWM3   1

Definition at line 304 of file elle0_common.h.

◆ USE_PWM4

#define USE_PWM4   1

Definition at line 307 of file elle0_common.h.

◆ USE_PWM5

#define USE_PWM5   1

Definition at line 310 of file elle0_common.h.

◆ USE_PWM6

#define USE_PWM6   1

Definition at line 313 of file elle0_common.h.