Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
board.h File Reference

Go to the source code of this file.

Macros

#define BOARD_PX4FMU_v2
 
#define BOARD_NAME   "Pixhawk PX4 FMU v 2.4"
 
#define STM32_LSECLK   0
 
#define STM32_HSECLK   24000000
 
#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   0x00000000
 
#define VAL_GPIOF_OTYPER   0x00000000
 
#define VAL_GPIOF_OSPEEDR   0x00000000
 
#define VAL_GPIOF_PUPDR   0x55555555
 
#define VAL_GPIOF_ODR   0xFFFFFFFF
 
#define VAL_GPIOF_AFRL   0x00000000
 
#define VAL_GPIOF_AFRH   0x00000000
 
#define VAL_GPIOG_MODER   0x00000000
 
#define VAL_GPIOG_OTYPER   0x00000000
 
#define VAL_GPIOG_OSPEEDR   0x00000000
 
#define VAL_GPIOG_PUPDR   0x55555555
 
#define VAL_GPIOG_ODR   0xFFFFFFFF
 
#define VAL_GPIOG_AFRL   0x00000000
 
#define VAL_GPIOG_AFRH   0x00000000
 
#define VAL_GPIOH_MODER   0x00000000
 
#define VAL_GPIOH_OTYPER   0x00000000
 
#define VAL_GPIOH_OSPEEDR   0x00000000
 
#define VAL_GPIOH_PUPDR   0x55555555
 
#define VAL_GPIOH_ODR   0xFFFFFFFF
 
#define VAL_GPIOH_AFRL   0x00000000
 
#define VAL_GPIOH_AFRH   0x00000000
 
#define VAL_GPIOI_MODER   0x00000000
 
#define VAL_GPIOI_OTYPER   0x00000000
 
#define VAL_GPIOI_OSPEEDR   0x00000000
 
#define VAL_GPIOI_PUPDR   0x55555555
 
#define VAL_GPIOI_ODR   0xFFFFFFFF
 
#define VAL_GPIOI_AFRL   0x00000000
 
#define VAL_GPIOI_AFRH   0x00000000
 
#define AHB_CLK   STM32_HCLK
 
#define USE_LED_1   1
 
#define LED_1_GPIO   GPIOE
 
#define LED_1_GPIO_PIN   GPIO12
 
#define LED_1_GPIO_ON   gpio_clear
 
#define LED_1_GPIO_OFF   gpio_set
 
#define LED_1_AFIO_REMAP   ((void)0)
 
#define USE_ADC_4   1
 
#define AD1_4_CHANNEL   ADC_CHANNEL_IN4
 
#define ADC_4   AD1_4
 
#define ADC_4_GPIO_PORT   GPIOA
 
#define ADC_4_GPIO_PIN   GPIO4
 
#define ADC_CHANNEL_VSUPPLY   ADC_4
 
#define DefaultVoltageOfAdc(adc)   (0.006185*adc)
 
#define USE_PWM0   1
 
#define PWM_SERVO_0   0
 
#define PWM_SERVO_0_GPIO   GPIOB
 
#define PWM_SERVO_0_PIN   GPIO0
 
#define PWM_SERVO_0_AF   GPIO_AF2
 
#define PWM_SERVO_0_DRIVER   PWMD3
 
#define PWM_SERVO_0_CHANNEL   2
 
#define PWM_SERVO_0_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH
 
#define USE_PWM1   1
 
#define PWM_SERVO_1   1
 
#define PWM_SERVO_1_GPIO   GPIOA
 
#define PWM_SERVO_1_PIN   GPIO2
 
#define PWM_SERVO_1_AF   GPIO_AF1
 
#define PWM_SERVO_1_DRIVER   PWMD2
 
#define PWM_SERVO_1_CHANNEL   2
 
#define PWM_SERVO_1_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH
 
#define USE_PWM2   1
 
#define PWM_SERVO_2   2
 
#define PWM_SERVO_2_GPIO   GPIOB
 
#define PWM_SERVO_2_PIN   GPIO5
 
#define PWM_SERVO_2_AF   GPIO_AF2
 
#define PWM_SERVO_2_DRIVER   PWMD3
 
#define PWM_SERVO_2_CHANNEL   1
 
#define PWM_SERVO_2_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH
 
#define USE_PWM3   1
 
#define PWM_SERVO_3   3
 
#define PWM_SERVO_3_GPIO   GPIOB
 
#define PWM_SERVO_3_PIN   GPIO4
 
#define PWM_SERVO_3_AF   GPIO_AF2
 
#define PWM_SERVO_3_DRIVER   PWMD3
 
#define PWM_SERVO_3_CHANNEL   0
 
#define PWM_SERVO_3_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH
 
#define USE_PWM4   1
 
#define PWM_SERVO_4   4
 
#define PWM_SERVO_4_GPIO   GPIOB
 
#define PWM_SERVO_4_PIN   GPIO3
 
#define PWM_SERVO_4_AF   GPIO_AF1
 
#define PWM_SERVO_4_DRIVER   PWMD2
 
#define PWM_SERVO_4_CHANNEL   1
 
#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   GPIO15
 
#define PWM_SERVO_5_AF   GPIO_AF1
 
#define PWM_SERVO_5_DRIVER   PWMD2
 
#define PWM_SERVO_5_CHANNEL   0
 
#define PWM_SERVO_5_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH
 
#define PWM_SERVO_6_ACTIVE   PWM_OUTPUT_DISABLED
 
#define PWM_CONF_TIM2   1
 
#define PWM_CONF2_DEF
 
#define PWM_CONF_TIM3   1
 
#define PWM_CONF3_DEF
 
#define RC_PPM_TICKS_PER_USEC   2
 PPM radio defines TODO. More...
 
#define PPM_TIMER_FREQUENCY   2000000
 
#define PPM_CHANNEL   ICU_CHANNEL_1
 
#define PPM_TIMER   ICUD1
 
#define PWM_INPUT1_ICU   ICUD1
 
#define PWM_INPUT1_CHANNEL   ICU_CHANNEL_1
 
#define PWM_INPUT1_GPIO_PORT   GPIOA
 
#define PWM_INPUT1_GPIO_PIN   GPIO8
 
#define PWM_INPUT1_GPIO_AF   GPIO_AF1
 
#define PWM_INPUT2_ICU   ICUD2
 
#define PWM_INPUT2_CHANNEL   ICU_CHANNEL_1
 
#define PWM_INPUT2_GPIO_PORT   GPIOA
 
#define PWM_INPUT2_GPIO_PIN   GPIO2
 
#define PWM_INPUT2_GPIO_AF   GPIO_AF3
 
#define I2C1_CLOCK_SPEED   400000
 I2C defines TODO: getting DMA failiure -> check timers and DMA mapping. More...
 
#define I2C1_DUTY_CYCLE   FAST_DUTY_CYCLE_2
 
#define I2C1_CFG_DEF
 
#define I2C2_CLOCK_SPEED   400000
 
#define I2C2_DUTY_CYCLE   FAST_DUTY_CYCLE_2
 
#define I2C2_CFG_DEF
 
#define SPI_SELECT_SLAVE0_PORT   GPIOC
 SPI Config SPI1 si for sensors SPI2 is for FRAM SPI4 is external. More...
 
