Paparazzi UAS  v5.15_devel-88-gb3ad7fe
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_ST_STM32F4_LISA
 
#define BOARD_NAME   "STMicroelectronics STM32F4-Lisa"
 
#define STM32_LSECLK   0
 
#define STM32_HSECLK   12000000
 
#define STM32_VDD   330
 
#define STM32F407xx
 
#define PIN_MODE_INPUT(n)   (0U << ((n) * 2U))
 
#define PIN_MODE_OUTPUT(n)   (1U << ((n) * 2U))
 
#define PIN_MODE_ALTERNATE(n)   (2U << ((n) * 2U))
 
#define PIN_MODE_ANALOG(n)   (3U << ((n) * 2U))
 
#define PIN_ODR_LOW(n)   (0U << (n))
 
#define PIN_ODR_HIGH(n)   (1U << (n))
 
#define PIN_OTYPE_PUSHPULL(n)   (0U << (n))
 
#define PIN_OTYPE_OPENDRAIN(n)   (1U << (n))
 
#define PIN_OSPEED_2M(n)   (0U << ((n) * 2U))
 
#define PIN_OSPEED_25M(n)   (1U << ((n) * 2U))
 
#define PIN_OSPEED_50M(n)   (2U << ((n) * 2U))
 
#define PIN_OSPEED_100M(n)   (3U << ((n) * 2U))
 
#define PIN_PUPDR_FLOATING(n)   (0U << ((n) * 2U))
 
#define PIN_PUPDR_PULLUP(n)   (1U << ((n) * 2U))
 
#define PIN_PUPDR_PULLDOWN(n)   (2U << ((n) * 2U))
 
#define PIN_AFIO_AF(n, v)   ((v) << (((n) % 8U) * 4U))
 
#define VAL_GPIOA_MODER
 
#define VAL_GPIOA_OTYPER
 
#define VAL_GPIOA_OSPEEDR
 
#define VAL_GPIOA_PUPDR
 
#define VAL_GPIOA_ODR
 
#define VAL_GPIOA_AFRL
 
#define VAL_GPIOA_AFRH
 
#define VAL_GPIOB_MODER
 
#define VAL_GPIOB_OTYPER
 
#define VAL_GPIOB_OSPEEDR
 
#define VAL_GPIOB_PUPDR
 
#define VAL_GPIOB_ODR
 
#define VAL_GPIOB_AFRL
 
#define VAL_GPIOB_AFRH
 
#define VAL_GPIOC_MODER
 
#define VAL_GPIOC_OTYPER
 
#define VAL_GPIOC_OSPEEDR
 
#define VAL_GPIOC_PUPDR
 
#define VAL_GPIOC_ODR
 
#define VAL_GPIOC_AFRL
 
#define VAL_GPIOC_AFRH
 
#define VAL_GPIOD_MODER
 
#define VAL_GPIOD_OTYPER
 
#define VAL_GPIOD_OSPEEDR
 
#define VAL_GPIOD_PUPDR
 
#define VAL_GPIOD_ODR
 
#define VAL_GPIOD_AFRL
 
#define VAL_GPIOD_AFRH
 
#define VAL_GPIOE_MODER
 
#define VAL_GPIOE_OTYPER
 
#define VAL_GPIOE_OSPEEDR
 
#define VAL_GPIOE_PUPDR
 
#define VAL_GPIOE_ODR
 
#define VAL_GPIOE_AFRL
 
#define VAL_GPIOE_AFRH
 
#define VAL_GPIOF_MODER
 
#define VAL_GPIOF_OTYPER
 
#define VAL_GPIOF_OSPEEDR
 
#define VAL_GPIOF_PUPDR
 
#define VAL_GPIOF_ODR
 
#define VAL_GPIOF_AFRL
 
#define VAL_GPIOF_AFRH
 
#define VAL_GPIOG_MODER
 
#define VAL_GPIOG_OTYPER
 
#define VAL_GPIOG_OSPEEDR
 
#define VAL_GPIOG_PUPDR
 
#define VAL_GPIOG_ODR
 
#define VAL_GPIOG_AFRL
 
#define VAL_GPIOG_AFRH
 
#define VAL_GPIOH_MODER
 
#define VAL_GPIOH_OTYPER
 
#define VAL_GPIOH_OSPEEDR
 
#define VAL_GPIOH_PUPDR
 
#define VAL_GPIOH_ODR
 
