Paparazzi UAS  v5.15_devel-230-gc96ce27
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
board.h File Reference

Go to the source code of this file.

Macros

#define BOARD_LIA_STM32F105RC
 
#define BOARD_NAME   "Lia 1.1 STM32F105RC"
 
#define STM32_LSECLK   0
 
#define STM32_HSECLK   12000000
 
#define STM32_VDD   330
 
#define STM32F105xC
 
#define VAL_GPIOACRL   0xB4BB4BBB /* PA7...PA0 */
 
#define VAL_GPIOACRH   0x44444447 /* PA15...PA8 */
 
#define VAL_GPIOAODR   0xFFFFFFFF
 
#define VAL_GPIOBCRL   0xBB474444 /* PB7...PB0 */
 
#define VAL_GPIOBCRH   0xB4B3EE74 /* PB15...PB8 */
 
#define VAL_GPIOBODR   0xFFFFFFFF
 
#define VAL_GPIOCCRL   0xBB700700 /* PC7...PC0 */
 
#define VAL_GPIOCCRH   0x743B4BBB /* PC15...PC8 */
 
#define VAL_GPIOCODR   0xFFFFFFFF
 
#define VAL_GPIODCRL   0x88888488 /* PD7...PD0 */
 
#define VAL_GPIODCRH   0x88888888 /* PD15...PD8 */
 
#define VAL_GPIODODR   0xFFFFFFFF
 
#define VAL_GPIOECRL   0x88888888 /* PE7...PE0 */
 
#define VAL_GPIOECRH   0x88888888 /* PE15...PE8 */
 
#define VAL_GPIOEODR   0xFFFFFFFF
 
#define AHB_CLK   STM32_HCLK
 
#define USE_LED_1   1
 
#define LED_1_GPIO   GPIOA
 
#define LED_1_GPIO_PIN   8
 
#define LED_1_GPIO_ON   gpio_clear
 
#define LED_1_GPIO_OFF   gpio_set
 
#define USE_LED_2   1
 
#define LED_2_GPIO   GPIOB
 
#define LED_2_GPIO_PIN   4
 
#define LED_2_GPIO_ON   gpio_clear
 
#define LED_2_GPIO_OFF   gpio_set
 
#define USE_LED_3   1
 
#define LED_3_GPIO   GPIOC
 
#define LED_3_GPIO_PIN   2
 
#define LED_3_GPIO_ON   gpio_clear
 
#define LED_3_GPIO_OFF   gpio_set
 
#define USE_LED_4   1
 
#define LED_4_GPIO   GPIOC
 
#define LED_4_GPIO_PIN   5
 
#define LED_4_GPIO_ON   gpio_clear
 
#define LED_4_GPIO_OFF   gpio_set
 
#define USE_LED_5   0
 
#define LED_5_GPIO   GPIOC
 
#define LED_5_GPIO_PIN   15
 
#define LED_5_GPIO_ON   gpio_set
 
#define LED_5_GPIO_OFF   gpio_clear
 
#define USE_ADC_4   1
 
#define AD1_4_CHANNEL   ADC_CHANNEL_IN14
 
#define ADC_4   AD1_4
 
#define ADC_4_GPIO_PORT   GPIOC
 
#define ADC_4_GPIO_PIN   GPIO4
 
#define USE_ADC_5   1
 
#define USE_ADC_SENSOR   1
 
#define AD1_5_CHANNEL   ADC_CHANNEL_SENSOR
 
#define ADC_5   AD1_5
 
#define ADC_5_GPIO_PORT   GPIOC
 
#define ADC_5_GPIO_PIN   GPIO4
 
#define ADC_CHANNEL_VSUPPLY   ADC_4
 
#define DefaultVoltageOfAdc(adc)   (0.004489*adc)
 
#define USE_PWM0   1
 
#define PWM_SERVO_0   0
 
#define PWM_SERVO_0_GPIO   GPIOC
 