#define SPI_SELECT_SLAVE0_PIN   GPIO13
 
#define SPI_SELECT_SLAVE1_PORT   GPIOC
 
#define SPI_SELECT_SLAVE1_PIN   GPIO15
 
#define SPI_SELECT_SLAVE3_PORT   GPIOD
 
#define SPI_SELECT_SLAVE3_PIN   GPIO7
 
#define USE_BARO_BOARD   1
 Baro. More...
 
#define GPIOA_OTG_FS_VBUS   9
 Kludge for SD_LOG. More...
 
#define GPIOD_SDIO_CMD   2
 
#define GPIOC_SDIO_D0   8
 
#define GPIOC_SDIO_D1   9
 
#define GPIOC_SDIO_D2   10
 
#define GPIOC_SDIO_D3   11
 
#define GPIOC_SDIO_CK   12
 
#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

◆ ActuatorDefaultSet

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

Definition at line 1024 of file board.h.

◆ ActuatorsDefaultCommit

#define ActuatorsDefaultCommit ( )    ActuatorsPwmCommit()

Definition at line 1026 of file board.h.

◆ ActuatorsDefaultInit

#define ActuatorsDefaultInit ( )    ActuatorsPwmInit()

Definition at line 1025 of file board.h.

◆ AD1_4_CHANNEL

#define AD1_4_CHANNEL   ADC_CHANNEL_IN4

Definition at line 757 of file board.h.

◆ ADC_4

#define ADC_4   AD1_4

Definition at line 758 of file board.h.

◆ ADC_4_GPIO_PIN

#define ADC_4_GPIO_PIN   GPIO4

Definition at line 760 of file board.h.

◆ ADC_4_GPIO_PORT

#define ADC_4_GPIO_PORT   GPIOA

Definition at line 759 of file board.h.

◆ ADC_CHANNEL_VSUPPLY

#define ADC_CHANNEL_VSUPPLY   ADC_4

Definition at line 765 of file board.h.

◆ AHB_CLK

#define AHB_CLK   STM32_HCLK

Definition at line 710 of file board.h.

◆ BOARD_NAME

#define BOARD_NAME   "Pixhawk PX4 FMU v 2.4"

Definition at line 29 of file board.h.

◆ BOARD_PX4FMU_v2

#define BOARD_PX4FMU_v2

Definition at line 28 of file board.h.

◆ DEFAULT_ACTUATORS

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

Definition at line 1023 of file board.h.

◆ DefaultVoltageOfAdc

#define DefaultVoltageOfAdc (   adc)    (0.006185*adc)

Definition at line 768 of file board.h.

◆ GPIOA_OTG_FS_VBUS

#define GPIOA_OTG_FS_VBUS   9

Kludge for SD_LOG.

Definition at line 1010 of file board.h.

◆ GPIOC_SDIO_CK

#define GPIOC_SDIO_CK   12

Definition at line 1017 of file board.h.

◆ GPIOC_SDIO_D0

#define GPIOC_SDIO_D0   8

Definition at line 1013 of file board.h.

◆ GPIOC_SDIO_D1

#define GPIOC_SDIO_D1   9

Definition at line 1014 of file board.h.

◆ GPIOC_SDIO_D2

#define GPIOC_SDIO_D2   10

Definition at line 1015 of file board.h.

◆ GPIOC_SDIO_D3

#define GPIOC_SDIO_D3   11

Definition at line 1016 of file board.h.

◆ GPIOD_SDIO_CMD

#define GPIOD_SDIO_CMD   2

Definition at line 1012 of file board.h.

◆ I2C1_CFG_DEF

#define I2C1_CFG_DEF
Value:
{ \
OPMODE_I2C, \
I2C1_CLOCK_SPEED, \
I2C1_DUTY_CYCLE, \
}

Definition at line 957 of file board.h.

◆ I2C1_CLOCK_SPEED

#define I2C1_CLOCK_SPEED   400000

I2C defines TODO: getting DMA failiure -> check timers and DMA mapping.

Definition at line 948 of file board.h.

◆ I2C1_DUTY_CYCLE

#define I2C1_DUTY_CYCLE   FAST_DUTY_CYCLE_2

Definition at line 951 of file board.h.

◆ I2C2_CFG_DEF

#define I2C2_CFG_DEF
Value:
{ \
OPMODE_I2C, \
I2C2_CLOCK_SPEED, \
I2C2_DUTY_CYCLE, \
}

Definition at line 973 of file board.h.

◆ I2C2_CLOCK_SPEED

#define I2C2_CLOCK_SPEED   400000

Definition at line 964 of file board.h.

◆ I2C2_DUTY_CYCLE

#define I2C2_DUTY_CYCLE   FAST_DUTY_CYCLE_2

Definition at line 967 of file board.h.

◆ LED_1_AFIO_REMAP

#define LED_1_AFIO_REMAP   ((void)0)

Definition at line 723 of file board.h.

◆ LED_1_GPIO

#define LED_1_GPIO   GPIOE

Definition at line 719 of file board.h.

◆ LED_1_GPIO_OFF

#define LED_1_GPIO_OFF   gpio_set

Definition at line 722 of file board.h.

◆ LED_1_GPIO_ON

#define LED_1_GPIO_ON   gpio_clear

Definition at line 721 of file board.h.

◆ LED_1_GPIO_PIN

#define LED_1_GPIO_PIN   GPIO12

Definition at line 720 of file board.h.

◆ PIN_AFIO_AF

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

Definition at line 75 of file board.h.

◆ PIN_MODE_ALTERNATE

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

Definition at line 62 of file board.h.

◆ PIN_MODE_ANALOG

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

Definition at line 63 of file board.h.

◆ PIN_MODE_INPUT

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

Definition at line 60 of file board.h.

◆ PIN_MODE_OUTPUT

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

Definition at line 61 of file board.h.

◆ PIN_ODR_HIGH

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

Definition at line 65 of file board.h.

◆ PIN_ODR_LOW

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

Definition at line 64 of file board.h.

◆ PIN_OSPEED_100M

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

Definition at line 71 of file board.h.

◆ PIN_OSPEED_25M

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

Definition at line 69 of file board.h.

◆ PIN_OSPEED_2M

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

Definition at line 68 of file board.h.

◆ PIN_OSPEED_50M

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

Definition at line 70 of file board.h.

◆ PIN_OTYPE_OPENDRAIN

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

Definition at line 67 of file board.h.

◆ PIN_OTYPE_PUSHPULL

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

Definition at line 66 of file board.h.

◆ PIN_PUPDR_FLOATING

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

Definition at line 72 of file board.h.

◆ PIN_PUPDR_PULLDOWN

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

Definition at line 74 of file board.h.

◆ PIN_PUPDR_PULLUP

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

Definition at line 73 of file board.h.

◆ PPM_CHANNEL

#define PPM_CHANNEL   ICU_CHANNEL_1

Definition at line 919 of file board.h.

◆ PPM_TIMER

#define PPM_TIMER   ICUD1

Definition at line 920 of file board.h.

◆ PPM_TIMER_FREQUENCY

#define PPM_TIMER_FREQUENCY   2000000

Definition at line 918 of file board.h.

◆ PWM_CONF2_DEF

