2018-03-04 03:14:46 -04:00
|
|
|
# hw definition file for processing by chibios_pins.py
|
|
|
|
# for OMNIBUSF7V2 hardware.
|
|
|
|
@ thanks to betaflight for pin information
|
|
|
|
|
|
|
|
# MCU class and specific type
|
|
|
|
MCU STM32F7xx STM32F745xx
|
|
|
|
|
|
|
|
define CONFIG_HAL_BOARD_SUBTYPE HAL_BOARD_SUBTYPE_CHIBIOS_OMNIBUSF7V2
|
|
|
|
|
|
|
|
# board ID for firmware load
|
|
|
|
APJ_BOARD_ID 81
|
|
|
|
|
2018-03-04 06:05:33 -04:00
|
|
|
# crystal frequency, setup to use external oscillator
|
|
|
|
OSCILLATOR_HZ 8000000
|
|
|
|
|
|
|
|
define STM32_LSECLK 32768U
|
|
|
|
define STM32_LSEDRV (3U << 3U)
|
|
|
|
|
|
|
|
define STM32_PLLSRC STM32_PLLSRC_HSE
|
|
|
|
define STM32_PLLM_VALUE 8
|
|
|
|
define STM32_PLLN_VALUE 432
|
|
|
|
define STM32_PLLP_VALUE 2
|
|
|
|
define STM32_PLLQ_VALUE 9
|
2018-03-04 03:14:46 -04:00
|
|
|
|
|
|
|
FLASH_SIZE_KB 1024
|
2018-03-04 06:05:33 -04:00
|
|
|
|
|
|
|
# run without a bootloader for now, use DFU upload
|
2018-03-04 03:14:46 -04:00
|
|
|
FLASH_RESERVE_START_KB 0
|
|
|
|
|
|
|
|
# board voltage
|
|
|
|
STM32_VDD 330U
|
|
|
|
|
|
|
|
# only one I2C bus
|
|
|
|
# I2C_ORDER I2C2
|
|
|
|
|
|
|
|
# order of UARTs (and USB)
|
|
|
|
UART_ORDER OTG1
|
|
|
|
|
|
|
|
# PA10 IO-debug-console
|
|
|
|
PA11 OTG_FS_DM OTG1
|
|
|
|
PA12 OTG_FS_DP OTG1
|
|
|
|
|
|
|
|
PA13 JTMS-SWDIO SWD
|
|
|
|
PA14 JTCK-SWCLK SWD
|
|
|
|
|
|
|
|
PE0 LED0 OUTPUT LOW
|
|
|
|
#PD15 BUZZER OUTPUT
|
|
|
|
|
2018-03-04 06:05:33 -04:00
|
|
|
# ICM-20608 on SPI1
|
2018-03-04 03:14:46 -04:00
|
|
|
PA4 MPU6000_CS CS
|
|
|
|
|
2018-03-04 06:05:33 -04:00
|
|
|
# MPU6500 on SPI3
|
|
|
|
PA15 MPU6500_CS CS
|
|
|
|
|
|
|
|
# SPI1 for IMU and baro
|
2018-03-04 03:14:46 -04:00
|
|
|
PA5 SPI1_SCK SPI1
|
|
|
|
PA6 SPI1_MISO SPI1
|
|
|
|
PA7 SPI1_MOSI SPI1
|
|
|
|
|
|
|
|
# SPI2 for MAX7456 OSD
|
|
|
|
PB12 MAX7456_CS CS
|
|
|
|
PB13 SPI2_SCK SPI2
|
|
|
|
PB14 SPI2_MISO SPI2
|
|
|
|
PB15 SPI2_MOSI SPI2
|
|
|
|
|
|
|
|
PA15 EXTRA_CS1 CS
|
|
|
|
PC10 SPI3_SCK SPI3
|
|
|
|
PC11 SPI3_MISO SPI3
|
|
|
|
PC12 SPI3_MOSI SPI3
|
|
|
|
|
|
|
|
# SPI4 for SDCard
|
|
|
|
PE4 EXTRA_CS2 CS
|
|
|
|
PE2 SPI4_SCK SPI4
|
|
|
|
PE5 SPI4_MISO SPI4
|
|
|
|
PE6 SPI4_MOSI SPI4
|
|
|
|
|
|
|
|
# optional I2C device2, shared with USART3
|
|
|
|
#PB10 I2C2_SCL I2C2
|
|
|
|
#PB11 I2C2_SDA I2C2
|
|
|
|
|
|
|
|
# baro is BMP280 on SPI1
|
|
|
|
PA1 BMP280_CS CS
|
|
|
|
|
|
|
|
# mag is on I2C if connected
|
|
|
|
|
|
|
|
PC3 BATT_VOLTAGE_SENS ADC1 SCALE(1)
|
|
|
|
PC2 BATT_CURRENT_SENS ADC1 SCALE(1)
|
|
|
|
|
|
|
|
PC5 RSSI_ADC ADC1
|
|
|
|
|
|
|
|
# USART1
|
|
|
|
#PA10 USART1_RX USART1
|
|
|
|
#PA9 USART1_TX USART1
|
|
|
|
|
|
|
|
# USART2 for SBUS input, RX only
|
|
|
|
#PA3 USART2_RX USART2
|
|
|
|
|
|
|
|
# USART3
|
|
|
|
#PB11 USART3_RX USART3
|
|
|
|
#PB10 USART3_TX USART3
|
|
|
|
|
|
|
|
# USART6
|
|
|
|
#PC7 USART6_RX USART6
|
|
|
|
#PC6 USART6_TX USART6
|
|
|
|
|
|
|
|
# UART7, RX only?
|
|
|
|
#PE7 UART7_RX UART7
|
|
|
|
|
|
|
|
#PC8 SDMMC1_D0 SDMMC1
|
|
|
|
#PC9 SDMMC1_D1 SDMMC1
|
|
|
|
#PC10 SDMMC1_D2 SDMMC1
|
|
|
|
#PC11 SDMMC1_D3 SDMMC1
|
|
|
|
#PC12 SDMMC1_CK SDMMC1
|
|
|
|
|
|
|
|
PB0 TIM3_CH3 TIM3 PWM(1)
|
|
|
|
PB1 TIM3_CH4 TIM3 PWM(2)
|
|
|
|
PE9 TIM1_CH1 TIM1 PWM(3)
|
|
|
|
PE11 TIM1_CH2 TIM1 PWM(4)
|
|
|
|
|
|
|
|
define STM32_LSECLK 32768U
|
|
|
|
define STM32_LSEDRV (3U << 3U)
|
|
|
|
define STM32_SDC_USE_SDMMC1 TRUE
|
|
|
|
|
|
|
|
DMA_PRIORITY S*
|
|
|
|
define HAL_USE_EMPTY_STORAGE
|
|
|
|
|
|
|
|
define HAL_STORAGE_SIZE 16384
|
|
|
|
define STORAGE_FLASH_PAGE 1
|
2018-03-04 06:05:33 -04:00
|
|
|
|
|
|
|
# spi devices
|
|
|
|
SPIDEV bmp280 SPI1 DEVID1 BMP280_CS MODE3 20*MHZ 20*MHZ
|
|
|
|
SPIDEV mpu6000 SPI1 DEVID2 MPU6000_CS MODE3 1*MHZ 4*MHZ
|
|
|
|
SPIDEV mpu6500 SPI3 DEVID1 MPU6500_CS MODE3 1*MHZ 4*MHZ
|
|
|
|
|
|
|
|
define HAL_BARO_DEFAULT HAL_BARO_BMP280_SPI
|