Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
opa_ap_1.0.h File Reference

Go to the source code of this file.

Macros

#define BOARD_OPA_AP
 
#define EXT_CLK   12000000
 
#define AHB_CLK   168000000
 
#define VISION_PWR   GPIOA
 
#define VISION_PWR_PIN   GPIO1
 
#define VISION_PWR_ON   gpio_set
 
#define VISION_PWR_OFF   gpio_clear
 
#define USE_LED_1   1
 
#define LED_1_GPIO   GPIOA
 
#define LED_1_GPIO_PIN   GPIO8
 
#define LED_1_GPIO_ON   gpio_set
 
#define LED_1_GPIO_OFF   gpio_clear
 
#define LED_1_AFIO_REMAP   ((void)0)
 
#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   GPIOB
 
#define UART3_GPIO_RX   GPIO11
 
#define UART3_GPIO_PORT_TX   GPIOB
 
#define UART3_GPIO_TX   GPIO10
 
#define UART4_GPIO_AF   GPIO_AF8
 
#define UART4_GPIO_PORT_RX   GPIOC
 
#define UART4_GPIO_RX   GPIO11
 
#define UART4_GPIO_PORT_TX   GPIOC
 
#define UART4_GPIO_TX   GPIO10
 
#define UART5_GPIO_AF   GPIO_AF8
 
#define UART5_GPIO_PORT_RX   GPIOD
 
#define UART5_GPIO_RX   GPIO2
 
#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 SPI1_GPIO_PORT_NSS   GPIOA
 
#define SPI1_GPIO_NSS   GPIO4
 
#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 SPI2_GPIO_PORT_NSS   GPIOB
 
#define SPI2_GPIO_NSS   GPIO12
 
#define SPI_SELECT_SLAVE0_PORT   GPIOA
 
#define SPI_SELECT_SLAVE0_PIN   GPIO4
 
#define SPI_SELECT_SLAVE1_PORT   GPIOB
 
#define SPI_SELECT_SLAVE1_PIN   GPIO12
 
#define SPI_SELECT_SLAVE2_PORT   GPIOC
 
#define SPI_SELECT_SLAVE2_PIN   GPIO13
 
#define USE_ADC_1   1
 
#define AD1_1_CHANNEL   14
 
#define ADC_1   AD1_1
 
#define ADC_1_GPIO_PORT   GPIOC
 
#define ADC_1_GPIO_PIN   GPIO4
 
#define USE_ADC_3   1
 
#define AD1_3_CHANNEL   10
 
#define ADC_3   AD1_3
 
#define ADC_3_GPIO_PORT   GPIOC
 
#define ADC_3_GPIO_PIN   GPIO0
 
#define USE_ADC_4   1
 
#define AD1_4_CHANNEL   11
 
#define ADC_4   AD1_4
 
#define ADC_4_GPIO_PORT   GPIOC
 
#define ADC_4_GPIO_PIN   GPIO1
 
#define ADC_CHANNEL_VSUPPLY   ADC_1
 
#define DefaultVoltageOfAdc(adc)   (0.0063*adc)
 
#define DefaultMilliAmpereOfAdc(adc)   (20.142*(adc-2048) * 5.0/3.3)
 
#define TEMP_ADC_CHANNEL1   ADC_3
 
#define TEMP_ADC_CHANNEL1_TYPE   NTC
 
#define TEMP_ADC_CHANNEL1_PU_R   2000
 
#define TEMP_ADC_CHANNEL1_A   0.00103753243
 
#define TEMP_ADC_CHANNEL1_B   0.00025150905
 
#define TEMP_ADC_CHANNEL1_C   0
 
#define TEMP_ADC_CHANNEL2   ADC_4
 
#define TEMP_ADC_CHANNEL2_TYPE   NTC
 
#define TEMP_ADC_CHANNEL2_PU_R   2000
 
#define TEMP_ADC_CHANNEL2_A   0.00103753243
 
#define TEMP_ADC_CHANNEL2_B   0.00025150905
 
#define TEMP_ADC_CHANNEL2_C   0
 
#define USE_BARO_BOARD   1
 

Macro Definition Documentation

◆ AD1_1_CHANNEL

#define AD1_1_CHANNEL   14

Definition at line 153 of file opa_ap_1.0.h.

◆ AD1_3_CHANNEL

#define AD1_3_CHANNEL   10