#define VAL_GPIOH_AFRL
 
#define VAL_GPIOH_AFRH
 
#define VAL_GPIOI_MODER
 
#define VAL_GPIOI_OTYPER
 
#define VAL_GPIOI_OSPEEDR
 
#define VAL_GPIOI_PUPDR
 
#define VAL_GPIOI_ODR
 
#define VAL_GPIOI_AFRL
 
#define VAL_GPIOI_AFRH
 
#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_AF2
 
#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 1432 of file board.h.

#define ActuatorsDefaultCommit ( )    ActuatorsPwmCommit()

Definition at line 1434 of file board.h.

#define ActuatorsDefaultInit ( )    ActuatorsPwmInit()

Definition at line 1433 of file board.h.

#define AD1_4_CHANNEL   ADC_CHANNEL_IN14

Definition at line 1139 of file board.h.

#define AD1_5_CHANNEL   ADC_CHANNEL_SENSOR

Definition at line 1151 of file board.h.

#define ADC_4   AD1_4

Definition at line 1140 of file board.h.

#define ADC_4_GPIO_PIN   GPIO4

Definition at line 1142 of file board.h.

#define ADC_4_GPIO_PORT   GPIOC

Definition at line 1141 of file board.h.

#define ADC_5   AD1_5

Definition at line 1152 of file board.h.

#define ADC_5_GPIO_PIN   GPIO4

Definition at line 1154 of file board.h.

#define ADC_5_GPIO_PORT   GPIOC

Definition at line 1153 of file board.h.

#define ADC_CHANNEL_VSUPPLY   ADC_4

Definition at line 1161 of file board.h.

#define AHB_CLK   STM32_HCLK

Definition at line 1056 of file board.h.

#define BOARD_NAME   "STMicroelectronics STM32F4-Lisa"

Definition at line 28 of file board.h.

#define BOARD_ST_STM32F4_LISA

Definition at line 27 of file board.h.

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

Definition at line 1431 of file board.h.

#define DefaultVoltageOfAdc (   adc)    (0.004489*adc)

Definition at line 1164 of file board.h.

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

Definition at line 1375 of file board.h.

#define I2C1_CLOCK_SPEED   400000

I2C defines.

Definition at line 1374 of file board.h.

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

Definition at line 1382 of file board.h.

#define I2C2_CLOCK_SPEED   400000

Definition at line 1381 of file board.h.

#define LED_1_GPIO   GPIOA

Definition at line 1066 of file board.h.

#define LED_1_GPIO_OFF   gpio_set

Definition at line 1069 of file board.h.

#define LED_1_GPIO_ON   gpio_clear

Definition at line 1068 of file board.h.

#define LED_1_GPIO_PIN   8

Definition at line 1067 of file board.h.

#define LED_2_GPIO   GPIOB

Definition at line 1075 of file board.h.

#define LED_2_GPIO_OFF   gpio_set

Definition at line 1078 of file board.h.

#define LED_2_GPIO_ON   gpio_clear

Definition at line 1077 of file board.h.

#define LED_2_GPIO_PIN   4

Definition at line 1076 of file board.h.

#define LED_3_GPIO   GPIOC

Definition at line 1084 of file board.h.

#define LED_3_GPIO_OFF   gpio_set

Definition at line 1087 of file board.h.

#define LED_3_GPIO_ON   gpio_clear

Definition at line 1086 of file board.h.

#define LED_3_GPIO_PIN   2

Definition at line 1085 of file board.h.

#define LED_4_GPIO   GPIOC

Definition at line 1093 of file board.h.

#define LED_4_GPIO_OFF   gpio_set

Definition at line 1096 of file board.h.

#define LED_4_GPIO_ON   gpio_clear

Definition at line 1095 of file board.h.

#define LED_4_GPIO_PIN   5

Definition at line 1094 of file board.h.

#define LED_5_GPIO   GPIOC

Definition at line 1102 of file board.h.

#define LED_5_GPIO_OFF   gpio_clear

Definition at line 1105 of file board.h.

#define LED_5_GPIO_ON   gpio_set

Definition at line 1104 of file board.h.

#define LED_5_GPIO_PIN   15

Definition at line 1103 of file board.h.

#define PIN_AFIO_AF (   n,
 
)    ((v) << (((n) % 8U) * 4U))

Definition at line 76 of file board.h.

