Paparazzi UAS  v5.2.2_stable-0-gd6b9f29
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
lisa_m_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 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 UART1_GPIO_AF   0
 
#define UART1_GPIO_PORT_RX   GPIO_BANK_USART1_RX
 
#define UART1_GPIO_RX   GPIO_USART1_RX
 
#define UART1_GPIO_PORT_TX   GPIO_BANK_USART1_TX
 
#define UART1_GPIO_TX   GPIO_USART1_TX
 
#define UART2_GPIO_AF   0
 
#define UART2_GPIO_PORT_RX   GPIO_BANK_USART2_RX
 
#define UART2_GPIO_RX   GPIO_USART2_RX
 
#define UART2_GPIO_PORT_TX   GPIO_BANK_USART2_TX
 
#define UART2_GPIO_TX   GPIO_USART2_TX
 
#define UART3_GPIO_AF   AFIO_MAPR_USART3_REMAP_PARTIAL_REMAP
 
#define UART3_GPIO_PORT_RX   GPIO_BANK_USART3_PR_RX
 
#define UART3_GPIO_RX   GPIO_USART3_PR_RX
 
#define UART3_GPIO_PORT_TX   GPIO_BANK_USART3_PR_TX
 
#define UART3_GPIO_TX   GPIO_USART3_PR_TX
 
#define UART5_GPIO_AF   0
 
#define UART5_GPIO_PORT_RX   GPIO_BANK_UART5_RX
 
#define UART5_GPIO_RX   GPIO_UART5_RX
 
#define UART5_GPIO_PORT_TX   GPIO_BANK_UART5_TX
 
#define UART5_GPIO_TX   GPIO_UART5_TX
 
#define SPEKTRUM_UART1_RCC   RCC_USART1
 
#define SPEKTRUM_UART1_BANK   GPIO_BANK_USART1_RX
 
#define SPEKTRUM_UART1_PIN   GPIO_USART1_RX
 
#define SPEKTRUM_UART1_AF   0
 
#define SPEKTRUM_UART1_IRQ   NVIC_USART1_IRQ
 
#define SPEKTRUM_UART1_ISR   usart1_isr
 
#define SPEKTRUM_UART1_DEV   USART1
 
#define SPEKTRUM_UART3_RCC   RCC_USART3
 
#define SPEKTRUM_UART3_BANK   GPIO_BANK_USART3_PR_RX
 
#define SPEKTRUM_UART3_PIN   GPIO_USART3_PR_RX
 
#define SPEKTRUM_UART3_AF   AFIO_MAPR_USART3_REMAP_PARTIAL_REMAP
 
#define SPEKTRUM_UART3_IRQ   NVIC_USART3_IRQ
 
#define SPEKTRUM_UART3_ISR   usart3_isr
 
#define SPEKTRUM_UART3_DEV   USART3
 
#define SPEKTRUM_UART5_RCC   RCC_UART5
 
#define SPEKTRUM_UART5_BANK   GPIO_BANK_UART5_RX
 
#define SPEKTRUM_UART5_PIN   GPIO_UART5_RX
 
#define SPEKTRUM_UART5_AF   0
 
#define SPEKTRUM_UART5_IRQ   NVIC_UART5_IRQ
 
#define SPEKTRUM_UART5_ISR   uart5_isr
 
#define SPEKTRUM_UART5_DEV   UART5
 
#define PPM_CONFIG   2
 
#define USE_PPM_TIM2   1
 
#define PPM_CHANNEL   TIM_IC2
 
#define PPM_TIMER_INPUT   TIM_IC_IN_TI2
 
#define PPM_IRQ   NVIC_TIM2_IRQ
 
#define PPM_CC_IE   TIM_DIER_CC2IE
 
#define PPM_CC_IF   TIM_SR_CC2IF
 
#define PPM_GPIO_PORT   GPIOA
 
#define PPM_GPIO_PIN   GPIO1
 
#define PPM_GPIO_AF   0
 
#define USE_AD_TIM1   1
 
#define USE_ADC_5   1
 
#define AD1_4_CHANNEL   14
 
#define ADC_5   AD1_4
 
#define ADC_5_GPIO_PORT   GPIOC
 
#define ADC_5_GPIO_PIN   GPIO4
 
#define ADC_CHANNEL_VSUPPLY   ADC_5
 
#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 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   0
 
#define PWM_SERVO_1_TIMER   TIM3
 
#define PWM_SERVO_1_GPIO   GPIOC
 
#define PWM_SERVO_1_PIN   GPIO6
 
