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 ADC_NUM   3
 
#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   10
 
#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 ADCHardwareStruct adc_config [ADC_NUM]
 
const BatteryMonitorHardwareStruct battery_monitor_config
 
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 ADC_NUM   3

Definition at line 280 of file revo_f4.h.

#define BARO_I2C   0

Definition at line 122 of file revo_f4.h.

#define EXTERNAL_I2C   1

Definition at line 123 of file revo_f4.h.

#define FLASH_CS_GPIO   GPIOB

Definition at line 111 of file revo_f4.h.

#define FLASH_CS_PIN   GPIO_Pin_3

Definition at line 112 of file revo_f4.h.

#define FLASH_SPI   2

Definition at line 110 of file revo_f4.h.

#define LED1_GPIO   GPIOB

Definition at line 126 of file revo_f4.h.

#define LED1_PIN   GPIO_Pin_4

Definition at line 127 of file revo_f4.h.

#define LED2_GPIO   GPIOB

Definition at line 128 of file revo_f4.h.

#define LED2_PIN   GPIO_Pin_5

Definition at line 129 of file revo_f4.h.

#define MAG_I2C   0

Definition at line 121 of file revo_f4.h.

#define MPU6000_CS_GPIO   GPIOA

Definition at line 107 of file revo_f4.h.

#define MPU6000_CS_PIN   GPIO_Pin_4

Definition at line 108 of file revo_f4.h.

#define MPU6000_SPI   0

Definition at line 106 of file revo_f4.h.

#define NUM_I2C   2

Definition at line 115 of file revo_f4.h.

#define NUM_SPI   3

Definition at line 81 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 277 of file revo_f4.h.

#define PWM_NUM_CHANNELS   13

Definition at line 132 of file revo_f4.h.

#define PWM_NUM_OUTPUTS   10

Definition at line 133 of file revo_f4.h.

#define RC_PPM_PIN   11

Definition at line 276 of file revo_f4.h.

#define SBUS_INV_GPIO   GPIOC

Definition at line 77 of file revo_f4.h.

#define SBUS_INV_PIN   GPIO_Pin_0

Definition at line 78 of file revo_f4.h.

#define SBUS_UART   0

Definition at line 76 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 ADCHardwareStruct adc_config[ADC_NUM]
Initial value:
= {
}
#define ADC3
Definition: stm32f4xx.h:2085
#define DMA_Channel_0
#define ADC2
Definition: stm32f4xx.h:2084
#define DMA_Channel_1
#define DMA2_Stream2
Definition: stm32f4xx.h:2136
#define DMA2_Stream1
Definition: stm32f4xx.h:2135
#define ADC1
Definition: stm32f4xx.h:2083
#define DMA_Channel_2
#define DMA2_Stream0
Definition: stm32f4xx.h:2134

Definition at line 281 of file revo_f4.h.

const BatteryMonitorHardwareStruct battery_monitor_config
Initial value:
const ADCHardwareStruct adc_config[ADC_NUM]
Definition: revo_f4.h:281
#define ADC_Channel_12
#define GPIOC
Definition: stm32f4xx.h:2112
#define ADC_Channel_11

Definition at line 290 of file revo_f4.h.

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, GPIO_PinSource9,
{I2C2, 100000, I2C2_EV_IRQn, I2C2_ER_IRQn, GPIOB, GPIO_AF_I2C2, GPIO_PinSource10, GPIO_Pin_10, GPIO_PinSource11,
#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 116 of file revo_f4.h.

Definition at line 144 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 99 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 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 Thu Apr 15 2021 05:07:52