Macros | Variables
revo_f4.h File Reference
#include "system.h"
Include dependency graph for revo_f4.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BARO_I2C   0
 
#define EXTERNAL_I2C   1
 
#define FLASH_CS_GPIO   GPIOB
 
#define FLASH_CS_PIN   GPIO_Pin_3
 
#define FLASH_SPI   2
 
#define LED1_GPIO   GPIOB
 
#define LED1_PIN   GPIO_Pin_4
 
#define LED2_GPIO   GPIOB
 
#define LED2_PIN   GPIO_Pin_5
 
#define MAG_I2C   0
 
#define MPU6000_CS_GPIO   GPIOA
 
#define MPU6000_CS_PIN   GPIO_Pin_4
 
#define MPU6000_SPI   0
 
#define NUM_I2C   2
 
#define NUM_SPI   3
 
#define NUM_UART   3
 
#define PPM_RC_IQRHandler   TIM8_BRK_TIM12_IRQHandler
 
#define PWM_NUM_CHANNELS   13
 
#define PWM_NUM_OUTPUTS   11
 
#define RC_PPM_PIN   11
 
#define SBUS_INV_GPIO   GPIOC
 
#define SBUS_INV_PIN   GPIO_Pin_0
 
#define SBUS_UART   0
 
#define UART1   0
 
#define UART2   1
 
#define UART3   2
 

Variables

const i2c_hardware_struct_t i2c_config [NUM_I2C]
 
const pwm_hardware_struct_t pwm_config [PWM_NUM_CHANNELS]
 
const spi_hardware_struct_t spi_config [NUM_SPI]
 
const uart_hardware_struct_t uart_config [NUM_UART]
 

Macro Definition Documentation

#define BARO_I2C   0

Definition at line 144 of file revo_f4.h.

#define EXTERNAL_I2C   1

Definition at line 145 of file revo_f4.h.

#define FLASH_CS_GPIO   GPIOB

Definition at line 127 of file revo_f4.h.

#define FLASH_CS_PIN   GPIO_Pin_3

Definition at line 128 of file revo_f4.h.

#define FLASH_SPI   2

Definition at line 126 of file revo_f4.h.

#define LED1_GPIO   GPIOB

Definition at line 148 of file revo_f4.h.

#define LED1_PIN   GPIO_Pin_4

Definition at line 149 of file revo_f4.h.

#define LED2_GPIO   GPIOB

Definition at line 150 of file revo_f4.h.

#define LED2_PIN   GPIO_Pin_5

Definition at line 151 of file revo_f4.h.

#define MAG_I2C   0

Definition at line 143 of file revo_f4.h.

#define MPU6000_CS_GPIO   GPIOA

Definition at line 123 of file revo_f4.h.

#define MPU6000_CS_PIN   GPIO_Pin_4

Definition at line 124 of file revo_f4.h.

#define MPU6000_SPI   0

Definition at line 122 of file revo_f4.h.

#define NUM_I2C   2

Definition at line 131 of file revo_f4.h.

#define NUM_SPI   3

Definition at line 89 of file revo_f4.h.

#define NUM_UART   3

This file defines the hardware configuration used in the C++ abstraction layer All chip-specific configuration should happen here

Definition at line 43 of file revo_f4.h.

#define PPM_RC_IQRHandler   TIM8_BRK_TIM12_IRQHandler

Definition at line 183 of file revo_f4.h.

#define PWM_NUM_CHANNELS   13

Definition at line 154 of file revo_f4.h.

#define PWM_NUM_OUTPUTS   11

Definition at line 155 of file revo_f4.h.

#define RC_PPM_PIN   11

Definition at line 182 of file revo_f4.h.

#define SBUS_INV_GPIO   GPIOC

Definition at line 84 of file revo_f4.h.

#define SBUS_INV_PIN   GPIO_Pin_0

Definition at line 85 of file revo_f4.h.

#define SBUS_UART   0

Definition at line 83 of file revo_f4.h.

#define UART1   0

Definition at line 61 of file revo_f4.h.

#define UART2   1

Definition at line 62 of file revo_f4.h.

#define UART3   2

Definition at line 63 of file revo_f4.h.

Variable Documentation