#define PIN_MODE_ALTERNATE (   n)    (2U << ((n) * 2U))

Definition at line 63 of file board.h.

#define PIN_MODE_ANALOG (   n)    (3U << ((n) * 2U))

Definition at line 64 of file board.h.

#define PIN_MODE_INPUT (   n)    (0U << ((n) * 2U))

Definition at line 61 of file board.h.

#define PIN_MODE_OUTPUT (   n)    (1U << ((n) * 2U))

Definition at line 62 of file board.h.

#define PIN_ODR_HIGH (   n)    (1U << (n))

Definition at line 66 of file board.h.

#define PIN_ODR_LOW (   n)    (0U << (n))

Definition at line 65 of file board.h.

#define PIN_OSPEED_100M (   n)    (3U << ((n) * 2U))

Definition at line 72 of file board.h.

#define PIN_OSPEED_25M (   n)    (1U << ((n) * 2U))

Definition at line 70 of file board.h.

#define PIN_OSPEED_2M (   n)    (0U << ((n) * 2U))

Definition at line 69 of file board.h.

#define PIN_OSPEED_50M (   n)    (2U << ((n) * 2U))

Definition at line 71 of file board.h.

#define PIN_OTYPE_OPENDRAIN (   n)    (1U << (n))

Definition at line 68 of file board.h.

#define PIN_OTYPE_PUSHPULL (   n)    (0U << (n))

Definition at line 67 of file board.h.

#define PIN_PUPDR_FLOATING (   n)    (0U << ((n) * 2U))

Definition at line 73 of file board.h.

#define PIN_PUPDR_PULLDOWN (   n)    (2U << ((n) * 2U))

Definition at line 75 of file board.h.

#define PIN_PUPDR_PULLUP (   n)    (1U << ((n) * 2U))

Definition at line 74 of file board.h.

#define PPM_CHANNEL   ICU_CHANNEL_1

Definition at line 1368 of file board.h.

#define PPM_TIMER   ICUD1

Definition at line 1369 of file board.h.

#define PPM_TIMER_FREQUENCY   6000000

Definition at line 1367 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 TIM3_SERVO_HZ
#define PWM_FREQUENCY
#define PWM_SERVO_2_ACTIVE
Definition: board.h:1209
#define PWM_SERVO_0_ACTIVE
Definition: board.h:1179
#define PWM_SERVO_1_ACTIVE
Definition: board.h:1194
#define PWM_SERVO_3_ACTIVE
Definition: board.h:1224

Definition at line 1334 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_FREQUENCY
#define PWM_SERVO_4_ACTIVE
Definition: board.h:1239
#define PWM_SERVO_5_ACTIVE
Definition: board.h:1254

Definition at line 1347 of file board.h.

#define PWM_CONF_TIM3   1

Definition at line 1332 of file board.h.

#define PWM_CONF_TIM5   1

Definition at line 1333 of file board.h.

#define PWM_SERVO_0   0

Definition at line 1173 of file board.h.

#define PWM_SERVO_0_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH

Definition at line 1179 of file board.h.

#define PWM_SERVO_0_AF   GPIO_AF2

Definition at line 1176 of file board.h.

#define PWM_SERVO_0_CHANNEL   0

Definition at line 1178 of file board.h.

#define PWM_SERVO_0_DRIVER   PWMD3

Definition at line 1177 of file board.h.

#define PWM_SERVO_0_GPIO   GPIOC

Definition at line 1174 of file board.h.

#define PWM_SERVO_0_PIN   GPIO6

Definition at line 1175 of file board.h.

#define PWM_SERVO_1   1

Definition at line 1188 of file board.h.

#define PWM_SERVO_1_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH

Definition at line 1194 of file board.h.

#define PWM_SERVO_1_AF   GPIO_AF2

Definition at line 1191 of file board.h.

#define PWM_SERVO_1_CHANNEL   1

Definition at line 1193 of file board.h.

#define PWM_SERVO_1_DRIVER   PWMD3

Definition at line 1192 of file board.h.

#define PWM_SERVO_1_GPIO   GPIOC

Definition at line 1189 of file board.h.

#define PWM_SERVO_1_PIN   GPIO7

Definition at line 1190 of file board.h.

#define PWM_SERVO_2   2

Definition at line 1203 of file board.h.

#define PWM_SERVO_2_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH

Definition at line 1209 of file board.h.

#define PWM_SERVO_2_AF   GPIO_AF2