#define PWM_SERVO_0_PIN   GPIO6
 
#define PWM_SERVO_0_AF   GPIO_AF2
 
#define PWM_SERVO_0_DRIVER   PWMD3
 
#define PWM_SERVO_0_CHANNEL   0
 
#define PWM_SERVO_0_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH
 
#define USE_PWM1   1
 
#define PWM_SERVO_1   1
 
#define PWM_SERVO_1_GPIO   GPIOC
 
#define PWM_SERVO_1_PIN   GPIO7
 
#define PWM_SERVO_1_AF   GPIO_AF1
 
#define PWM_SERVO_1_DRIVER   PWMD3
 
#define PWM_SERVO_1_CHANNEL   1
 
#define PWM_SERVO_1_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH
 
#define USE_PWM2   1
 
#define PWM_SERVO_2   2
 
#define PWM_SERVO_2_GPIO   GPIOC
 
#define PWM_SERVO_2_PIN   GPIO8
 
#define PWM_SERVO_2_AF   GPIO_AF2
 
#define PWM_SERVO_2_DRIVER   PWMD3
 
#define PWM_SERVO_2_CHANNEL   2
 
#define PWM_SERVO_2_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH
 
#define USE_PWM3   1
 
#define PWM_SERVO_3   3
 
#define PWM_SERVO_3_GPIO   GPIOC
 
#define PWM_SERVO_3_PIN   GPIO9
 
#define PWM_SERVO_3_AF   GPIO_AF2
 
#define PWM_SERVO_3_DRIVER   PWMD3
 
#define PWM_SERVO_3_CHANNEL   3
 
#define PWM_SERVO_3_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH
 
#define USE_PWM4   1
 
#define PWM_SERVO_4   4
 
#define PWM_SERVO_4_GPIO   GPIOA
 
#define PWM_SERVO_4_PIN   GPIO0
 
#define PWM_SERVO_4_AF   GPIO_AF2
 
#define PWM_SERVO_4_DRIVER   PWMD5
 
#define PWM_SERVO_4_CHANNEL   0
 
#define PWM_SERVO_4_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH
 
#define USE_PWM5   1
 
#define PWM_SERVO_5   5
 
#define PWM_SERVO_5_GPIO   GPIOA
 
#define PWM_SERVO_5_PIN   GPIO1
 
#define PWM_SERVO_5_AF   GPIO_AF2
 
#define PWM_SERVO_5_DRIVER   PWMD5
 
#define PWM_SERVO_5_CHANNEL   1
 
#define PWM_SERVO_5_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH
 
#define PWM_CONF_TIM3   1
 
#define PWM_CONF_TIM5   1
 
#define PWM_CONF3_DEF
 
#define PWM_CONF5_DEF
 
#define RC_PPM_TICKS_PER_USEC   6
 PPM radio defines. More...
 
#define PPM_TIMER_FREQUENCY   6000000
 
#define PPM_CHANNEL   ICU_CHANNEL_1
 
#define PPM_TIMER   ICUD1
 
#define I2C1_CLOCK_SPEED   400000
 I2C defines. More...
 
#define I2C1_CFG_DEF
 
#define I2C2_CLOCK_SPEED   400000
 
#define I2C2_CFG_DEF
 
#define SPI_SELECT_SLAVE0_PORT   GPIOA
 SPI Config. More...
 
#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 SPI3_GPIO_PORT_NSS   GPIO
 
#define USE_BARO_BOARD   1
 Baro. More...
 
#define DEFAULT_ACTUATORS   "subsystems/actuators/actuators_pwm.h"
 
#define ActuatorDefaultSet(_x, _y)   ActuatorPwmSet(_x,_y)
 
#define ActuatorsDefaultInit()   ActuatorsPwmInit()
 
#define ActuatorsDefaultCommit()   ActuatorsPwmCommit()
 

Functions

void boardInit (void)
 Board-specific initialization code. More...
 