Definition at line 172 of file opa_ap_1.0.h.

◆ AD1_4_CHANNEL

#define AD1_4_CHANNEL   11

Definition at line 183 of file opa_ap_1.0.h.

◆ ADC_1

#define ADC_1   AD1_1

Definition at line 154 of file opa_ap_1.0.h.

◆ ADC_1_GPIO_PIN

#define ADC_1_GPIO_PIN   GPIO4

Definition at line 156 of file opa_ap_1.0.h.

◆ ADC_1_GPIO_PORT

#define ADC_1_GPIO_PORT   GPIOC

Definition at line 155 of file opa_ap_1.0.h.

◆ ADC_3

#define ADC_3   AD1_3

Definition at line 173 of file opa_ap_1.0.h.

◆ ADC_3_GPIO_PIN

#define ADC_3_GPIO_PIN   GPIO0

Definition at line 175 of file opa_ap_1.0.h.

◆ ADC_3_GPIO_PORT

#define ADC_3_GPIO_PORT   GPIOC

Definition at line 174 of file opa_ap_1.0.h.

◆ ADC_4

#define ADC_4   AD1_4

Definition at line 184 of file opa_ap_1.0.h.

◆ ADC_4_GPIO_PIN

#define ADC_4_GPIO_PIN   GPIO1

Definition at line 186 of file opa_ap_1.0.h.

◆ ADC_4_GPIO_PORT

#define ADC_4_GPIO_PORT   GPIOC

Definition at line 185 of file opa_ap_1.0.h.

◆ ADC_CHANNEL_VSUPPLY

#define ADC_CHANNEL_VSUPPLY   ADC_1

Definition at line 191 of file opa_ap_1.0.h.

◆ AHB_CLK

#define AHB_CLK   168000000

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

◆ BOARD_OPA_AP

#define BOARD_OPA_AP

Definition at line 26 of file opa_ap_1.0.h.

◆ DefaultMilliAmpereOfAdc

#define DefaultMilliAmpereOfAdc (   adc)    (20.142*(adc-2048) * 5.0/3.3)

Definition at line 203 of file opa_ap_1.0.h.

◆ DefaultVoltageOfAdc

#define DefaultVoltageOfAdc (   adc)    (0.0063*adc)

Definition at line 197 of file opa_ap_1.0.h.

◆ EXT_CLK

#define EXT_CLK   12000000

Definition at line 29 of file opa_ap_1.0.h.

◆ LED_1_AFIO_REMAP

#define LED_1_AFIO_REMAP   ((void)0)

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

◆ LED_1_GPIO

#define LED_1_GPIO   GPIOA

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

◆ LED_1_GPIO_OFF

#define LED_1_GPIO_OFF   gpio_clear

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

◆ LED_1_GPIO_ON

#define LED_1_GPIO_ON   gpio_set

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

◆ LED_1_GPIO_PIN

#define LED_1_GPIO_PIN   GPIO8

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

◆ SPI1_GPIO_AF

#define SPI1_GPIO_AF   GPIO_AF5

Definition at line 87 of file opa_ap_1.0.h.

◆ SPI1_GPIO_MISO

#define SPI1_GPIO_MISO   GPIO6

Definition at line 89 of file opa_ap_1.0.h.

◆ SPI1_GPIO_MOSI

#define SPI1_GPIO_MOSI   GPIO7

Definition at line 91 of file opa_ap_1.0.h.

◆ SPI1_GPIO_NSS

#define SPI1_GPIO_NSS   GPIO4

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

◆ SPI1_GPIO_PORT_MISO

#define SPI1_GPIO_PORT_MISO   GPIOA

Definition at line 88 of file opa_ap_1.0.h.

◆ SPI1_GPIO_PORT_MOSI

#define SPI1_GPIO_PORT_MOSI   GPIOA

Definition at line 90 of file opa_ap_1.0.h.

◆ SPI1_GPIO_PORT_NSS

#define SPI1_GPIO_PORT_NSS   GPIOA

Definition at line 94 of file opa_ap_1.0.h.

◆ SPI1_GPIO_PORT_SCK

#define SPI1_GPIO_PORT_SCK   GPIOA

Definition at line 92 of file opa_ap_1.0.h.

◆ SPI1_GPIO_SCK

#define SPI1_GPIO_SCK   GPIO5

Definition at line 93 of file opa_ap_1.0.h.