#define PWM_SERVO_1_AF   AFIO_MAPR_TIM3_REMAP_FULL_REMAP
 
#define PWM_SERVO_1_OC   TIM_OC1
 
#define PWM_SERVO_1_OC_BIT   (1<<0)
 
#define PWM_SERVO_2   1
 
#define PWM_SERVO_2_TIMER   TIM3
 
#define PWM_SERVO_2_GPIO   GPIOC
 
#define PWM_SERVO_2_PIN   GPIO7
 
#define PWM_SERVO_2_AF   AFIO_MAPR_TIM3_REMAP_FULL_REMAP
 
#define PWM_SERVO_2_OC   TIM_OC2
 
#define PWM_SERVO_2_OC_BIT   (1<<1)
 
#define PWM_SERVO_3   2
 
#define PWM_SERVO_3_TIMER   TIM3
 
#define PWM_SERVO_3_GPIO   GPIOC
 
#define PWM_SERVO_3_PIN   GPIO8
 
#define PWM_SERVO_3_AF   AFIO_MAPR_TIM3_REMAP_FULL_REMAP
 
#define PWM_SERVO_3_OC   TIM_OC3
 
#define PWM_SERVO_3_OC_BIT   (1<<2)
 
#define PWM_SERVO_4   3
 
#define PWM_SERVO_4_TIMER   TIM3
 
#define PWM_SERVO_4_GPIO   GPIOC
 
#define PWM_SERVO_4_PIN   GPIO9
 
#define PWM_SERVO_4_AF   AFIO_MAPR_TIM3_REMAP_FULL_REMAP
 
#define PWM_SERVO_4_OC   TIM_OC4
 
#define PWM_SERVO_4_OC_BIT   (1<<3)
 
#define PWM_SERVO_5   4
 
#define PWM_SERVO_5_TIMER   TIM5
 
#define PWM_SERVO_5_GPIO   GPIOA
 
#define PWM_SERVO_5_PIN   GPIO0
 
#define PWM_SERVO_5_AF   0
 
#define PWM_SERVO_5_OC   TIM_OC1
 
#define PWM_SERVO_5_OC_BIT   (1<<0)
 
#define PWM_SERVO_6   5
 
#define PWM_SERVO_6_TIMER   TIM5
 
#define PWM_SERVO_6_GPIO   GPIOA
 
#define PWM_SERVO_6_PIN   GPIO1
 
#define PWM_SERVO_6_AF   0
 
#define PWM_SERVO_6_OC   TIM_OC2
 
#define PWM_SERVO_6_OC_BIT   (1<<1)
 
#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)
 

Macro Definition Documentation

#define ACTUATORS_PWM_NB   6

Definition at line 251 of file lisa_m_common.h.

#define AD1_4_CHANNEL   14

Definition at line 186 of file lisa_m_common.h.

#define ADC_5   AD1_4

Definition at line 187 of file lisa_m_common.h.

#define ADC_5_GPIO_PIN   GPIO4

Definition at line 189 of file lisa_m_common.h.

Referenced by adc_init().

#define ADC_5_GPIO_PORT   GPIOC

Definition at line 188 of file lisa_m_common.h.

Referenced by adc_init().

#define ADC_CHANNEL_VSUPPLY   ADC_5

Definition at line 201 of file lisa_m_common.h.

#define I2C1_GPIO_PORT   GPIOB

Definition at line 208 of file lisa_m_common.h.

#define I2C1_GPIO_SCL   GPIO6

Definition at line 209 of file lisa_m_common.h.

#define I2C1_GPIO_SDA   GPIO7

Definition at line 210 of file lisa_m_common.h.

#define I2C2_GPIO_PORT   GPIOB

Definition at line 212 of file lisa_m_common.h.

#define I2C2_GPIO_SCL   GPIO10

Definition at line 213 of file lisa_m_common.h.

#define I2C2_GPIO_SDA   GPIO11

Definition at line 214 of file lisa_m_common.h.

#define PPM_CC_IE   TIM_DIER_CC2IE

Definition at line 118 of file lisa_m_common.h.

#define PPM_CC_IF   TIM_SR_CC2IF

Definition at line 119 of file lisa_m_common.h.

#define PPM_CHANNEL   TIM_IC2

Definition at line 114 of file lisa_m_common.h.

#define PPM_CONFIG   2

Definition at line 94 of file lisa_m_common.h.

#define PPM_GPIO_AF   0

Definition at line 122 of file lisa_m_common.h.

#define PPM_GPIO_PIN   GPIO1

Definition at line 121 of file lisa_m_common.h.