Definition at line 1206 of file board.h.

#define PWM_SERVO_2_CHANNEL   2

Definition at line 1208 of file board.h.

#define PWM_SERVO_2_DRIVER   PWMD3

Definition at line 1207 of file board.h.

#define PWM_SERVO_2_GPIO   GPIOC

Definition at line 1204 of file board.h.

#define PWM_SERVO_2_PIN   GPIO8

Definition at line 1205 of file board.h.

#define PWM_SERVO_3   3

Definition at line 1218 of file board.h.

#define PWM_SERVO_3_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH

Definition at line 1224 of file board.h.

#define PWM_SERVO_3_AF   GPIO_AF2

Definition at line 1221 of file board.h.

#define PWM_SERVO_3_CHANNEL   3

Definition at line 1223 of file board.h.

#define PWM_SERVO_3_DRIVER   PWMD3

Definition at line 1222 of file board.h.

#define PWM_SERVO_3_GPIO   GPIOC

Definition at line 1219 of file board.h.

#define PWM_SERVO_3_PIN   GPIO9

Definition at line 1220 of file board.h.

#define PWM_SERVO_4   4

Definition at line 1233 of file board.h.

#define PWM_SERVO_4_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH

Definition at line 1239 of file board.h.

#define PWM_SERVO_4_AF   GPIO_AF2

Definition at line 1236 of file board.h.

#define PWM_SERVO_4_CHANNEL   0

Definition at line 1238 of file board.h.

#define PWM_SERVO_4_DRIVER   PWMD5

Definition at line 1237 of file board.h.

#define PWM_SERVO_4_GPIO   GPIOA

Definition at line 1234 of file board.h.

#define PWM_SERVO_4_PIN   GPIO0

Definition at line 1235 of file board.h.

#define PWM_SERVO_5   5

Definition at line 1248 of file board.h.

#define PWM_SERVO_5_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH

Definition at line 1254 of file board.h.

#define PWM_SERVO_5_AF   GPIO_AF2

Definition at line 1251 of file board.h.

#define PWM_SERVO_5_CHANNEL   1

Definition at line 1253 of file board.h.

#define PWM_SERVO_5_DRIVER   PWMD5

Definition at line 1252 of file board.h.

#define PWM_SERVO_5_GPIO   GPIOA

Definition at line 1249 of file board.h.

#define PWM_SERVO_5_PIN   GPIO1

Definition at line 1250 of file board.h.

#define RC_PPM_TICKS_PER_USEC   6

PPM radio defines.

Definition at line 1366 of file board.h.

#define SPI1_GPIO_NSS   GPIO4

Definition at line 1410 of file board.h.

#define SPI1_GPIO_PORT_NSS   GPIOA

Definition at line 1409 of file board.h.

#define SPI2_GPIO_NSS   GPIO12

Definition at line 1413 of file board.h.

#define SPI2_GPIO_PORT_NSS   GPIOB

Definition at line 1412 of file board.h.

#define SPI3_GPIO_PORT_NSS   GPIO

Definition at line 1415 of file board.h.

#define SPI_SELECT_SLAVE0_PIN   GPIO15

Definition at line 1392 of file board.h.

#define SPI_SELECT_SLAVE0_PORT   GPIOA

SPI Config.

Definition at line 1391 of file board.h.

#define SPI_SELECT_SLAVE1_PIN   GPIO4

Definition at line 1395 of file board.h.

#define SPI_SELECT_SLAVE1_PORT   GPIOA

Definition at line 1394 of file board.h.

#define SPI_SELECT_SLAVE2_PIN   GPIO12

Definition at line 1398 of file board.h.

#define SPI_SELECT_SLAVE2_PORT   GPIOB

Definition at line 1397 of file board.h.

#define SPI_SELECT_SLAVE3_PIN   GPIO13

Definition at line 1401 of file board.h.

#define SPI_SELECT_SLAVE3_PORT   GPIOC

Definition at line 1400 of file board.h.

#define SPI_SELECT_SLAVE4_PIN   GPIO12

Definition at line 1404 of file board.h.

#define SPI_SELECT_SLAVE4_PORT   GPIOC

Definition at line 1403 of file board.h.

#define SPI_SELECT_SLAVE5_PIN   GPIO4

Definition at line 1407 of file board.h.

#define SPI_SELECT_SLAVE5_PORT   GPIOC

