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_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

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

Definition at line 1024 of file board.h.

#define ActuatorsDefaultCommit ( )    ActuatorsPwmCommit()

Definition at line 1026 of file board.h.

#define ActuatorsDefaultInit ( )    ActuatorsPwmInit()

Definition at line 1025 of file board.h.

#define AD1_4_CHANNEL   ADC_CHANNEL_IN4

Definition at line 757 of file board.h.

#define ADC_4   AD1_4

Definition at line 758 of file board.h.

#define ADC_4_GPIO_PIN   GPIO4

Definition at line 760 of file board.h.

#define ADC_4_GPIO_PORT   GPIOA

Definition at line 759 of file board.h.

#define ADC_CHANNEL_VSUPPLY   ADC_4

Definition at line 765 of file board.h.

#define AHB_CLK   STM32_HCLK

Definition at line 710 of file board.h.

#define BOARD_NAME   "Pixhawk PX4 FMU v 2.4"

Definition at line 29 of file board.h.

#define BOARD_PX4FMU_v2

Definition at line 28 of file board.h.

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

Definition at line 1023 of file board.h.

#define DefaultVoltageOfAdc (   adc)    (0.006185*adc)

Definition at line 768 of file board.h.

#define GPIOA_OTG_FS_VBUS   9

Kludge for SD_LOG.

Definition at line 1010 of file board.h.

#define GPIOC_SDIO_CK   12

Definition at line 1017 of file board.h.

#define GPIOC_SDIO_D0   8

Definition at line 1013 of file board.h.

#define GPIOC_SDIO_D1   9

Definition at line 1014 of file board.h.

#define GPIOC_SDIO_D2   10

Definition at line 1015 of file board.h.

#define GPIOC_SDIO_D3   11

Definition at line 1016 of file board.h.

#define GPIOD_SDIO_CMD   2

Definition at line 1012 of file board.h.

#define I2C1_CFG_DEF
Value:
{ \
OPMODE_I2C, \
}
#define I2C1_CLOCK_SPEED
I2C defines TODO: getting DMA failiure -> check timers and DMA mapping.
Definition: board.h:948
#define I2C1_DUTY_CYCLE
Definition: board.h:951

Definition at line 957 of file board.h.

#define I2C1_CLOCK_SPEED   400000

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

Definition at line 948 of file board.h.

#define I2C1_DUTY_CYCLE   FAST_DUTY_CYCLE_2

Definition at line 951 of file board.h.

#define I2C2_CFG_DEF
Value:
{ \
OPMODE_I2C, \
}
#define I2C2_CLOCK_SPEED
Definition: board.h:964
#define I2C2_DUTY_CYCLE
Definition: board.h:967

Definition at line 973 of file board.h.

#define I2C2_CLOCK_SPEED   400000

Definition at line 964 of file board.h.

#define I2C2_DUTY_CYCLE   FAST_DUTY_CYCLE_2

Definition at line 967 of file board.h.

#define LED_1_AFIO_REMAP   ((void)0)

Definition at line 723 of file board.h.

#define LED_1_GPIO   GPIOE

Definition at line 719 of file board.h.

#define LED_1_GPIO_OFF   gpio_set

Definition at line 722 of file board.h.

#define LED_1_GPIO_ON   gpio_clear

Definition at line 721 of file board.h.

#define LED_1_GPIO_PIN   GPIO12

Definition at line 720 of file board.h.

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

Definition at line 75 of file board.h.

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

Definition at line 62 of file board.h.

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

Definition at line 63 of file board.h.

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

Definition at line 60 of file board.h.

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

Definition at line 61 of file board.h.

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

Definition at line 65 of file board.h.

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

Definition at line 64 of file board.h.

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

Definition at line 71 of file board.h.

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

Definition at line 69 of file board.h.

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

Definition at line 68 of file board.h.

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

Definition at line 70 of file board.h.

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

Definition at line 67 of file board.h.

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

Definition at line 66 of file board.h.

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

Definition at line 72 of file board.h.

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

Definition at line 74 of file board.h.

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

Definition at line 73 of file board.h.

#define PPM_CHANNEL   ICU_CHANNEL_1

Definition at line 919 of file board.h.

#define PPM_TIMER   ICUD1

Definition at line 920 of file board.h.

#define PPM_TIMER_FREQUENCY   2000000

Definition at line 918 of file board.h.