#define PPM_GPIO_PORT   GPIOA

Definition at line 120 of file lisa_m_common.h.

#define PPM_IRQ   NVIC_TIM2_IRQ

Definition at line 116 of file lisa_m_common.h.

#define PPM_TIMER_INPUT   TIM_IC_IN_TI2

Definition at line 115 of file lisa_m_common.h.

#define PWM_SERVO_1   0

Definition at line 258 of file lisa_m_common.h.

#define PWM_SERVO_1_AF   AFIO_MAPR_TIM3_REMAP_FULL_REMAP

Definition at line 262 of file lisa_m_common.h.

#define PWM_SERVO_1_GPIO   GPIOC

Definition at line 260 of file lisa_m_common.h.

#define PWM_SERVO_1_OC   TIM_OC1

Definition at line 263 of file lisa_m_common.h.

#define PWM_SERVO_1_OC_BIT   (1<<0)

Definition at line 264 of file lisa_m_common.h.

#define PWM_SERVO_1_PIN   GPIO6

Definition at line 261 of file lisa_m_common.h.

#define PWM_SERVO_1_TIMER   TIM3

Definition at line 259 of file lisa_m_common.h.

#define PWM_SERVO_2   1

Definition at line 270 of file lisa_m_common.h.

#define PWM_SERVO_2_AF   AFIO_MAPR_TIM3_REMAP_FULL_REMAP

Definition at line 274 of file lisa_m_common.h.

#define PWM_SERVO_2_GPIO   GPIOC

Definition at line 272 of file lisa_m_common.h.

#define PWM_SERVO_2_OC   TIM_OC2

Definition at line 275 of file lisa_m_common.h.

#define PWM_SERVO_2_OC_BIT   (1<<1)

Definition at line 276 of file lisa_m_common.h.

#define PWM_SERVO_2_PIN   GPIO7

Definition at line 273 of file lisa_m_common.h.

#define PWM_SERVO_2_TIMER   TIM3

Definition at line 271 of file lisa_m_common.h.

#define PWM_SERVO_3   2

Definition at line 282 of file lisa_m_common.h.

#define PWM_SERVO_3_AF   AFIO_MAPR_TIM3_REMAP_FULL_REMAP

Definition at line 286 of file lisa_m_common.h.

#define PWM_SERVO_3_GPIO   GPIOC

Definition at line 284 of file lisa_m_common.h.

#define PWM_SERVO_3_OC   TIM_OC3

Definition at line 287 of file lisa_m_common.h.

#define PWM_SERVO_3_OC_BIT   (1<<2)

Definition at line 288 of file lisa_m_common.h.

#define PWM_SERVO_3_PIN   GPIO8

Definition at line 285 of file lisa_m_common.h.

#define PWM_SERVO_3_TIMER   TIM3

Definition at line 283 of file lisa_m_common.h.

#define PWM_SERVO_4   3

Definition at line 294 of file lisa_m_common.h.

#define PWM_SERVO_4_AF   AFIO_MAPR_TIM3_REMAP_FULL_REMAP

Definition at line 298 of file lisa_m_common.h.

#define PWM_SERVO_4_GPIO   GPIOC

Definition at line 296 of file lisa_m_common.h.

#define PWM_SERVO_4_OC   TIM_OC4

Definition at line 299 of file lisa_m_common.h.

#define PWM_SERVO_4_OC_BIT   (1<<3)

Definition at line 300 of file lisa_m_common.h.

#define PWM_SERVO_4_PIN   GPIO9

Definition at line 297 of file lisa_m_common.h.

#define PWM_SERVO_4_TIMER   TIM3

Definition at line 295 of file lisa_m_common.h.

#define PWM_SERVO_5   4

Definition at line 306 of file lisa_m_common.h.

#define PWM_SERVO_5_AF   0

Definition at line 310 of file lisa_m_common.h.

#define PWM_SERVO_5_GPIO   GPIOA

Definition at line 308 of file lisa_m_common.h.

#define PWM_SERVO_5_OC   TIM_OC1

Definition at line 311 of file lisa_m_common.h.

#define PWM_SERVO_5_OC_BIT   (1<<0)

Definition at line 312 of file lisa_m_common.h.

#define PWM_SERVO_5_PIN   GPIO0

Definition at line 309 of file lisa_m_common.h.

#define PWM_SERVO_5_TIMER   TIM5

Definition at line 307 of file lisa_m_common.h.

#define PWM_SERVO_6   5

Definition at line 330 of file lisa_m_common.h.

#define PWM_SERVO_6_AF   0