#define PWM_CONF2_DEF
Value:
{ \
PWM_FREQUENCY, \
PWM_FREQUENCY/TIM2_SERVO_HZ, \
NULL, \
{ \
{ PWM_SERVO_5_ACTIVE, NULL }, \
{ PWM_SERVO_4_ACTIVE, NULL }, \
{ PWM_SERVO_1_ACTIVE, NULL }, \
{ PWM_OUTPUT_DISABLED, NULL }, \
}, \
0, \
0 \
}

Definition at line 881 of file board.h.

◆ PWM_CONF3_DEF

#define PWM_CONF3_DEF
Value:
{ \
PWM_FREQUENCY, \
PWM_FREQUENCY/TIM3_SERVO_HZ, \
NULL, \
{ \
{ PWM_SERVO_3_ACTIVE, NULL }, \
{ PWM_SERVO_2_ACTIVE, NULL }, \
{ PWM_SERVO_0_ACTIVE, NULL }, \
{ PWM_SERVO_6_ACTIVE, NULL }, \
}, \
0, \
0 \
}

Definition at line 900 of file board.h.

◆ PWM_CONF_TIM2

#define PWM_CONF_TIM2   1

Definition at line 879 of file board.h.

◆ PWM_CONF_TIM3

#define PWM_CONF_TIM3   1

Definition at line 898 of file board.h.

◆ PWM_INPUT1_CHANNEL

#define PWM_INPUT1_CHANNEL   ICU_CHANNEL_1

Definition at line 927 of file board.h.

◆ PWM_INPUT1_GPIO_AF

#define PWM_INPUT1_GPIO_AF   GPIO_AF1

Definition at line 931 of file board.h.

◆ PWM_INPUT1_GPIO_PIN

#define PWM_INPUT1_GPIO_PIN   GPIO8

Definition at line 930 of file board.h.

◆ PWM_INPUT1_GPIO_PORT

#define PWM_INPUT1_GPIO_PORT   GPIOA

Definition at line 929 of file board.h.

◆ PWM_INPUT1_ICU

#define PWM_INPUT1_ICU   ICUD1

Definition at line 926 of file board.h.

◆ PWM_INPUT2_CHANNEL

#define PWM_INPUT2_CHANNEL   ICU_CHANNEL_1

Definition at line 938 of file board.h.

◆ PWM_INPUT2_GPIO_AF

#define PWM_INPUT2_GPIO_AF   GPIO_AF3

Definition at line 941 of file board.h.

◆ PWM_INPUT2_GPIO_PIN

#define PWM_INPUT2_GPIO_PIN   GPIO2

Definition at line 940 of file board.h.

◆ PWM_INPUT2_GPIO_PORT

#define PWM_INPUT2_GPIO_PORT   GPIOA

Definition at line 939 of file board.h.

◆ PWM_INPUT2_ICU

#define PWM_INPUT2_ICU   ICUD2

Definition at line 937 of file board.h.

◆ PWM_SERVO_0

#define PWM_SERVO_0   0

Definition at line 777 of file board.h.

◆ PWM_SERVO_0_ACTIVE

#define PWM_SERVO_0_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH

Definition at line 783 of file board.h.

◆ PWM_SERVO_0_AF

#define PWM_SERVO_0_AF   GPIO_AF2

Definition at line 780 of file board.h.

◆ PWM_SERVO_0_CHANNEL

#define PWM_SERVO_0_CHANNEL   2

Definition at line 782 of file board.h.

◆ PWM_SERVO_0_DRIVER

#define PWM_SERVO_0_DRIVER   PWMD3

Definition at line 781 of file board.h.

◆ PWM_SERVO_0_GPIO

#define PWM_SERVO_0_GPIO   GPIOB

Definition at line 778 of file board.h.

◆ PWM_SERVO_0_PIN

#define PWM_SERVO_0_PIN   GPIO0

Definition at line 779 of file board.h.

◆ PWM_SERVO_1

#define PWM_SERVO_1   1

Definition at line 792 of file board.h.

◆ PWM_SERVO_1_ACTIVE

#define PWM_SERVO_1_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH

Definition at line 798 of file board.h.

◆ PWM_SERVO_1_AF

#define PWM_SERVO_1_AF   GPIO_AF1

Definition at line 795 of file board.h.

◆ PWM_SERVO_1_CHANNEL

#define PWM_SERVO_1_CHANNEL   2

Definition at line 797 of file board.h.

◆ PWM_SERVO_1_DRIVER

#define PWM_SERVO_1_DRIVER   PWMD2

Definition at line 796 of file board.h.

◆ PWM_SERVO_1_GPIO

#define PWM_SERVO_1_GPIO   GPIOA

Definition at line 793 of file board.h.

◆ PWM_SERVO_1_PIN

#define PWM_SERVO_1_PIN   GPIO2

Definition at line 794 of file board.h.

◆ PWM_SERVO_2

#define PWM_SERVO_2   2

Definition at line 807 of file board.h.

◆ PWM_SERVO_2_ACTIVE

#define PWM_SERVO_2_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH

Definition at line 813 of file board.h.

◆ PWM_SERVO_2_AF

#define PWM_SERVO_2_AF   GPIO_AF2

Definition at line 810 of file board.h.

◆ PWM_SERVO_2_CHANNEL

#define PWM_SERVO_2_CHANNEL   1

Definition at line 812 of file board.h.

◆ PWM_SERVO_2_DRIVER

#define PWM_SERVO_2_DRIVER   PWMD3

Definition at line 811 of file board.h.

◆ PWM_SERVO_2_GPIO

#define PWM_SERVO_2_GPIO   GPIOB

Definition at line 808 of file board.h.

◆ PWM_SERVO_2_PIN

#define PWM_SERVO_2_PIN   GPIO5

Definition at line 809 of file board.h.

◆ PWM_SERVO_3

#define PWM_SERVO_3   3

Definition at line 822 of file board.h.

◆ PWM_SERVO_3_ACTIVE

#define PWM_SERVO_3_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH

Definition at line 828 of file board.h.

◆ PWM_SERVO_3_AF

#define PWM_SERVO_3_AF   GPIO_AF2

Definition at line 825 of file board.h.

◆ PWM_SERVO_3_CHANNEL

#define PWM_SERVO_3_CHANNEL   0

Definition at line 827 of file board.h.

◆ PWM_SERVO_3_DRIVER

#define PWM_SERVO_3_DRIVER   PWMD3

Definition at line 826 of file board.h.

◆ PWM_SERVO_3_GPIO

#define PWM_SERVO_3_GPIO   GPIOB

Definition at line 823 of file board.h.

◆ PWM_SERVO_3_PIN

#define PWM_SERVO_3_PIN   GPIO4

Definition at line 824 of file board.h.

◆ PWM_SERVO_4

#define PWM_SERVO_4   4

Definition at line 837 of file board.h.

◆ PWM_SERVO_4_ACTIVE

#define PWM_SERVO_4_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH

Definition at line 843 of file board.h.

◆ PWM_SERVO_4_AF

#define PWM_SERVO_4_AF   GPIO_AF1

Definition at line 840 of file board.h.

◆ PWM_SERVO_4_CHANNEL

#define PWM_SERVO_4_CHANNEL   1

Definition at line 842 of file board.h.

◆ PWM_SERVO_4_DRIVER

#define PWM_SERVO_4_DRIVER   PWMD2