#define PWM_CONF2_DEF
Value:
{ \
NULL, \
{ \
{ PWM_SERVO_5_ACTIVE, NULL }, \
{ PWM_SERVO_4_ACTIVE, NULL }, \
{ PWM_SERVO_1_ACTIVE, NULL }, \
{ PWM_OUTPUT_DISABLED, NULL }, \
}, \
0, \
0 \
}
#define PWM_SERVO_1_ACTIVE
Definition: board.h:798
#define PWM_SERVO_5_ACTIVE
Definition: board.h:858
#define PWM_FREQUENCY
#define PWM_SERVO_4_ACTIVE
Definition: board.h:843
#define TIM2_SERVO_HZ

Definition at line 881 of file board.h.

#define PWM_CONF3_DEF
Value:
{ \
NULL, \
{ \
{ PWM_SERVO_3_ACTIVE, NULL }, \
{ PWM_SERVO_2_ACTIVE, NULL }, \
{ PWM_SERVO_0_ACTIVE, NULL }, \
{ PWM_SERVO_6_ACTIVE, NULL }, \
}, \
0, \
0 \
}
#define PWM_SERVO_0_ACTIVE
Definition: board.h:783
#define PWM_SERVO_6_ACTIVE
Definition: board.h:872
#define TIM3_SERVO_HZ
#define PWM_SERVO_3_ACTIVE
Definition: board.h:828
#define PWM_SERVO_2_ACTIVE
Definition: board.h:813
#define PWM_FREQUENCY

Definition at line 900 of file board.h.

#define PWM_CONF_TIM2   1

Definition at line 879 of file board.h.

#define PWM_CONF_TIM3   1

Definition at line 898 of file board.h.

#define PWM_INPUT1_CHANNEL   ICU_CHANNEL_1

Definition at line 927 of file board.h.

#define PWM_INPUT1_GPIO_AF   GPIO_AF1

Definition at line 931 of file board.h.

#define PWM_INPUT1_GPIO_PIN   GPIO8

Definition at line 930 of file board.h.

#define PWM_INPUT1_GPIO_PORT   GPIOA

Definition at line 929 of file board.h.

#define PWM_INPUT1_ICU   ICUD1

Definition at line 926 of file board.h.

#define PWM_INPUT2_CHANNEL   ICU_CHANNEL_1

Definition at line 938 of file board.h.

#define PWM_INPUT2_GPIO_AF   GPIO_AF3

Definition at line 941 of file board.h.

#define PWM_INPUT2_GPIO_PIN   GPIO2

Definition at line 940 of file board.h.

#define PWM_INPUT2_GPIO_PORT   GPIOA

Definition at line 939 of file board.h.

#define PWM_INPUT2_ICU   ICUD2

Definition at line 937 of file board.h.

#define PWM_SERVO_0   0

Definition at line 777 of file board.h.

#define PWM_SERVO_0_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH

Definition at line 783 of file board.h.

#define PWM_SERVO_0_AF   GPIO_AF2

Definition at line 780 of file board.h.

#define PWM_SERVO_0_CHANNEL   2

Definition at line 782 of file board.h.

#define PWM_SERVO_0_DRIVER   PWMD3

Definition at line 781 of file board.h.

#define PWM_SERVO_0_GPIO   GPIOB

Definition at line 778 of file board.h.

#define PWM_SERVO_0_PIN   GPIO0

Definition at line 779 of file board.h.

#define PWM_SERVO_1   1

Definition at line 792 of file board.h.

#define PWM_SERVO_1_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH

Definition at line 798 of file board.h.

#define PWM_SERVO_1_AF   GPIO_AF1

Definition at line 795 of file board.h.

#define PWM_SERVO_1_CHANNEL   2

Definition at line 797 of file board.h.

#define PWM_SERVO_1_DRIVER   PWMD2

Definition at line 796 of file board.h.

#define PWM_SERVO_1_GPIO   GPIOA

Definition at line 793 of file board.h.

#define PWM_SERVO_1_PIN   GPIO2

Definition at line 794 of file board.h.

#define PWM_SERVO_2   2

Definition at line 807 of file board.h.

#define PWM_SERVO_2_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH

Definition at line 813 of file board.h.

#define PWM_SERVO_2_AF   GPIO_AF2

Definition at line 810 of file board.h.

#define PWM_SERVO_2_CHANNEL   1

Definition at line 812 of file board.h.