Macro Definition Documentation

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

Definition at line 562 of file board.h.

#define ActuatorsDefaultCommit ( )    ActuatorsPwmCommit()

Definition at line 564 of file board.h.

#define ActuatorsDefaultInit ( )    ActuatorsPwmInit()

Definition at line 563 of file board.h.

#define AD1_4_CHANNEL   ADC_CHANNEL_IN14

Definition at line 269 of file board.h.

#define AD1_5_CHANNEL   ADC_CHANNEL_SENSOR

Definition at line 281 of file board.h.

#define ADC_4   AD1_4

Definition at line 270 of file board.h.

#define ADC_4_GPIO_PIN   GPIO4

Definition at line 272 of file board.h.

#define ADC_4_GPIO_PORT   GPIOC

Definition at line 271 of file board.h.

#define ADC_5   AD1_5

Definition at line 282 of file board.h.

#define ADC_5_GPIO_PIN   GPIO4

Definition at line 284 of file board.h.

Referenced by adc_init().

#define ADC_5_GPIO_PORT   GPIOC

Definition at line 283 of file board.h.

Referenced by adc_init().

#define ADC_CHANNEL_VSUPPLY   ADC_4

Definition at line 291 of file board.h.

#define AHB_CLK   STM32_HCLK

Definition at line 186 of file board.h.

#define BOARD_LIA_STM32F105RC

Definition at line 27 of file board.h.

#define BOARD_NAME   "Lia 1.1 STM32F105RC"

Definition at line 28 of file board.h.

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

Definition at line 561 of file board.h.

#define DefaultVoltageOfAdc (   adc)    (0.004489*adc)

Definition at line 294 of file board.h.

#define I2C1_CFG_DEF
Value:
{ \
OPMODE_I2C, \
FAST_DUTY_CYCLE_2, \
}
#define I2C1_CLOCK_SPEED
I2C defines.
Definition: board.h:504

Definition at line 505 of file board.h.

#define I2C1_CLOCK_SPEED   400000

I2C defines.

Definition at line 504 of file board.h.

#define I2C2_CFG_DEF
Value:
{ \
OPMODE_I2C, \
FAST_DUTY_CYCLE_2, \
}
#define I2C2_CLOCK_SPEED
Definition: board.h:511

Definition at line 512 of file board.h.

#define I2C2_CLOCK_SPEED   400000

Definition at line 511 of file board.h.

#define LED_1_GPIO   GPIOA

Definition at line 196 of file board.h.

#define LED_1_GPIO_OFF   gpio_set

Definition at line 199 of file board.h.

#define LED_1_GPIO_ON   gpio_clear

Definition at line 198 of file board.h.

#define LED_1_GPIO_PIN   8

Definition at line 197 of file board.h.

#define LED_2_GPIO   GPIOB

Definition at line 205 of file board.h.

#define LED_2_GPIO_OFF   gpio_set

Definition at line 208 of file board.h.

#define LED_2_GPIO_ON   gpio_clear

Definition at line 207 of file board.h.

#define LED_2_GPIO_PIN   4

Definition at line 206 of file board.h.

#define LED_3_GPIO   GPIOC

Definition at line 214 of file board.h.

#define LED_3_GPIO_OFF   gpio_set

Definition at line 217 of file board.h.

#define LED_3_GPIO_ON   gpio_clear

Definition at line 216 of file board.h.

#define LED_3_GPIO_PIN   2

Definition at line 215 of file board.h.

#define LED_4_GPIO   GPIOC

Definition at line 223 of file board.h.

#define LED_4_GPIO_OFF   gpio_set

Definition at line 226 of file board.h.

#define LED_4_GPIO_ON   gpio_clear

Definition at line 225 of file board.h.

#define LED_4_GPIO_PIN   5

Definition at line 224 of file board.h.

#define LED_5_GPIO   GPIOC