Definition at line 1406 of file board.h.

#define STM32_HSECLK   12000000

Definition at line 40 of file board.h.

#define STM32_LSECLK   0

Definition at line 36 of file board.h.

#define STM32_VDD   330

Definition at line 48 of file board.h.

#define STM32F407xx

Definition at line 53 of file board.h.

#define USE_ADC_4   1

Definition at line 1136 of file board.h.

#define USE_ADC_5   1

Definition at line 1147 of file board.h.

#define USE_ADC_SENSOR   1

Definition at line 1148 of file board.h.

#define USE_BARO_BOARD   1

Baro.

Apparently needed for backwards compatibility with the ancient onboard baro boards

Definition at line 1424 of file board.h.

#define USE_LED_1   1

Definition at line 1064 of file board.h.

#define USE_LED_2   1

Definition at line 1073 of file board.h.

#define USE_LED_3   1

Definition at line 1082 of file board.h.

#define USE_LED_4   1

Definition at line 1091 of file board.h.

#define USE_LED_5   0

Definition at line 1100 of file board.h.

#define USE_PWM0   1

Definition at line 1170 of file board.h.

#define USE_PWM1   1

Definition at line 1185 of file board.h.

#define USE_PWM2   1

Definition at line 1200 of file board.h.

#define USE_PWM3   1

Definition at line 1215 of file board.h.

#define USE_PWM4   1

Definition at line 1230 of file board.h.

#define USE_PWM5   1

Definition at line 1245 of file board.h.

#define VAL_GPIOA_AFRH
Value:
(PIN_AFIO_AF(8, 0) | \
PIN_AFIO_AF(9, 0) | \
PIN_AFIO_AF(10, 1) | \
PIN_AFIO_AF(11, 10) | \
PIN_AFIO_AF(12, 10) | \
PIN_AFIO_AF(13, 0) | \
PIN_AFIO_AF(14, 0) | \
PIN_AFIO_AF(15, 0))
#define PIN_AFIO_AF(n, v)
Definition: board.h:76

Definition at line 186 of file board.h.