Definition at line 841 of file board.h.

◆ PWM_SERVO_4_GPIO

#define PWM_SERVO_4_GPIO   GPIOB

Definition at line 838 of file board.h.

◆ PWM_SERVO_4_PIN

#define PWM_SERVO_4_PIN   GPIO3

Definition at line 839 of file board.h.

◆ PWM_SERVO_5

#define PWM_SERVO_5   5

Definition at line 852 of file board.h.

◆ PWM_SERVO_5_ACTIVE

#define PWM_SERVO_5_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH

Definition at line 858 of file board.h.

◆ PWM_SERVO_5_AF

#define PWM_SERVO_5_AF   GPIO_AF1

Definition at line 855 of file board.h.

◆ PWM_SERVO_5_CHANNEL

#define PWM_SERVO_5_CHANNEL   0

Definition at line 857 of file board.h.

◆ PWM_SERVO_5_DRIVER

#define PWM_SERVO_5_DRIVER   PWMD2

Definition at line 856 of file board.h.

◆ PWM_SERVO_5_GPIO

#define PWM_SERVO_5_GPIO   GPIOA

Definition at line 853 of file board.h.

◆ PWM_SERVO_5_PIN

#define PWM_SERVO_5_PIN   GPIO15

Definition at line 854 of file board.h.

◆ PWM_SERVO_6_ACTIVE

#define PWM_SERVO_6_ACTIVE   PWM_OUTPUT_DISABLED

Definition at line 872 of file board.h.

◆ RC_PPM_TICKS_PER_USEC

#define RC_PPM_TICKS_PER_USEC   2

PPM radio defines TODO.

Definition at line 917 of file board.h.

◆ SPI_SELECT_SLAVE0_PIN

#define SPI_SELECT_SLAVE0_PIN   GPIO13

Definition at line 988 of file board.h.

◆ SPI_SELECT_SLAVE0_PORT

#define SPI_SELECT_SLAVE0_PORT   GPIOC

SPI Config SPI1 si for sensors SPI2 is for FRAM SPI4 is external.

Definition at line 987 of file board.h.

◆ SPI_SELECT_SLAVE1_PIN

#define SPI_SELECT_SLAVE1_PIN   GPIO15

Definition at line 991 of file board.h.

◆ SPI_SELECT_SLAVE1_PORT

#define SPI_SELECT_SLAVE1_PORT   GPIOC

Definition at line 990 of file board.h.

◆ SPI_SELECT_SLAVE3_PIN

#define SPI_SELECT_SLAVE3_PIN   GPIO7

Definition at line 994 of file board.h.

◆ SPI_SELECT_SLAVE3_PORT

#define SPI_SELECT_SLAVE3_PORT   GPIOD

Definition at line 993 of file board.h.

◆ STM32_HSECLK

#define STM32_HSECLK   24000000

Definition at line 40 of file board.h.

◆ STM32_LSECLK

#define STM32_LSECLK   0

Definition at line 36 of file board.h.

◆ STM32_VDD

#define STM32_VDD   330

Definition at line 48 of file board.h.

◆ STM32F407xx

#define STM32F407xx

Definition at line 53 of file board.h.

◆ USE_ADC_4

#define USE_ADC_4   1

Definition at line 754 of file board.h.

◆ USE_BARO_BOARD

#define USE_BARO_BOARD   1

Baro.

Apparently needed for backwards compatibility with the ancient onboard baro boards

Definition at line 1003 of file board.h.

◆ USE_LED_1

#define USE_LED_1   1

Definition at line 717 of file board.h.

◆ USE_PWM0

#define USE_PWM0   1

Definition at line 774 of file board.h.

◆ USE_PWM1

#define USE_PWM1   1

Definition at line 789 of file board.h.

◆ USE_PWM2

#define USE_PWM2   1

Definition at line 804 of file board.h.

◆ USE_PWM3

#define USE_PWM3   1

Definition at line 819 of file board.h.

◆ USE_PWM4

#define USE_PWM4   1

Definition at line 834 of file board.h.

◆ USE_PWM5

#define USE_PWM5   1

Definition at line 849 of file board.h.

◆ VAL_GPIOA_AFRH

#define VAL_GPIOA_AFRH
Value:
(PIN_AFIO_AF(8, 0) | \
PIN_AFIO_AF(9, 0) | \
PIN_AFIO_AF(10, 7) | \
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))

Definition at line 185 of file board.h.

◆ VAL_GPIOA_AFRL

#define VAL_GPIOA_AFRL
Value:
(PIN_AFIO_AF(0, 8) | \
PIN_AFIO_AF(1, 8) | \
PIN_AFIO_AF(2, 0) | \
PIN_AFIO_AF(3, 0) | \
PIN_AFIO_AF(4, 0) | \
PIN_AFIO_AF(5, 5) | \
PIN_AFIO_AF(6, 5) | \
PIN_AFIO_AF(7, 5))

Definition at line 177 of file board.h.

◆ VAL_GPIOA_MODER

#define VAL_GPIOA_MODER
Value:
PIN_MODE_ALTERNATE(1) | \
PIN_MODE_ANALOG(2) | \
PIN_MODE_ANALOG(3) | \
PIN_MODE_ANALOG(4) | \
PIN_MODE_ALTERNATE(5) | \
PIN_MODE_ALTERNATE(6) | \
PIN_MODE_ALTERNATE(7) | \
PIN_MODE_INPUT(8) | \
PIN_MODE_INPUT(9) | \
PIN_MODE_ALTERNATE(10) | \
PIN_MODE_ALTERNATE(11) | \
PIN_MODE_ALTERNATE(12) | \
PIN_MODE_ALTERNATE(13) | \
PIN_MODE_ALTERNATE(14) | \
PIN_MODE_OUTPUT(15))

Definition at line 97 of file board.h.

◆ VAL_GPIOA_ODR

#define VAL_GPIOA_ODR
Value:
(PIN_ODR_HIGH(0) | \
PIN_ODR_HIGH(1) | \
PIN_ODR_HIGH(2) | \
PIN_ODR_HIGH(3) | \
PIN_ODR_HIGH(4) | \
PIN_ODR_HIGH(5) | \
PIN_ODR_HIGH(6) | \
PIN_ODR_HIGH(7) | \
PIN_ODR_HIGH(8) | \
PIN_ODR_HIGH(9) | \
PIN_ODR_HIGH(10) | \
PIN_ODR_HIGH(11) | \
PIN_ODR_HIGH(12) | \
PIN_ODR_HIGH(13) | \
PIN_ODR_HIGH(14) | \
PIN_ODR_HIGH(15))

Definition at line 161 of file board.h.

◆ VAL_GPIOA_OSPEEDR

#define VAL_GPIOA_OSPEEDR
Value:
PIN_OSPEED_100M(1) | \
PIN_OSPEED_100M(2) | \
PIN_OSPEED_100M(3) | \
PIN_OSPEED_100M(4) | \
PIN_OSPEED_50M(5) | \
PIN_OSPEED_50M(6) | \
PIN_OSPEED_50M(7) | \
PIN_OSPEED_100M(8) | \
PIN_OSPEED_100M(9) | \
PIN_OSPEED_100M(10) | \
PIN_OSPEED_100M(11) | \
PIN_OSPEED_100M(12) | \
PIN_OSPEED_100M(13) | \
PIN_OSPEED_100M(14) | \
PIN_OSPEED_100M(15))