Definition at line 232 of file board.h.

#define LED_5_GPIO_OFF   gpio_clear

Definition at line 235 of file board.h.

#define LED_5_GPIO_ON   gpio_set

Definition at line 234 of file board.h.

#define LED_5_GPIO_PIN   15

Definition at line 233 of file board.h.

#define PPM_CHANNEL   ICU_CHANNEL_1

Definition at line 498 of file board.h.

#define PPM_TIMER   ICUD1

Definition at line 499 of file board.h.

#define PPM_TIMER_FREQUENCY   6000000

Definition at line 497 of file board.h.

#define PWM_CONF3_DEF
Value:
{ \
NULL, \
{ \
{PWM_SERVO_0_ACTIVE, NULL}, \
{PWM_SERVO_1_ACTIVE, NULL}, \
{PWM_SERVO_2_ACTIVE, NULL}, \
}, \
0, \
0 \
}
#define PWM_SERVO_0_ACTIVE
Definition: board.h:309
#define PWM_SERVO_1_ACTIVE
Definition: board.h:324
#define PWM_SERVO_2_ACTIVE
Definition: board.h:339
#define TIM3_SERVO_HZ
#define PWM_FREQUENCY
#define PWM_SERVO_3_ACTIVE
Definition: board.h:354

Definition at line 464 of file board.h.

#define PWM_CONF5_DEF
Value:
{ \
NULL, \
{ \
{PWM_SERVO_4_ACTIVE, NULL}, \
{PWM_SERVO_5_ACTIVE, NULL}, \
{PWM_OUTPUT_DISABLED, NULL}, \
{PWM_OUTPUT_DISABLED, NULL} \
}, \
0, \
0 \
}
#define TIM5_SERVO_HZ
#define PWM_SERVO_4_ACTIVE
Definition: board.h:369
#define PWM_SERVO_5_ACTIVE
Definition: board.h:384
#define PWM_FREQUENCY

Definition at line 477 of file board.h.

#define PWM_CONF_TIM3   1

Definition at line 462 of file board.h.

#define PWM_CONF_TIM5   1

Definition at line 463 of file board.h.

#define PWM_SERVO_0   0

Definition at line 303 of file board.h.

#define PWM_SERVO_0_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH

Definition at line 309 of file board.h.

#define PWM_SERVO_0_AF   GPIO_AF2

Definition at line 306 of file board.h.

#define PWM_SERVO_0_CHANNEL   0

Definition at line 308 of file board.h.

#define PWM_SERVO_0_DRIVER   PWMD3

Definition at line 307 of file board.h.

#define PWM_SERVO_0_GPIO   GPIOC

Definition at line 304 of file board.h.

#define PWM_SERVO_0_PIN   GPIO6

Definition at line 305 of file board.h.

#define PWM_SERVO_1   1

Definition at line 318 of file board.h.

#define PWM_SERVO_1_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH

Definition at line 324 of file board.h.

#define PWM_SERVO_1_AF   GPIO_AF1

Definition at line 321 of file board.h.

#define PWM_SERVO_1_CHANNEL   1

Definition at line 323 of file board.h.

#define PWM_SERVO_1_DRIVER   PWMD3

Definition at line 322 of file board.h.

#define PWM_SERVO_1_GPIO   GPIOC

Definition at line 319 of file board.h.

#define PWM_SERVO_1_PIN   GPIO7

Definition at line 320 of file board.h.

#define PWM_SERVO_2   2

Definition at line 333 of file board.h.

#define PWM_SERVO_2_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH

Definition at line 339 of file board.h.

#define PWM_SERVO_2_AF   GPIO_AF2

Definition at line 336 of file board.h.

#define PWM_SERVO_2_CHANNEL   2

Definition at line 338 of file board.h.

#define PWM_SERVO_2_DRIVER   PWMD3

Definition at line 337 of file board.h.

#define PWM_SERVO_2_GPIO   GPIOC