◆ SPI2_GPIO_AF

#define SPI2_GPIO_AF   GPIO_AF5

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

◆ SPI2_GPIO_MISO

#define SPI2_GPIO_MISO   GPIO14

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

◆ SPI2_GPIO_MOSI

#define SPI2_GPIO_MOSI   GPIO15

Definition at line 101 of file opa_ap_1.0.h.

◆ SPI2_GPIO_NSS

#define SPI2_GPIO_NSS   GPIO12

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

◆ SPI2_GPIO_PORT_MISO

#define SPI2_GPIO_PORT_MISO   GPIOB

Definition at line 98 of file opa_ap_1.0.h.

◆ SPI2_GPIO_PORT_MOSI

#define SPI2_GPIO_PORT_MOSI   GPIOB

Definition at line 100 of file opa_ap_1.0.h.

◆ SPI2_GPIO_PORT_NSS

#define SPI2_GPIO_PORT_NSS   GPIOB

Definition at line 104 of file opa_ap_1.0.h.

◆ SPI2_GPIO_PORT_SCK

#define SPI2_GPIO_PORT_SCK   GPIOB

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

◆ SPI2_GPIO_SCK

#define SPI2_GPIO_SCK   GPIO13

Definition at line 103 of file opa_ap_1.0.h.

◆ SPI_SELECT_SLAVE0_PIN

#define SPI_SELECT_SLAVE0_PIN   GPIO4

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

◆ SPI_SELECT_SLAVE0_PORT

#define SPI_SELECT_SLAVE0_PORT   GPIOA

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

◆ SPI_SELECT_SLAVE1_PIN

#define SPI_SELECT_SLAVE1_PIN   GPIO12

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

◆ SPI_SELECT_SLAVE1_PORT

#define SPI_SELECT_SLAVE1_PORT   GPIOB

Definition at line 110 of file opa_ap_1.0.h.

◆ SPI_SELECT_SLAVE2_PIN

#define SPI_SELECT_SLAVE2_PIN   GPIO13

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

◆ SPI_SELECT_SLAVE2_PORT

#define SPI_SELECT_SLAVE2_PORT   GPIOC

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

◆ TEMP_ADC_CHANNEL1

#define TEMP_ADC_CHANNEL1   ADC_3

Definition at line 212 of file opa_ap_1.0.h.

◆ TEMP_ADC_CHANNEL1_A

#define TEMP_ADC_CHANNEL1_A   0.00103753243

Definition at line 215 of file opa_ap_1.0.h.

◆ TEMP_ADC_CHANNEL1_B

#define TEMP_ADC_CHANNEL1_B   0.00025150905

Definition at line 216 of file opa_ap_1.0.h.

◆ TEMP_ADC_CHANNEL1_C

#define TEMP_ADC_CHANNEL1_C   0

Definition at line 217 of file opa_ap_1.0.h.

◆ TEMP_ADC_CHANNEL1_PU_R

#define TEMP_ADC_CHANNEL1_PU_R   2000

Definition at line 214 of file opa_ap_1.0.h.

◆ TEMP_ADC_CHANNEL1_TYPE

#define TEMP_ADC_CHANNEL1_TYPE   NTC

Definition at line 213 of file opa_ap_1.0.h.

◆ TEMP_ADC_CHANNEL2

#define TEMP_ADC_CHANNEL2   ADC_4

Definition at line 226 of file opa_ap_1.0.h.

◆ TEMP_ADC_CHANNEL2_A

#define TEMP_ADC_CHANNEL2_A   0.00103753243

Definition at line 229 of file opa_ap_1.0.h.

◆ TEMP_ADC_CHANNEL2_B

#define TEMP_ADC_CHANNEL2_B   0.00025150905

Definition at line 230 of file opa_ap_1.0.h.

◆ TEMP_ADC_CHANNEL2_C

#define TEMP_ADC_CHANNEL2_C   0

Definition at line 231 of file opa_ap_1.0.h.

◆ TEMP_ADC_CHANNEL2_PU_R

#define TEMP_ADC_CHANNEL2_PU_R   2000

Definition at line 228 of file opa_ap_1.0.h.

◆ TEMP_ADC_CHANNEL2_TYPE

#define TEMP_ADC_CHANNEL2_TYPE   NTC

Definition at line 227 of file opa_ap_1.0.h.

◆ UART1_GPIO_AF