const i2c_hardware_struct_t i2c_config[NUM_I2C]
Initial value:
=
{
{
I2C1, 400000, I2C1_EV_IRQn, I2C1_ER_IRQn, GPIOB, GPIO_AF_I2C1, GPIO_PinSource8, GPIO_Pin_8,
},
{
I2C2, 100000, I2C2_EV_IRQn, I2C2_ER_IRQn, GPIOB, GPIO_AF_I2C2, GPIO_PinSource10, GPIO_Pin_10,
}
}
#define DMA_FLAG_TCIF2
#define GPIOB
Definition: stm32f4xx.h:2111
#define DMA1_Stream0
Definition: stm32f4xx.h:2125
#define DMA_FLAG_TCIF0
#define DMA_Channel_1
#define DMA_Channel_7
#define DMA1_Stream2
Definition: stm32f4xx.h:2127
#define GPIO_AF_I2C1
AF 4 selection.
#define I2C2
Definition: stm32f4xx.h:2061
#define I2C1
Definition: stm32f4xx.h:2060

Definition at line 132 of file revo_f4.h.

Initial value:
=
{
}
#define TIM_IT_CC3
#define TIM_IT_CC4
#define GPIO_AF_TIM3
AF 2 selection.
#define TIM1
Definition: stm32f4xx.h:2078
#define TIM_Channel_3
#define GPIOA
Definition: stm32f4xx.h:2110
#define TIM3
Definition: stm32f4xx.h:2038
#define TIM12
Definition: stm32f4xx.h:2043
#define TIM9
Definition: stm32f4xx.h:2091
#define GPIO_AF_TIM1
AF 1 selection.
#define TIM2
Definition: stm32f4xx.h:2037
#define TIM8
Definition: stm32f4xx.h:2079
#define GPIOB
Definition: stm32f4xx.h:2111
#define GPIO_AF_TIM8
AF 3 selection.
#define TIM_Channel_2
#define GPIOC
Definition: stm32f4xx.h:2112
#define TIM_Channel_4
#define TIM5
Definition: stm32f4xx.h:2040
#define TIM_IT_CC1
#define TIM_Channel_1
#define TIM_IT_CC2

Definition at line 166 of file revo_f4.h.

const spi_hardware_struct_t spi_config[NUM_SPI]
Initial value:
=
{
{
},
{
},
{
}
}
#define DMA1_Stream5
Definition: stm32f4xx.h:2130
#define SPI2
Definition: stm32f4xx.h:2050
#define DMA_FLAG_TCIF4
#define DMA_Channel_0
#define SPI1
Definition: stm32f4xx.h:2087
#define GPIOA
Definition: stm32f4xx.h:2110
#define SPI3
Definition: stm32f4xx.h:2051
#define DMA_FLAG_TCIF2
#define GPIOB
Definition: stm32f4xx.h:2111
#define DMA1_Stream3
Definition: stm32f4xx.h:2128
#define GPIOC
Definition: stm32f4xx.h:2112
#define DMA_FLAG_TCIF3
#define DMA2_Stream3
Definition: stm32f4xx.h:2137
#define DMA_Channel_3
#define GPIO_AF_SPI3
AF 6 selection.
#define DMA2_Stream2
Definition: stm32f4xx.h:2136
#define DMA1_Stream2
Definition: stm32f4xx.h:2127
#define DMA_FLAG_TCIF5
#define DMA1_Stream4
Definition: stm32f4xx.h:2129
#define GPIO_AF_SPI1
AF 5 selection.

Definition at line 107 of file revo_f4.h.

const uart_hardware_struct_t uart_config[NUM_UART]
Initial value:
=
{
{
GPIO_AF_USART1, USART1_IRQn, DMA2_Stream5_IRQn, DMA2_Stream7_IRQn, DMA2_Stream5,
},
{
},
{
},
}
#define DMA_IT_TCIF5
#define DMA1_Stream6
Definition: stm32f4xx.h:2131
#define DMA1_Stream5
Definition: stm32f4xx.h:2130
#define GPIOA
Definition: stm32f4xx.h:2110
#define GPIOB
Definition: stm32f4xx.h:2111
#define DMA_IT_TCIF3
#define DMA1_Stream3
Definition: stm32f4xx.h:2128
#define DMA_Channel_4
#define DMA_IT_TCIF1
#define DMA_IT_TCIF7
#define USART1
Definition: stm32f4xx.h:2080
#define DMA1_Stream1
Definition: stm32f4xx.h:2126
#define DMA2_Stream7
Definition: stm32f4xx.h:2141
#define GPIO_AF_USART1
AF 7 selection.
#define DMA2_Stream5
Definition: stm32f4xx.h:2139
#define DMA_IT_TCIF6
#define DMA_Channel_5
#define DMA_IT_TCIF2
#define USART3
Definition: stm32f4xx.h:2057
#define USART2
Definition: stm32f4xx.h:2056

Definition at line 64 of file revo_f4.h.



rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Wed Jul 3 2019 19:59:27