Definition at line 334 of file board.h.

#define PWM_SERVO_2_PIN   GPIO8

Definition at line 335 of file board.h.

#define PWM_SERVO_3   3

Definition at line 348 of file board.h.

#define PWM_SERVO_3_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH

Definition at line 354 of file board.h.

#define PWM_SERVO_3_AF   GPIO_AF2

Definition at line 351 of file board.h.

#define PWM_SERVO_3_CHANNEL   3

Definition at line 353 of file board.h.

#define PWM_SERVO_3_DRIVER   PWMD3

Definition at line 352 of file board.h.

#define PWM_SERVO_3_GPIO   GPIOC

Definition at line 349 of file board.h.

#define PWM_SERVO_3_PIN   GPIO9

Definition at line 350 of file board.h.

#define PWM_SERVO_4   4

Definition at line 363 of file board.h.

#define PWM_SERVO_4_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH

Definition at line 369 of file board.h.

#define PWM_SERVO_4_AF   GPIO_AF2

Definition at line 366 of file board.h.

#define PWM_SERVO_4_CHANNEL   0

Definition at line 368 of file board.h.

#define PWM_SERVO_4_DRIVER   PWMD5

Definition at line 367 of file board.h.

#define PWM_SERVO_4_GPIO   GPIOA

Definition at line 364 of file board.h.

#define PWM_SERVO_4_PIN   GPIO0

Definition at line 365 of file board.h.

#define PWM_SERVO_5   5

Definition at line 378 of file board.h.

#define PWM_SERVO_5_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH

Definition at line 384 of file board.h.

#define PWM_SERVO_5_AF   GPIO_AF2

Definition at line 381 of file board.h.

#define PWM_SERVO_5_CHANNEL   1

Definition at line 383 of file board.h.

#define PWM_SERVO_5_DRIVER   PWMD5

Definition at line 382 of file board.h.

#define PWM_SERVO_5_GPIO   GPIOA

Definition at line 379 of file board.h.

#define PWM_SERVO_5_PIN   GPIO1

Definition at line 380 of file board.h.

#define RC_PPM_TICKS_PER_USEC   6

PPM radio defines.

Definition at line 496 of file board.h.

#define SPI1_GPIO_NSS   GPIO4

Definition at line 540 of file board.h.

#define SPI1_GPIO_PORT_NSS   GPIOA

Definition at line 539 of file board.h.

#define SPI2_GPIO_NSS   GPIO12

Definition at line 543 of file board.h.

#define SPI2_GPIO_PORT_NSS   GPIOB

Definition at line 542 of file board.h.

#define SPI3_GPIO_PORT_NSS   GPIO

Definition at line 545 of file board.h.

#define SPI_SELECT_SLAVE0_PIN   GPIO15

Definition at line 522 of file board.h.

#define SPI_SELECT_SLAVE0_PORT   GPIOA

SPI Config.

Definition at line 521 of file board.h.

#define SPI_SELECT_SLAVE1_PIN   GPIO4

Definition at line 525 of file board.h.

#define SPI_SELECT_SLAVE1_PORT   GPIOA

Definition at line 524 of file board.h.

#define SPI_SELECT_SLAVE2_PIN   GPIO12

Definition at line 528 of file board.h.

#define SPI_SELECT_SLAVE2_PORT   GPIOB

Definition at line 527 of file board.h.

#define SPI_SELECT_SLAVE3_PIN   GPIO13

Definition at line 531 of file board.h.

#define SPI_SELECT_SLAVE3_PORT   GPIOC

Definition at line 530 of file board.h.

#define SPI_SELECT_SLAVE4_PIN   GPIO12

Definition at line 534 of file board.h.

#define SPI_SELECT_SLAVE4_PORT   GPIOC

Definition at line 533 of file board.h.

#define SPI_SELECT_SLAVE5_PIN   GPIO4

Definition at line 537 of file board.h.