Definition at line 129 of file board.h.

◆ VAL_GPIOA_OTYPER

#define VAL_GPIOA_OTYPER
Value:
PIN_OTYPE_PUSHPULL(1) | \
PIN_OTYPE_PUSHPULL(2) | \
PIN_OTYPE_PUSHPULL(3) | \
PIN_OTYPE_PUSHPULL(4) | \
PIN_OTYPE_PUSHPULL(5) | \
PIN_OTYPE_PUSHPULL(6) | \
PIN_OTYPE_PUSHPULL(7) | \
PIN_OTYPE_PUSHPULL(8) | \
PIN_OTYPE_PUSHPULL(9) | \
PIN_OTYPE_PUSHPULL(10) | \
PIN_OTYPE_PUSHPULL(11) | \
PIN_OTYPE_PUSHPULL(12) | \
PIN_OTYPE_PUSHPULL(13) | \
PIN_OTYPE_PUSHPULL(14) | \
PIN_OTYPE_OPENDRAIN(15))

Definition at line 113 of file board.h.

◆ VAL_GPIOA_PUPDR

#define VAL_GPIOA_PUPDR
Value:
PIN_PUPDR_FLOATING(1) | \
PIN_PUPDR_FLOATING(2) | \
PIN_PUPDR_FLOATING(3) | \
PIN_PUPDR_FLOATING(4) | \
PIN_PUPDR_FLOATING(5) | \
PIN_PUPDR_FLOATING(6) | \
PIN_PUPDR_FLOATING(7) | \
PIN_PUPDR_FLOATING(8) | \
PIN_PUPDR_FLOATING(9) | \
PIN_PUPDR_FLOATING(10) | \
PIN_PUPDR_FLOATING(11) | \
PIN_PUPDR_FLOATING(12) | \
PIN_PUPDR_FLOATING(13) | \
PIN_PUPDR_FLOATING(14) | \
PIN_PUPDR_FLOATING(15))

Definition at line 145 of file board.h.

◆ VAL_GPIOB_AFRH

#define VAL_GPIOB_AFRH
Value:
(PIN_AFIO_AF(8, 4) | \
PIN_AFIO_AF(9, 4) | \
PIN_AFIO_AF(10, 4) | \
PIN_AFIO_AF(11, 4) | \
PIN_AFIO_AF(12, 9) | \
PIN_AFIO_AF(13, 5) | \
PIN_AFIO_AF(14, 5) | \
PIN_AFIO_AF(15, 5))

Definition at line 301 of file board.h.

◆ VAL_GPIOB_AFRL

#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, 9) | \
PIN_AFIO_AF(7, 0))

Definition at line 293 of file board.h.

◆ VAL_GPIOB_MODER

#define VAL_GPIOB_MODER
Value:
PIN_MODE_INPUT(1) | \
PIN_MODE_INPUT(2) | \
PIN_MODE_ALTERNATE(3) | \
PIN_MODE_INPUT(4) | \
PIN_MODE_INPUT(5) | \
PIN_MODE_ALTERNATE(6) | \
PIN_MODE_INPUT(7) | \
PIN_MODE_ALTERNATE(8) | \
PIN_MODE_ALTERNATE(9) | \
PIN_MODE_ALTERNATE(10) | \
PIN_MODE_ALTERNATE(11) | \
PIN_MODE_ALTERNATE(12) | \
PIN_MODE_ALTERNATE(13) | \
PIN_MODE_ALTERNATE(14) | \
PIN_MODE_ALTERNATE(15))

Definition at line 213 of file board.h.

◆ VAL_GPIOB_ODR

#define VAL_GPIOB_ODR
Value:
(PIN_ODR_HIGH(0) | \
PIN_ODR_HIGH(1) | \
PIN_ODR_HIGH(2) | \
PIN_ODR_HIGH(3) | \
PIN_ODR_HIGH(4) | \
PIN_ODR_HIGH(5) | \
PIN_ODR_HIGH(6) | \
PIN_ODR_HIGH(7) | \
PIN_ODR_HIGH(8) | \
PIN_ODR_HIGH(9) | \
PIN_ODR_HIGH(10) | \
PIN_ODR_HIGH(11) | \
PIN_ODR_HIGH(12) | \
PIN_ODR_HIGH(13) | \
PIN_ODR_HIGH(14) | \
PIN_ODR_HIGH(15))

Definition at line 277 of file board.h.

◆ VAL_GPIOB_OSPEEDR

#define VAL_GPIOB_OSPEEDR
Value:
PIN_OSPEED_50M(1) | \
PIN_OSPEED_50M(2) | \
PIN_OSPEED_100M(3) | \
PIN_OSPEED_50M(4) | \
PIN_OSPEED_50M(5) | \
PIN_OSPEED_50M(6) | \
PIN_OSPEED_50M(7) | \
PIN_OSPEED_50M(8) | \
PIN_OSPEED_50M(9) | \
PIN_OSPEED_50M(10) | \
PIN_OSPEED_50M(11) | \
PIN_OSPEED_50M(12) | \
PIN_OSPEED_50M(13) | \
PIN_OSPEED_50M(14) | \
PIN_OSPEED_50M(15))

Definition at line 245 of file board.h.

◆ VAL_GPIOB_OTYPER

#define VAL_GPIOB_OTYPER
Value:
PIN_OTYPE_PUSHPULL(1) | \
PIN_OTYPE_PUSHPULL(2) | \
PIN_OTYPE_PUSHPULL(3) | \
PIN_OTYPE_PUSHPULL(4) | \
PIN_OTYPE_PUSHPULL(5) | \
PIN_OTYPE_PUSHPULL(6) | \
PIN_OTYPE_PUSHPULL(7) | \
PIN_OTYPE_OPENDRAIN(8) | \
PIN_OTYPE_OPENDRAIN(9) | \
PIN_OTYPE_OPENDRAIN(10) | \
PIN_OTYPE_OPENDRAIN(11) | \
PIN_OTYPE_PUSHPULL(12) | \
PIN_OTYPE_PUSHPULL(13) | \
PIN_OTYPE_PUSHPULL(14) | \
PIN_OTYPE_PUSHPULL(15))

Definition at line 229 of file board.h.

◆ VAL_GPIOB_PUPDR

#define VAL_GPIOB_PUPDR
Value:
PIN_PUPDR_FLOATING(1) | \
PIN_PUPDR_FLOATING(2) | \
PIN_PUPDR_FLOATING(3) | \
PIN_PUPDR_FLOATING(4) | \
PIN_PUPDR_FLOATING(5) | \
PIN_PUPDR_FLOATING(6) | \
PIN_PUPDR_FLOATING(7) | \
PIN_PUPDR_FLOATING(8) | \
PIN_PUPDR_FLOATING(9) | \
PIN_PUPDR_FLOATING(10) | \
PIN_PUPDR_FLOATING(11) | \
PIN_PUPDR_FLOATING(12) | \
PIN_PUPDR_FLOATING(13) | \
PIN_PUPDR_FLOATING(14) | \
PIN_PUPDR_FLOATING(15))

Definition at line 261 of file board.h.

◆ VAL_GPIOC_AFRH