#define PWM_SERVO_2_DRIVER   PWMD3

Definition at line 811 of file board.h.

#define PWM_SERVO_2_GPIO   GPIOB

Definition at line 808 of file board.h.

#define PWM_SERVO_2_PIN   GPIO5

Definition at line 809 of file board.h.

#define PWM_SERVO_3   3

Definition at line 822 of file board.h.

#define PWM_SERVO_3_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH

Definition at line 828 of file board.h.

#define PWM_SERVO_3_AF   GPIO_AF2

Definition at line 825 of file board.h.

#define PWM_SERVO_3_CHANNEL   0

Definition at line 827 of file board.h.

#define PWM_SERVO_3_DRIVER   PWMD3

Definition at line 826 of file board.h.

#define PWM_SERVO_3_GPIO   GPIOB

Definition at line 823 of file board.h.

#define PWM_SERVO_3_PIN   GPIO4

Definition at line 824 of file board.h.

#define PWM_SERVO_4   4

Definition at line 837 of file board.h.

#define PWM_SERVO_4_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH

Definition at line 843 of file board.h.

#define PWM_SERVO_4_AF   GPIO_AF1

Definition at line 840 of file board.h.

#define PWM_SERVO_4_CHANNEL   1

Definition at line 842 of file board.h.

#define PWM_SERVO_4_DRIVER   PWMD2

Definition at line 841 of file board.h.

#define PWM_SERVO_4_GPIO   GPIOB

Definition at line 838 of file board.h.

#define PWM_SERVO_4_PIN   GPIO3

Definition at line 839 of file board.h.

#define PWM_SERVO_5   5

Definition at line 852 of file board.h.

#define PWM_SERVO_5_ACTIVE   PWM_OUTPUT_ACTIVE_HIGH

Definition at line 858 of file board.h.

#define PWM_SERVO_5_AF   GPIO_AF1

Definition at line 855 of file board.h.

#define PWM_SERVO_5_CHANNEL   0

Definition at line 857 of file board.h.

#define PWM_SERVO_5_DRIVER   PWMD2

Definition at line 856 of file board.h.

#define PWM_SERVO_5_GPIO   GPIOA

Definition at line 853 of file board.h.

#define PWM_SERVO_5_PIN   GPIO15

Definition at line 854 of file board.h.

#define PWM_SERVO_6_ACTIVE   PWM_OUTPUT_DISABLED

Definition at line 872 of file board.h.

#define RC_PPM_TICKS_PER_USEC   2

PPM radio defines TODO.

Definition at line 917 of file board.h.

#define SPI_SELECT_SLAVE0_PIN   GPIO13

Definition at line 988 of file board.h.

#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.

#define SPI_SELECT_SLAVE1_PIN   GPIO15

Definition at line 991 of file board.h.

#define SPI_SELECT_SLAVE1_PORT   GPIOC

Definition at line 990 of file board.h.

#define SPI_SELECT_SLAVE3_PIN   GPIO7

Definition at line 994 of file board.h.

#define SPI_SELECT_SLAVE3_PORT   GPIOD

Definition at line 993 of file board.h.

#define STM32_HSECLK   24000000

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 754 of file board.h.

#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.

#define USE_LED_1   1

Definition at line 717 of file board.h.

#define USE_PWM0   1

Definition at line 774 of file board.h.

#define USE_PWM1   1

Definition at line 789 of file board.h.

#define USE_PWM2   1

Definition at line 804 of file board.h.

#define USE_PWM3   1

Definition at line 819 of file board.h.

#define USE_PWM4   1

Definition at line 834 of file board.h.

#define USE_PWM5   1

Definition at line 849 of file board.h.

#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))
#define PIN_AFIO_AF(n, v)
Definition: board.h:75

Definition at line 185 of file board.h.

#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) | \
#define PIN_AFIO_AF(n, v)
Definition: board.h:75

Definition at line 177 of file board.h.

#define VAL_GPIOA_MODER
Value:

Definition at line 97 of file board.h.

#define VAL_GPIOA_ODR
Value:

Definition at line 161 of file board.h.

#define VAL_GPIOA_OSPEEDR
#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))
#define PIN_AFIO_AF(n, v)
Definition: board.h:75

Definition at line 301 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, 9) | \
#define PIN_AFIO_AF(n, v)
Definition: board.h:75

Definition at line 293 of file board.h.