#define SPI_SELECT_SLAVE5_PORT   GPIOC

Definition at line 536 of file board.h.

#define STM32_HSECLK   12000000

Definition at line 39 of file board.h.

#define STM32_LSECLK   0

Definition at line 35 of file board.h.

#define STM32_VDD   330

Definition at line 47 of file board.h.

#define STM32F105xC

Definition at line 52 of file board.h.

#define USE_ADC_4   1

Definition at line 266 of file board.h.

#define USE_ADC_5   1

Definition at line 277 of file board.h.

#define USE_ADC_SENSOR   1

Definition at line 278 of file board.h.

#define USE_BARO_BOARD   1

Baro.

Apparently needed for backwards compatibility with the ancient onboard baro boards

Definition at line 554 of file board.h.

#define USE_LED_1   1

Definition at line 194 of file board.h.

#define USE_LED_2   1

Definition at line 203 of file board.h.

#define USE_LED_3   1

Definition at line 212 of file board.h.

#define USE_LED_4   1

Definition at line 221 of file board.h.

#define USE_LED_5   0

Definition at line 230 of file board.h.

#define USE_PWM0   1

Definition at line 300 of file board.h.

#define USE_PWM1   1

Definition at line 315 of file board.h.

#define USE_PWM2   1

Definition at line 330 of file board.h.

#define USE_PWM3   1

Definition at line 345 of file board.h.

#define USE_PWM4   1

Definition at line 360 of file board.h.

#define USE_PWM5   1

Definition at line 375 of file board.h.

#define VAL_GPIOACRH   0x44444447 /* PA15...PA8 */

Definition at line 100 of file board.h.

#define VAL_GPIOACRL   0xB4BB4BBB /* PA7...PA0 */

Definition at line 99 of file board.h.

#define VAL_GPIOAODR   0xFFFFFFFF

Definition at line 101 of file board.h.

#define VAL_GPIOBCRH   0xB4B3EE74 /* PB15...PB8 */

Definition at line 125 of file board.h.

#define VAL_GPIOBCRL   0xBB474444 /* PB7...PB0 */

Definition at line 124 of file board.h.

#define VAL_GPIOBODR   0xFFFFFFFF

Definition at line 126 of file board.h.

#define VAL_GPIOCCRH   0x743B4BBB /* PC15...PC8 */

Definition at line 148 of file board.h.

#define VAL_GPIOCCRL   0xBB700700 /* PC7...PC0 */

Definition at line 147 of file board.h.

#define VAL_GPIOCODR   0xFFFFFFFF

Definition at line 149 of file board.h.

#define VAL_GPIODCRH   0x88888888 /* PD15...PD8 */

Definition at line 171 of file board.h.

#define VAL_GPIODCRL   0x88888488 /* PD7...PD0 */

Definition at line 170 of file board.h.

#define VAL_GPIODODR   0xFFFFFFFF

Definition at line 172 of file board.h.

#define VAL_GPIOECRH   0x88888888 /* PE15...PE8 */

Definition at line 179 of file board.h.

#define VAL_GPIOECRL   0x88888888 /* PE7...PE0 */

Definition at line 178 of file board.h.

#define VAL_GPIOEODR   0xFFFFFFFF

Definition at line 180 of file board.h.

Function Documentation

void boardInit ( void  )

Board-specific initialization code.

Todo:
Add your board-specific code, if any.
Todo:
Add your board-specific code, if any.
Todo:
Add your board-specific code, if any.
Todo:
Add your board-specific code, if any.
Todo:
Add your board-specific code, if any.
Todo:
Add your board-specific code, if any.
Todo:
Add your board-specific code, if any.
Todo:
Add your board-specific code, if any.
Todo:
Add your board-specific code, if any.
Todo:
Add your board-specific code, if any.
Todo:
Add your board-specific code, if any.
Todo:
Add your board-specific code, if any.

Definition at line 261 of file board.c.