#define VAL_GPIOC_AFRH
Value:
(PIN_AFIO_AF(8, 12) | \
PIN_AFIO_AF(9, 12) | \
PIN_AFIO_AF(10, 12) | \
PIN_AFIO_AF(11, 12) | \
PIN_AFIO_AF(12, 12) | \
PIN_AFIO_AF(13, 0) | \
PIN_AFIO_AF(14, 0) | \
PIN_AFIO_AF(15, 0))

Definition at line 417 of file board.h.

◆ VAL_GPIOC_AFRL

#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, 8) | \
PIN_AFIO_AF(7, 8))

Definition at line 409 of file board.h.

◆ VAL_GPIOC_MODER

#define VAL_GPIOC_MODER
Value:
PIN_MODE_INPUT(1) | \
PIN_MODE_OUTPUT(2) | \
PIN_MODE_INPUT(3) | \
PIN_MODE_INPUT(4) | \
PIN_MODE_INPUT(5) | \
PIN_MODE_ALTERNATE(6) | \
PIN_MODE_ALTERNATE(7) | \
PIN_MODE_ALTERNATE(8) | \
PIN_MODE_ALTERNATE(9) | \
PIN_MODE_ALTERNATE(10) | \
PIN_MODE_ALTERNATE(11) | \
PIN_MODE_ALTERNATE(12) | \
PIN_MODE_OUTPUT(13) | \
PIN_MODE_INPUT(14) | \
PIN_MODE_OUTPUT(15))

Definition at line 329 of file board.h.

◆ VAL_GPIOC_ODR

#define VAL_GPIOC_ODR
Value:
(PIN_ODR_HIGH(0) | \
PIN_ODR_HIGH(1) | \
PIN_ODR_HIGH(2) | \
PIN_ODR_HIGH(3) | \
PIN_ODR_HIGH(4) | \
PIN_ODR_HIGH(5) | \
PIN_ODR_HIGH(6) | \
PIN_ODR_HIGH(7) | \
PIN_ODR_HIGH(8) | \
PIN_ODR_HIGH(9) | \
PIN_ODR_HIGH(10) | \
PIN_ODR_HIGH(11) | \
PIN_ODR_HIGH(12) | \
PIN_ODR_HIGH(13) | \
PIN_ODR_HIGH(14) | \
PIN_ODR_HIGH(15))

Definition at line 393 of file board.h.

◆ VAL_GPIOC_OSPEEDR

#define VAL_GPIOC_OSPEEDR
Value:
PIN_OSPEED_50M(1) | \
PIN_OSPEED_50M(2) | \
PIN_OSPEED_50M(3) | \
PIN_OSPEED_50M(4) | \
PIN_OSPEED_50M(5) | \
PIN_OSPEED_50M(6) | \
PIN_OSPEED_50M(7) | \
PIN_OSPEED_50M(8) | \
PIN_OSPEED_50M(9) | \
PIN_OSPEED_50M(10) | \
PIN_OSPEED_50M(11) | \
PIN_OSPEED_50M(12) | \
PIN_OSPEED_2M(13) | \
PIN_OSPEED_50M(14) | \
PIN_OSPEED_2M(15))

Definition at line 361 of file board.h.

◆ VAL_GPIOC_OTYPER

#define VAL_GPIOC_OTYPER
Value:
PIN_OTYPE_PUSHPULL(1) | \
PIN_OTYPE_PUSHPULL(2) | \
PIN_OTYPE_PUSHPULL(3) | \
PIN_OTYPE_PUSHPULL(4) | \
PIN_OTYPE_PUSHPULL(5) | \
PIN_OTYPE_PUSHPULL(6) | \
PIN_OTYPE_PUSHPULL(7) | \
PIN_OTYPE_PUSHPULL(8) | \
PIN_OTYPE_PUSHPULL(9) | \
PIN_OTYPE_PUSHPULL(10) | \
PIN_OTYPE_PUSHPULL(11) | \
PIN_OTYPE_PUSHPULL(12) | \
PIN_OTYPE_PUSHPULL(13) | \
PIN_OTYPE_PUSHPULL(14) | \
PIN_OTYPE_PUSHPULL(15))

Definition at line 345 of file board.h.

◆ VAL_GPIOC_PUPDR

#define VAL_GPIOC_PUPDR
Value:
PIN_PUPDR_FLOATING(1) | \
PIN_PUPDR_FLOATING(2) | \
PIN_PUPDR_FLOATING(3) | \
PIN_PUPDR_FLOATING(4) | \
PIN_PUPDR_FLOATING(5) | \
PIN_PUPDR_FLOATING(6) | \
PIN_PUPDR_FLOATING(7) | \
PIN_PUPDR_PULLUP(8) | \
PIN_PUPDR_PULLUP(9) | \
PIN_PUPDR_PULLUP(10) | \
PIN_PUPDR_PULLUP(11) | \
PIN_PUPDR_FLOATING(12) | \
PIN_PUPDR_FLOATING(13) | \
PIN_PUPDR_FLOATING(14) | \
PIN_PUPDR_FLOATING(15))

Definition at line 377 of file board.h.

◆ VAL_GPIOD_AFRH

#define VAL_GPIOD_AFRH
Value:
(PIN_AFIO_AF(8, 7) | \
PIN_AFIO_AF(9, 7) | \
PIN_AFIO_AF(10, 0) | \
PIN_AFIO_AF(11, 7) | \
PIN_AFIO_AF(12, 7) | \
PIN_AFIO_AF(13, 0) | \
PIN_AFIO_AF(14, 0) | \
PIN_AFIO_AF(15, 0))

Definition at line 533 of file board.h.

◆ VAL_GPIOD_AFRL

#define VAL_GPIOD_AFRL
Value:
(PIN_AFIO_AF(0, 9) | \
PIN_AFIO_AF(1, 9) | \
PIN_AFIO_AF(2, 12) | \
PIN_AFIO_AF(3, 7) | \
PIN_AFIO_AF(4, 7) | \
PIN_AFIO_AF(5, 7) | \
PIN_AFIO_AF(6, 7) | \
PIN_AFIO_AF(7, 0))

Definition at line 525 of file board.h.

◆ VAL_GPIOD_MODER

#define VAL_GPIOD_MODER
Value:
PIN_MODE_ALTERNATE(1) | \
PIN_MODE_ALTERNATE(2) | \
PIN_MODE_ALTERNATE(3) | \
PIN_MODE_ALTERNATE(4) | \
PIN_MODE_ALTERNATE(5) | \
PIN_MODE_ALTERNATE(6) | \
PIN_MODE_OUTPUT(7) | \
PIN_MODE_ALTERNATE(8) | \
PIN_MODE_ALTERNATE(9) | \
PIN_MODE_OUTPUT(10) | \
PIN_MODE_ALTERNATE(11) | \
PIN_MODE_ALTERNATE(12) | \
PIN_MODE_INPUT(13) | \
PIN_MODE_INPUT(14) | \
PIN_MODE_INPUT(15))

Definition at line 445 of file board.h.

◆ VAL_GPIOD_ODR