Definition at line 334 of file lisa_m_common.h.

#define PWM_SERVO_6_GPIO   GPIOA

Definition at line 332 of file lisa_m_common.h.

#define PWM_SERVO_6_OC   TIM_OC2

Definition at line 335 of file lisa_m_common.h.

#define PWM_SERVO_6_OC_BIT   (1<<1)

Definition at line 336 of file lisa_m_common.h.

#define PWM_SERVO_6_PIN   GPIO1

Definition at line 333 of file lisa_m_common.h.

#define PWM_SERVO_6_TIMER   TIM5

Definition at line 331 of file lisa_m_common.h.

#define PWM_SERVO_7_OC_BIT   0

Definition at line 367 of file lisa_m_common.h.

#define PWM_SERVO_8_OC_BIT   0

Definition at line 379 of file lisa_m_common.h.

Definition at line 383 of file lisa_m_common.h.

#define PWM_TIM4_CHAN_MASK   (PWM_SERVO_7_OC_BIT|PWM_SERVO_8_OC_BIT)

Definition at line 387 of file lisa_m_common.h.

#define PWM_TIM5_CHAN_MASK   (PWM_SERVO_5_OC_BIT|PWM_SERVO_6_OC_BIT)

Definition at line 385 of file lisa_m_common.h.

#define PWM_USE_TIM3   1

Definition at line 221 of file lisa_m_common.h.

#define PWM_USE_TIM5   1

Definition at line 222 of file lisa_m_common.h.

#define SPEKTRUM_UART1_AF   0

Definition at line 66 of file lisa_m_common.h.

#define SPEKTRUM_UART1_BANK   GPIO_BANK_USART1_RX

Definition at line 64 of file lisa_m_common.h.

#define SPEKTRUM_UART1_DEV   USART1

Definition at line 69 of file lisa_m_common.h.

#define SPEKTRUM_UART1_IRQ   NVIC_USART1_IRQ

Definition at line 67 of file lisa_m_common.h.

#define SPEKTRUM_UART1_ISR   usart1_isr

Definition at line 68 of file lisa_m_common.h.

#define SPEKTRUM_UART1_PIN   GPIO_USART1_RX

Definition at line 65 of file lisa_m_common.h.

#define SPEKTRUM_UART1_RCC   RCC_USART1

Definition at line 63 of file lisa_m_common.h.

#define SPEKTRUM_UART3_AF   AFIO_MAPR_USART3_REMAP_PARTIAL_REMAP

Definition at line 74 of file lisa_m_common.h.

#define SPEKTRUM_UART3_BANK   GPIO_BANK_USART3_PR_RX

Definition at line 72 of file lisa_m_common.h.

#define SPEKTRUM_UART3_DEV   USART3

Definition at line 77 of file lisa_m_common.h.

#define SPEKTRUM_UART3_IRQ   NVIC_USART3_IRQ

Definition at line 75 of file lisa_m_common.h.

#define SPEKTRUM_UART3_ISR   usart3_isr

Definition at line 76 of file lisa_m_common.h.

#define SPEKTRUM_UART3_PIN   GPIO_USART3_PR_RX

Definition at line 73 of file lisa_m_common.h.

#define SPEKTRUM_UART3_RCC   RCC_USART3

Definition at line 71 of file lisa_m_common.h.

#define SPEKTRUM_UART5_AF   0

Definition at line 82 of file lisa_m_common.h.

#define SPEKTRUM_UART5_BANK   GPIO_BANK_UART5_RX

Definition at line 80 of file lisa_m_common.h.

#define SPEKTRUM_UART5_DEV   UART5

Definition at line 85 of file lisa_m_common.h.

#define SPEKTRUM_UART5_IRQ   NVIC_UART5_IRQ

Definition at line 83 of file lisa_m_common.h.

#define SPEKTRUM_UART5_ISR   uart5_isr

Definition at line 84 of file lisa_m_common.h.

#define SPEKTRUM_UART5_PIN   GPIO_UART5_RX

Definition at line 81 of file lisa_m_common.h.

#define SPEKTRUM_UART5_RCC   RCC_UART5

Definition at line 79 of file lisa_m_common.h.

#define SPI_SELECT_SLAVE0_PIN   GPIO15

Definition at line 7 of file lisa_m_common.h.

#define SPI_SELECT_SLAVE0_PORT   GPIOA

Definition at line 6 of file lisa_m_common.h.

#define SPI_SELECT_SLAVE1_PIN   GPIO4

Definition at line 10 of file lisa_m_common.h.

#define SPI_SELECT_SLAVE1_PORT   GPIOA