#define UART1_GPIO_AF   GPIO_AF7

Definition at line 58 of file opa_ap_1.0.h.

◆ UART1_GPIO_PORT_RX

#define UART1_GPIO_PORT_RX   GPIOA

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

◆ UART1_GPIO_PORT_TX

#define UART1_GPIO_PORT_TX   GPIOA

Definition at line 61 of file opa_ap_1.0.h.

◆ UART1_GPIO_RX

#define UART1_GPIO_RX   GPIO10

Definition at line 60 of file opa_ap_1.0.h.

◆ UART1_GPIO_TX

#define UART1_GPIO_TX   GPIO9

Definition at line 62 of file opa_ap_1.0.h.

◆ UART2_GPIO_AF

#define UART2_GPIO_AF   GPIO_AF7

Definition at line 64 of file opa_ap_1.0.h.

◆ UART2_GPIO_PORT_RX

#define UART2_GPIO_PORT_RX   GPIOA

Definition at line 65 of file opa_ap_1.0.h.

◆ UART2_GPIO_PORT_TX

#define UART2_GPIO_PORT_TX   GPIOA

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

◆ UART2_GPIO_RX

#define UART2_GPIO_RX   GPIO3

Definition at line 66 of file opa_ap_1.0.h.

◆ UART2_GPIO_TX

#define UART2_GPIO_TX   GPIO2

Definition at line 68 of file opa_ap_1.0.h.

◆ UART3_GPIO_AF

#define UART3_GPIO_AF   GPIO_AF7

Definition at line 70 of file opa_ap_1.0.h.

◆ UART3_GPIO_PORT_RX

#define UART3_GPIO_PORT_RX   GPIOB

Definition at line 71 of file opa_ap_1.0.h.

◆ UART3_GPIO_PORT_TX

#define UART3_GPIO_PORT_TX   GPIOB

Definition at line 73 of file opa_ap_1.0.h.

◆ UART3_GPIO_RX

#define UART3_GPIO_RX   GPIO11

Definition at line 72 of file opa_ap_1.0.h.

◆ UART3_GPIO_TX

#define UART3_GPIO_TX   GPIO10

Definition at line 74 of file opa_ap_1.0.h.

◆ UART4_GPIO_AF

#define UART4_GPIO_AF   GPIO_AF8

Definition at line 76 of file opa_ap_1.0.h.

◆ UART4_GPIO_PORT_RX

#define UART4_GPIO_PORT_RX   GPIOC

Definition at line 77 of file opa_ap_1.0.h.

◆ UART4_GPIO_PORT_TX

#define UART4_GPIO_PORT_TX   GPIOC

Definition at line 79 of file opa_ap_1.0.h.

◆ UART4_GPIO_RX

#define UART4_GPIO_RX   GPIO11

Definition at line 78 of file opa_ap_1.0.h.

◆ UART4_GPIO_TX

#define UART4_GPIO_TX   GPIO10

Definition at line 80 of file opa_ap_1.0.h.

◆ UART5_GPIO_AF

#define UART5_GPIO_AF   GPIO_AF8

Definition at line 82 of file opa_ap_1.0.h.

◆ UART5_GPIO_PORT_RX

#define UART5_GPIO_PORT_RX   GPIOD

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

◆ UART5_GPIO_RX

#define UART5_GPIO_RX   GPIO2

Definition at line 84 of file opa_ap_1.0.h.

◆ USE_ADC_1

#define USE_ADC_1   1

Definition at line 150 of file opa_ap_1.0.h.

◆ USE_ADC_3

#define USE_ADC_3   1

Definition at line 169 of file opa_ap_1.0.h.

◆ USE_ADC_4

#define USE_ADC_4   1

Definition at line 180 of file opa_ap_1.0.h.

◆ USE_BARO_BOARD

#define USE_BARO_BOARD   1

Definition at line 235 of file opa_ap_1.0.h.

◆ USE_LED_1

#define USE_LED_1   1

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

◆ VISION_PWR

#define VISION_PWR   GPIOA

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

◆ VISION_PWR_OFF

#define VISION_PWR_OFF   gpio_clear

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

◆ VISION_PWR_ON

#define VISION_PWR_ON   gpio_set

Definition at line 39 of file opa_ap_1.0.h.

◆ VISION_PWR_PIN

#define VISION_PWR_PIN   GPIO1

Definition at line 38 of file opa_ap_1.0.h.