#define VAL_GPIOD_ODR
Value:
(PIN_ODR_HIGH(0) | \
PIN_ODR_HIGH(1) | \
PIN_ODR_HIGH(2) | \
PIN_ODR_HIGH(3) | \
PIN_ODR_HIGH(4) | \
PIN_ODR_HIGH(5) | \
PIN_ODR_HIGH(6) | \
PIN_ODR_HIGH(7) | \
PIN_ODR_HIGH(8) | \
PIN_ODR_HIGH(9) | \
PIN_ODR_HIGH(10) | \
PIN_ODR_HIGH(11) | \
PIN_ODR_HIGH(12) | \
PIN_ODR_HIGH(13) | \
PIN_ODR_HIGH(14) | \
PIN_ODR_HIGH(15))

Definition at line 509 of file board.h.

◆ VAL_GPIOD_OSPEEDR

#define VAL_GPIOD_OSPEEDR
Value:
PIN_OSPEED_100M(1) | \
PIN_OSPEED_100M(2) | \
PIN_OSPEED_100M(3) | \
PIN_OSPEED_100M(4) | \
PIN_OSPEED_100M(5) | \
PIN_OSPEED_100M(6) | \
PIN_OSPEED_2M(7) | \
PIN_OSPEED_100M(8) | \
PIN_OSPEED_100M(9) | \
PIN_OSPEED_100M(10) | \
PIN_OSPEED_100M(11) | \
PIN_OSPEED_100M(12) | \
PIN_OSPEED_100M(13) | \
PIN_OSPEED_100M(14) | \
PIN_OSPEED_100M(15))

Definition at line 477 of file board.h.

◆ VAL_GPIOD_OTYPER

#define VAL_GPIOD_OTYPER
Value:
PIN_OTYPE_PUSHPULL(1) | \
PIN_OTYPE_PUSHPULL(2) | \
PIN_OTYPE_PUSHPULL(3) | \
PIN_OTYPE_PUSHPULL(4) | \
PIN_OTYPE_PUSHPULL(5) |\
PIN_OTYPE_PUSHPULL(6) | \
PIN_OTYPE_PUSHPULL(7) | \
PIN_OTYPE_PUSHPULL(8) | \
PIN_OTYPE_PUSHPULL(9) | \
PIN_OTYPE_PUSHPULL(10) | \
PIN_OTYPE_PUSHPULL(11) | \
PIN_OTYPE_PUSHPULL(12) | \
PIN_OTYPE_PUSHPULL(13) | \
PIN_OTYPE_PUSHPULL(14) | \
PIN_OTYPE_PUSHPULL(15))

Definition at line 461 of file board.h.

◆ VAL_GPIOD_PUPDR

#define VAL_GPIOD_PUPDR
Value:
PIN_PUPDR_FLOATING(1) | \
PIN_PUPDR_FLOATING(2) | \
PIN_PUPDR_FLOATING(3) | \
PIN_PUPDR_FLOATING(4) | \
PIN_PUPDR_FLOATING(5) |\
PIN_PUPDR_FLOATING(6) | \
PIN_PUPDR_FLOATING(7) | \
PIN_PUPDR_FLOATING(8) | \
PIN_PUPDR_FLOATING(9) | \
PIN_PUPDR_FLOATING(10) | \
PIN_PUPDR_FLOATING(11) | \
PIN_PUPDR_FLOATING(12) | \
PIN_PUPDR_FLOATING(13) | \
PIN_PUPDR_FLOATING(14) | \
PIN_PUPDR_FLOATING(15))

Definition at line 493 of file board.h.

◆ VAL_GPIOE_AFRH

#define VAL_GPIOE_AFRH
Value:
(PIN_AFIO_AF(8, 8) | \
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))

Definition at line 649 of file board.h.

◆ VAL_GPIOE_AFRL

#define VAL_GPIOE_AFRL
Value:
(PIN_AFIO_AF(0, 8) | \
PIN_AFIO_AF(1, 8) | \
PIN_AFIO_AF(2, 5) | \
PIN_AFIO_AF(3, 0) | \
PIN_AFIO_AF(4, 5) | \
PIN_AFIO_AF(5, 5) | \
PIN_AFIO_AF(6, 5) | \
PIN_AFIO_AF(7, 8))

Definition at line 641 of file board.h.

◆ VAL_GPIOE_MODER

#define VAL_GPIOE_MODER
Value:
PIN_MODE_ALTERNATE(1) | \
PIN_MODE_ALTERNATE(2) | \
PIN_MODE_OUTPUT(3) | \
PIN_MODE_ALTERNATE(4) | \
PIN_MODE_ALTERNATE(5) | \
PIN_MODE_ALTERNATE(6) | \
PIN_MODE_ALTERNATE(7) | \
PIN_MODE_ALTERNATE(8) | \
PIN_MODE_INPUT(9) | \
PIN_MODE_INPUT(10) | \
PIN_MODE_INPUT(11) | \
PIN_MODE_OUTPUT(12) | \
PIN_MODE_INPUT(13) | \
PIN_MODE_INPUT(14) | \
PIN_MODE_INPUT(15))

Definition at line 561 of file board.h.

◆ VAL_GPIOE_ODR

#define VAL_GPIOE_ODR
Value:
(PIN_ODR_HIGH(0) | \
PIN_ODR_HIGH(1) | \
PIN_ODR_HIGH(2) | \
PIN_ODR_HIGH(3) | \
PIN_ODR_HIGH(4) | \
PIN_ODR_HIGH(5) | \
PIN_ODR_HIGH(6) | \
PIN_ODR_HIGH(7) | \
PIN_ODR_HIGH(8) | \
PIN_ODR_HIGH(9) | \
PIN_ODR_HIGH(10) | \
PIN_ODR_HIGH(11) | \
PIN_ODR_HIGH(12) | \
PIN_ODR_HIGH(13) | \
PIN_ODR_HIGH(14) | \
PIN_ODR_HIGH(15))

Definition at line 625 of file board.h.

◆ VAL_GPIOE_OSPEEDR

#define VAL_GPIOE_OSPEEDR
Value:
PIN_OSPEED_100M(1) | \
PIN_OSPEED_50M(2) | \
PIN_OSPEED_100M(3) | \
PIN_OSPEED_50M(4) | \
PIN_OSPEED_50M(5) | \
PIN_OSPEED_50M(6) | \
PIN_OSPEED_100M(7) | \
PIN_OSPEED_100M(8) | \
PIN_OSPEED_100M(9) | \
PIN_OSPEED_100M(10) | \
PIN_OSPEED_100M(11) | \
PIN_OSPEED_100M(12) | \
PIN_OSPEED_100M(13) | \
PIN_OSPEED_100M(14) | \
PIN_OSPEED_100M(15))

Definition at line 593 of file board.h.

◆ VAL_GPIOE_OTYPER

#define VAL_GPIOE_OTYPER
Value:
PIN_OTYPE_PUSHPULL(1) | \
PIN_OTYPE_PUSHPULL(2) | \
PIN_OTYPE_PUSHPULL(3) | \
PIN_OTYPE_PUSHPULL(4) | \
PIN_OTYPE_PUSHPULL(5) | \
PIN_OTYPE_PUSHPULL(6) | \
PIN_OTYPE_PUSHPULL(7) | \
PIN_OTYPE_PUSHPULL(8) | \
PIN_OTYPE_PUSHPULL(9) | \
PIN_OTYPE_PUSHPULL(10) | \
PIN_OTYPE_PUSHPULL(11) | \
PIN_OTYPE_OPENDRAIN(12) | \
PIN_OTYPE_PUSHPULL(13) | \
PIN_OTYPE_PUSHPULL(14) | \
PIN_OTYPE_PUSHPULL(15))