#define VAL_GPIOA_AFRL
Value:
(PIN_AFIO_AF(0, 2) | \
PIN_AFIO_AF(1, 2) | \
PIN_AFIO_AF(2, 7) | \
PIN_AFIO_AF(3, 7) | \
PIN_AFIO_AF(4, 5) | \
PIN_AFIO_AF(5, 5) | \
PIN_AFIO_AF(6, 5) | \
#define PIN_AFIO_AF(n, v)
Definition: board.h:76

Definition at line 178 of file board.h.

#define VAL_GPIOA_MODER
#define VAL_GPIOA_ODR
Value:

Definition at line 162 of file board.h.

#define VAL_GPIOA_OSPEEDR
Value:

Definition at line 130 of file board.h.

#define VAL_GPIOB_AFRH
Value:
(PIN_AFIO_AF(8, 9) | \
PIN_AFIO_AF(9, 9) | \
PIN_AFIO_AF(10, 4) | \
PIN_AFIO_AF(11, 4) | \
PIN_AFIO_AF(12, 0) | \
PIN_AFIO_AF(13, 5) | \
PIN_AFIO_AF(14, 5) | \
PIN_AFIO_AF(15, 5))
#define PIN_AFIO_AF(n, v)
Definition: board.h:76

Definition at line 302 of file board.h.

#define VAL_GPIOB_AFRL
Value:
(PIN_AFIO_AF(0, 0) | \
PIN_AFIO_AF(1, 0) | \
PIN_AFIO_AF(2, 0) | \
PIN_AFIO_AF(3, 0) | \
PIN_AFIO_AF(4, 0) | \
PIN_AFIO_AF(5, 0) | \
PIN_AFIO_AF(6, 7) | \
#define PIN_AFIO_AF(n, v)
Definition: board.h:76

Definition at line 294 of file board.h.

#define VAL_GPIOB_MODER
Value:

Definition at line 214 of file board.h.

#define VAL_GPIOB_ODR
Value:

Definition at line 278 of file board.h.

#define VAL_GPIOB_OSPEEDR
Value:

Definition at line 246 of file board.h.

#define VAL_GPIOC_AFRH
Value:
(PIN_AFIO_AF(8, 2) | \
PIN_AFIO_AF(9, 2) | \
PIN_AFIO_AF(10, 7) | \
PIN_AFIO_AF(11, 7) | \
PIN_AFIO_AF(12, 8) | \
PIN_AFIO_AF(13, 0) | \
PIN_AFIO_AF(14, 0) | \
PIN_AFIO_AF(15, 0))
#define PIN_AFIO_AF(n, v)
Definition: board.h:76

Definition at line 418 of file board.h.

#define VAL_GPIOC_AFRL
Value:
(PIN_AFIO_AF(0, 0) |\
PIN_AFIO_AF(1, 0) | \
PIN_AFIO_AF(2, 0) | \
PIN_AFIO_AF(3, 0) | \
PIN_AFIO_AF(4, 0) | \
PIN_AFIO_AF(5, 0) | \
PIN_AFIO_AF(6, 2) | \
#define PIN_AFIO_AF(n, v)
Definition: board.h:76

Definition at line 410 of file board.h.

#define VAL_GPIOC_MODER
Value:

Definition at line 330 of file board.h.

#define VAL_GPIOC_ODR
Value:

Definition at line 394 of file board.h.

#define VAL_GPIOC_OSPEEDR
#define VAL_GPIOD_AFRH
Value:
(PIN_AFIO_AF(8, 0) | \
PIN_AFIO_AF(9, 0) | \
PIN_AFIO_AF(10, 0) | \
PIN_AFIO_AF(11, 0) | \
PIN_AFIO_AF(12, 0) | \
PIN_AFIO_AF(13, 0) | \
PIN_AFIO_AF(14, 0) | \
PIN_AFIO_AF(15, 0))
#define PIN_AFIO_AF(n, v)
Definition: board.h:76

Definition at line 534 of file board.h.

#define VAL_GPIOD_AFRL
Value:
(PIN_AFIO_AF(0, 0) | \
PIN_AFIO_AF(1, 0) | \
PIN_AFIO_AF(2, 8) | \
PIN_AFIO_AF(3, 0) | \
PIN_AFIO_AF(4, 0) | \
PIN_AFIO_AF(5, 0) | \
PIN_AFIO_AF(6, 0) | \
#define PIN_AFIO_AF(n, v)
Definition: board.h:76

Definition at line 526 of file board.h.

#define VAL_GPIOD_MODER
Value:

Definition at line 446 of file board.h.

#define VAL_GPIOD_ODR
Value:

Definition at line 510 of file board.h.

#define VAL_GPIOD_OSPEEDR
#define VAL_GPIOE_AFRH
Value:
(PIN_AFIO_AF(8, 0) | \
PIN_AFIO_AF(9, 0) | \
PIN_AFIO_AF(10, 0) | \
PIN_AFIO_AF(11, 0) | \
PIN_AFIO_AF(12, 0) | \
PIN_AFIO_AF(13, 0) | \
PIN_AFIO_AF(14, 0) | \
PIN_AFIO_AF(15, 0))
#define PIN_AFIO_AF(n, v)
Definition: board.h:76

Definition at line 635 of file board.h.

#define VAL_GPIOE_AFRL
Value:
(PIN_AFIO_AF(0, 0) | \
PIN_AFIO_AF(1, 0) | \
PIN_AFIO_AF(2, 0) | \
PIN_AFIO_AF(3, 0) | \
PIN_AFIO_AF(4, 0) | \
PIN_AFIO_AF(5, 0) | \
PIN_AFIO_AF(6, 0) | \
#define PIN_AFIO_AF(n, v)
Definition: board.h:76

Definition at line 627 of file board.h.

#define VAL_GPIOE_MODER
#define VAL_GPIOE_ODR
Value:

Definition at line 611 of file board.h.

#define VAL_GPIOE_OSPEEDR
#define VAL_GPIOF_AFRH
Value:
(PIN_AFIO_AF(8, 0) | \
PIN_AFIO_AF(9, 0) | \
PIN_AFIO_AF(10, 0) | \
PIN_AFIO_AF(11, 0) | \
PIN_AFIO_AF(12, 0) | \
PIN_AFIO_AF(13, 0) | \
PIN_AFIO_AF(14, 0) | \
PIN_AFIO_AF(15, 0))
#define PIN_AFIO_AF(n, v)
Definition: board.h:76

Definition at line 737 of file board.h.

#define VAL_GPIOF_AFRL
Value:
(PIN_AFIO_AF(0, 0) | \
PIN_AFIO_AF(1, 0) | \
PIN_AFIO_AF(2, 0) | \
PIN_AFIO_AF(3, 0) | \
PIN_AFIO_AF(4, 0) | \
PIN_AFIO_AF(5, 0) | \
PIN_AFIO_AF(6, 0) | \
#define PIN_AFIO_AF(n, v)
Definition: board.h:76

Definition at line 729 of file board.h.

#define VAL_GPIOF_MODER
#define VAL_GPIOF_ODR
Value:

Definition at line 713 of file board.h.

#define VAL_GPIOF_OSPEEDR
#define VAL_GPIOG_AFRH
Value:
(PIN_AFIO_AF(8, 0) | \
PIN_AFIO_AF(9, 0) | \
PIN_AFIO_AF(10, 0) | \
PIN_AFIO_AF(11, 0) | \
PIN_AFIO_AF(12, 0) | \
PIN_AFIO_AF(13, 0) | \
PIN_AFIO_AF(14, 0) | \
PIN_AFIO_AF(15, 0))
#define PIN_AFIO_AF(n, v)
Definition: board.h:76

Definition at line 839 of file board.h.

#define VAL_GPIOG_AFRL
Value:
(PIN_AFIO_AF(0, 0) | \
PIN_AFIO_AF(1, 0) | \
PIN_AFIO_AF(2, 0) | \
PIN_AFIO_AF(3, 0) | \
PIN_AFIO_AF(4, 0) | \
PIN_AFIO_AF(5, 0) | \
PIN_AFIO_AF(6, 0) | \
#define PIN_AFIO_AF(n, v)
Definition: board.h:76

Definition at line 831 of file board.h.

#define VAL_GPIOG_MODER
#define VAL_GPIOG_ODR
Value:

Definition at line 815 of file board.h.

#define VAL_GPIOG_OSPEEDR
#define VAL_GPIOH_AFRH
Value:
(PIN_AFIO_AF(8, 0) | \
PIN_AFIO_AF(9, 0) | \
PIN_AFIO_AF(10, 0) | \
PIN_AFIO_AF(11, 0) | \
PIN_AFIO_AF(12, 0) | \
PIN_AFIO_AF(13, 0) | \
PIN_AFIO_AF(14, 0) | \
PIN_AFIO_AF(15, 0))
#define PIN_AFIO_AF(n, v)
Definition: board.h:76

Definition at line 941 of file board.h.

#define VAL_GPIOH_AFRL
Value:
(PIN_AFIO_AF(0, 0) | \
PIN_AFIO_AF(1, 0) | \
PIN_AFIO_AF(2, 0) | \
PIN_AFIO_AF(3, 0) | \
PIN_AFIO_AF(4, 0) | \
PIN_AFIO_AF(5, 0) | \
PIN_AFIO_AF(6, 0) | \
#define PIN_AFIO_AF(n, v)
Definition: board.h:76

Definition at line 933 of file board.h.

#define VAL_GPIOH_MODER
#define VAL_GPIOH_ODR
Value:

Definition at line 917 of file board.h.

#define VAL_GPIOH_OSPEEDR
#define VAL_GPIOI_AFRH
Value:
(PIN_AFIO_AF(8, 0) | \
PIN_AFIO_AF(9, 0) | \
PIN_AFIO_AF(10, 0) | \
PIN_AFIO_AF(11, 0) | \
PIN_AFIO_AF(12, 0) | \
PIN_AFIO_AF(13, 0) | \
PIN_AFIO_AF(14, 0) | \
PIN_AFIO_AF(15, 0))
#define PIN_AFIO_AF(n, v)
Definition: board.h:76

Definition at line 1043 of file board.h.

#define VAL_GPIOI_AFRL
Value:
(PIN_AFIO_AF(0, 0) | \
PIN_AFIO_AF(1, 0) | \
PIN_AFIO_AF(2, 0) | \
PIN_AFIO_AF(3, 0) | \
PIN_AFIO_AF(4, 0) | \
PIN_AFIO_AF(5, 0) | \
PIN_AFIO_AF(6, 0) | \
#define PIN_AFIO_AF(n, v)
Definition: board.h:76

Definition at line 1035 of file board.h.

#define VAL_GPIOI_MODER
#define VAL_GPIOI_ODR
Value:

Definition at line 1019 of file board.h.

#define VAL_GPIOI_OSPEEDR

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.

Definition at line 261 of file board.c.