#define VAL_GPIOB_MODER
#define VAL_GPIOB_ODR
Value:

Definition at line 277 of file board.h.

#define VAL_GPIOB_OSPEEDR
Value:

Definition at line 245 of file board.h.

#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))
#define PIN_AFIO_AF(n, v)
Definition: board.h:75

Definition at line 417 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, 8) | \
#define PIN_AFIO_AF(n, v)
Definition: board.h:75

Definition at line 409 of file board.h.

#define VAL_GPIOC_MODER
Value:

Definition at line 329 of file board.h.

#define VAL_GPIOC_ODR
Value:

Definition at line 393 of file board.h.

#define VAL_GPIOC_OSPEEDR
Value:

Definition at line 361 of file board.h.

#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))
#define PIN_AFIO_AF(n, v)
Definition: board.h:75

Definition at line 533 of file board.h.

#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) | \
#define PIN_AFIO_AF(n, v)
Definition: board.h:75

Definition at line 525 of file board.h.

#define VAL_GPIOD_MODER
Value:

Definition at line 445 of file board.h.

#define VAL_GPIOD_ODR
Value:

Definition at line 509 of file board.h.

#define VAL_GPIOD_OSPEEDR
#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))
#define PIN_AFIO_AF(n, v)
Definition: board.h:75

Definition at line 649 of file board.h.

#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) | \
#define PIN_AFIO_AF(n, v)
Definition: board.h:75

Definition at line 641 of file board.h.

#define VAL_GPIOE_MODER
Value:

Definition at line 561 of file board.h.

#define VAL_GPIOE_ODR
Value:

Definition at line 625 of file board.h.

#define VAL_GPIOE_OSPEEDR
#define VAL_GPIOF_AFRH   0x00000000

Definition at line 668 of file board.h.

#define VAL_GPIOF_AFRL   0x00000000

Definition at line 667 of file board.h.

#define VAL_GPIOF_MODER   0x00000000

Definition at line 662 of file board.h.

#define VAL_GPIOF_ODR   0xFFFFFFFF

Definition at line 666 of file board.h.

#define VAL_GPIOF_OSPEEDR   0x00000000

Definition at line 664 of file board.h.

#define VAL_GPIOF_OTYPER   0x00000000

Definition at line 663 of file board.h.

#define VAL_GPIOF_PUPDR   0x55555555

Definition at line 665 of file board.h.

#define VAL_GPIOG_AFRH   0x00000000

Definition at line 680 of file board.h.

#define VAL_GPIOG_AFRL   0x00000000

Definition at line 679 of file board.h.

#define VAL_GPIOG_MODER   0x00000000

Definition at line 674 of file board.h.

#define VAL_GPIOG_ODR   0xFFFFFFFF

Definition at line 678 of file board.h.

#define VAL_GPIOG_OSPEEDR   0x00000000

Definition at line 676 of file board.h.

#define VAL_GPIOG_OTYPER   0x00000000

Definition at line 675 of file board.h.

#define VAL_GPIOG_PUPDR   0x55555555

Definition at line 677 of file board.h.

#define VAL_GPIOH_AFRH   0x00000000

Definition at line 691 of file board.h.

#define VAL_GPIOH_AFRL   0x00000000

Definition at line 690 of file board.h.

#define VAL_GPIOH_MODER   0x00000000

Definition at line 685 of file board.h.

#define VAL_GPIOH_ODR   0xFFFFFFFF

Definition at line 689 of file board.h.

#define VAL_GPIOH_OSPEEDR   0x00000000

Definition at line 687 of file board.h.

#define VAL_GPIOH_OTYPER   0x00000000

Definition at line 686 of file board.h.

#define VAL_GPIOH_PUPDR   0x55555555

Definition at line 688 of file board.h.

#define VAL_GPIOI_AFRH   0x00000000

Definition at line 703 of file board.h.

#define VAL_GPIOI_AFRL   0x00000000

Definition at line 702 of file board.h.

#define VAL_GPIOI_MODER   0x00000000

Definition at line 697 of file board.h.

#define VAL_GPIOI_ODR   0xFFFFFFFF

Definition at line 701 of file board.h.

#define VAL_GPIOI_OSPEEDR   0x00000000

Definition at line 699 of file board.h.

#define VAL_GPIOI_OTYPER   0x00000000

Definition at line 698 of file board.h.

#define VAL_GPIOI_PUPDR   0x55555555

Definition at line 700 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.