Definition at line 577 of file board.h.

◆ VAL_GPIOE_PUPDR

#define VAL_GPIOE_PUPDR
Value:
PIN_PUPDR_FLOATING(1) | \
PIN_PUPDR_FLOATING(2) | \
PIN_PUPDR_FLOATING(3) | \
PIN_PUPDR_FLOATING(4) | \
PIN_PUPDR_FLOATING(5) | \
PIN_PUPDR_FLOATING(6) | \
PIN_PUPDR_FLOATING(7) | \
PIN_PUPDR_FLOATING(8) | \
PIN_PUPDR_FLOATING(9) | \
PIN_PUPDR_FLOATING(10) | \
PIN_PUPDR_FLOATING(11) | \
PIN_PUPDR_FLOATING(12) | \
PIN_PUPDR_FLOATING(13) | \
PIN_PUPDR_FLOATING(14) | \
PIN_PUPDR_FLOATING(15))

Definition at line 609 of file board.h.

◆ VAL_GPIOF_AFRH

#define VAL_GPIOF_AFRH   0x00000000

Definition at line 668 of file board.h.

◆ VAL_GPIOF_AFRL

#define VAL_GPIOF_AFRL   0x00000000

Definition at line 667 of file board.h.

◆ VAL_GPIOF_MODER

#define VAL_GPIOF_MODER   0x00000000

Definition at line 662 of file board.h.

◆ VAL_GPIOF_ODR

#define VAL_GPIOF_ODR   0xFFFFFFFF

Definition at line 666 of file board.h.

◆ VAL_GPIOF_OSPEEDR

#define VAL_GPIOF_OSPEEDR   0x00000000

Definition at line 664 of file board.h.

◆ VAL_GPIOF_OTYPER

#define VAL_GPIOF_OTYPER   0x00000000

Definition at line 663 of file board.h.

◆ VAL_GPIOF_PUPDR

#define VAL_GPIOF_PUPDR   0x55555555

Definition at line 665 of file board.h.

◆ VAL_GPIOG_AFRH

#define VAL_GPIOG_AFRH   0x00000000

Definition at line 680 of file board.h.

◆ VAL_GPIOG_AFRL

#define VAL_GPIOG_AFRL   0x00000000

Definition at line 679 of file board.h.

◆ VAL_GPIOG_MODER

#define VAL_GPIOG_MODER   0x00000000

Definition at line 674 of file board.h.

◆ VAL_GPIOG_ODR

#define VAL_GPIOG_ODR   0xFFFFFFFF

Definition at line 678 of file board.h.

◆ VAL_GPIOG_OSPEEDR

#define VAL_GPIOG_OSPEEDR   0x00000000

Definition at line 676 of file board.h.

◆ VAL_GPIOG_OTYPER

#define VAL_GPIOG_OTYPER   0x00000000

Definition at line 675 of file board.h.

◆ VAL_GPIOG_PUPDR

#define VAL_GPIOG_PUPDR   0x55555555

Definition at line 677 of file board.h.

◆ VAL_GPIOH_AFRH

#define VAL_GPIOH_AFRH   0x00000000

Definition at line 691 of file board.h.

◆ VAL_GPIOH_AFRL

#define VAL_GPIOH_AFRL   0x00000000

Definition at line 690 of file board.h.

◆ VAL_GPIOH_MODER

#define VAL_GPIOH_MODER   0x00000000

Definition at line 685 of file board.h.

◆ VAL_GPIOH_ODR

#define VAL_GPIOH_ODR   0xFFFFFFFF

Definition at line 689 of file board.h.

◆ VAL_GPIOH_OSPEEDR

#define VAL_GPIOH_OSPEEDR   0x00000000

Definition at line 687 of file board.h.

◆ VAL_GPIOH_OTYPER

#define VAL_GPIOH_OTYPER   0x00000000

Definition at line 686 of file board.h.

◆ VAL_GPIOH_PUPDR

#define VAL_GPIOH_PUPDR   0x55555555

Definition at line 688 of file board.h.

◆ VAL_GPIOI_AFRH

#define VAL_GPIOI_AFRH   0x00000000

Definition at line 703 of file board.h.

◆ VAL_GPIOI_AFRL

#define VAL_GPIOI_AFRL   0x00000000

Definition at line 702 of file board.h.

◆ VAL_GPIOI_MODER

#define VAL_GPIOI_MODER   0x00000000

Definition at line 697 of file board.h.

◆ VAL_GPIOI_ODR

#define VAL_GPIOI_ODR   0xFFFFFFFF

Definition at line 701 of file board.h.

◆ VAL_GPIOI_OSPEEDR

#define VAL_GPIOI_OSPEEDR   0x00000000

Definition at line 699 of file board.h.

◆ VAL_GPIOI_OTYPER

#define VAL_GPIOI_OTYPER   0x00000000

Definition at line 698 of file board.h.

◆ VAL_GPIOI_PUPDR

#define VAL_GPIOI_PUPDR   0x55555555

Definition at line 700 of file board.h.

Function Documentation

◆ boardInit()

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.

Definition at line 261 of file board.c.

TIM2_SERVO_HZ
#define TIM2_SERVO_HZ
Definition: actuators_pwm_arch.h:60
PWM_SERVO_3_ACTIVE
#define PWM_SERVO_3_ACTIVE
Definition: board.h:828
TIM3_SERVO_HZ
#define TIM3_SERVO_HZ
Definition: actuators_pwm_arch.h:63
PWM_SERVO_1_ACTIVE
#define PWM_SERVO_1_ACTIVE
Definition: board.h:798
PIN_AFIO_AF
#define PIN_AFIO_AF(n, v)
Definition: board.h:75
PIN_MODE_INPUT
#define PIN_MODE_INPUT(n)
Definition: board.h:60
PWM_SERVO_4_ACTIVE
#define PWM_SERVO_4_ACTIVE
Definition: board.h:843
PIN_OSPEED_50M
#define PIN_OSPEED_50M(n)
Definition: board.h:70
PWM_SERVO_0_ACTIVE
#define PWM_SERVO_0_ACTIVE
Definition: board.h:783
PIN_PUPDR_FLOATING
#define PIN_PUPDR_FLOATING(n)
Definition: board.h:72
PWM_SERVO_2_ACTIVE
#define PWM_SERVO_2_ACTIVE
Definition: board.h:813
PIN_OTYPE_PUSHPULL
#define PIN_OTYPE_PUSHPULL(n)
Definition: board.h:66
PIN_MODE_ALTERNATE
#define PIN_MODE_ALTERNATE(n)
Definition: board.h:62
PIN_ODR_HIGH
#define PIN_ODR_HIGH(n)
Definition: board.h:65
PWM_SERVO_5_ACTIVE
#define PWM_SERVO_5_ACTIVE
Definition: board.h:858
PIN_OSPEED_100M
#define PIN_OSPEED_100M(n)
Definition: board.h:71
PWM_SERVO_6_ACTIVE
#define PWM_SERVO_6_ACTIVE
Definition: board.h:872