Definition at line 9 of file lisa_m_common.h.

#define SPI_SELECT_SLAVE2_PIN   GPIO12

Definition at line 13 of file lisa_m_common.h.

#define SPI_SELECT_SLAVE2_PORT   GPIOB

Definition at line 12 of file lisa_m_common.h.

#define SPI_SELECT_SLAVE3_PIN   GPIO13

Definition at line 16 of file lisa_m_common.h.

#define SPI_SELECT_SLAVE3_PORT   GPIOC

Definition at line 15 of file lisa_m_common.h.

#define SPI_SELECT_SLAVE4_PIN   GPIO12

Definition at line 19 of file lisa_m_common.h.

#define SPI_SELECT_SLAVE4_PORT   GPIOC

Definition at line 18 of file lisa_m_common.h.

#define SPI_SELECT_SLAVE5_PIN   GPIO4

Definition at line 22 of file lisa_m_common.h.

Referenced by spi_init_slaves(), SpiSlaveSelect(), and SpiSlaveUnselect().

#define SPI_SELECT_SLAVE5_PORT   GPIOC

Definition at line 21 of file lisa_m_common.h.

Referenced by spi_init_slaves(), SpiSlaveSelect(), and SpiSlaveUnselect().

#define UART1_GPIO_AF   0

Definition at line 30 of file lisa_m_common.h.

#define UART1_GPIO_PORT_RX   GPIO_BANK_USART1_RX

Definition at line 31 of file lisa_m_common.h.

#define UART1_GPIO_PORT_TX   GPIO_BANK_USART1_TX

Definition at line 33 of file lisa_m_common.h.

#define UART1_GPIO_RX   GPIO_USART1_RX

Definition at line 32 of file lisa_m_common.h.

#define UART1_GPIO_TX   GPIO_USART1_TX

Definition at line 34 of file lisa_m_common.h.

#define UART2_GPIO_AF   0

Definition at line 36 of file lisa_m_common.h.

#define UART2_GPIO_PORT_RX   GPIO_BANK_USART2_RX

Definition at line 37 of file lisa_m_common.h.

#define UART2_GPIO_PORT_TX   GPIO_BANK_USART2_TX

Definition at line 39 of file lisa_m_common.h.

#define UART2_GPIO_RX   GPIO_USART2_RX

Definition at line 38 of file lisa_m_common.h.

#define UART2_GPIO_TX   GPIO_USART2_TX

Definition at line 40 of file lisa_m_common.h.

#define UART3_GPIO_AF   AFIO_MAPR_USART3_REMAP_PARTIAL_REMAP

Definition at line 42 of file lisa_m_common.h.

#define UART3_GPIO_PORT_RX   GPIO_BANK_USART3_PR_RX

Definition at line 43 of file lisa_m_common.h.

#define UART3_GPIO_PORT_TX   GPIO_BANK_USART3_PR_TX

Definition at line 45 of file lisa_m_common.h.

#define UART3_GPIO_RX   GPIO_USART3_PR_RX

Definition at line 44 of file lisa_m_common.h.

#define UART3_GPIO_TX   GPIO_USART3_PR_TX

Definition at line 46 of file lisa_m_common.h.

#define UART5_GPIO_AF   0

Definition at line 48 of file lisa_m_common.h.

#define UART5_GPIO_PORT_RX   GPIO_BANK_UART5_RX

Definition at line 49 of file lisa_m_common.h.

#define UART5_GPIO_PORT_TX   GPIO_BANK_UART5_TX

Definition at line 51 of file lisa_m_common.h.

#define UART5_GPIO_RX   GPIO_UART5_RX

Definition at line 50 of file lisa_m_common.h.

#define UART5_GPIO_TX   GPIO_UART5_TX

Definition at line 52 of file lisa_m_common.h.

#define USE_AD_TIM1   1

Definition at line 128 of file lisa_m_common.h.

#define USE_ADC_5   1

Definition at line 183 of file lisa_m_common.h.

#define USE_PPM_TIM2   1

Definition at line 113 of file lisa_m_common.h.

#define USE_PWM1   1

Definition at line 224 of file lisa_m_common.h.

#define USE_PWM2   1

Definition at line 225 of file lisa_m_common.h.

#define USE_PWM3   1

Definition at line 226 of file lisa_m_common.h.

#define USE_PWM4   1

Definition at line 227 of file lisa_m_common.h.

#define USE_PWM5   1

Definition at line 235 of file lisa_m_common.h.

#define USE_PWM6   1

Definition at line 236 of file lisa_m_common.h.