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
|
|
|
|
|
|
|
|
# board ID for firmware load
|
2018-06-16 08:09:31 -03:00
|
|
|
APJ_BOARD_ID 121
|
2018-03-04 03:14:46 -04:00
|
|
|
|
2018-03-04 06:05:33 -04:00
|
|
|
# crystal frequency, setup to use external oscillator
|
|
|
|
OSCILLATOR_HZ 8000000
|
|
|
|
|
2018-03-04 03:14:46 -04:00
|
|
|
FLASH_SIZE_KB 1024
|
2018-03-04 06:05:33 -04:00
|
|
|
|
2018-06-16 08:09:31 -03:00
|
|
|
# reserve one sector for bootloader and 2 for storage
|
|
|
|
FLASH_RESERVE_START_KB 96
|
2018-03-04 03:14:46 -04:00
|
|
|
|
|
|
|
|
|
|
|
# only one I2C bus
|
2018-07-29 12:09:31 -03:00
|
|
|
I2C_ORDER I2C2
|
2018-03-04 03:14:46 -04:00
|
|
|
|
|
|
|
# order of UARTs (and USB)
|
2020-09-15 14:11:11 -03:00
|
|
|
SERIAL_ORDER OTG1 USART1 USART3 USART6 USART2 UART7
|
2018-03-04 03:14:46 -04:00
|
|
|
|
|
|
|
PA11 OTG_FS_DM OTG1
|
|
|
|
PA12 OTG_FS_DP OTG1
|
|
|
|
|
|
|
|
PA13 JTMS-SWDIO SWD
|
|
|
|
PA14 JTCK-SWCLK SWD
|
|
|
|
|
|
|
|
PE0 LED0 OUTPUT LOW
|
2019-07-01 05:07:08 -03:00
|
|
|
PD15 TIM4_CH4 TIM4 GPIO(57) ALARM
|
2018-03-04 03:14:46 -04:00
|
|
|
|
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
|
|
|
|
|
|
|
|
PC10 SPI3_SCK SPI3
|
|
|
|
PC11 SPI3_MISO SPI3
|
|
|
|
PC12 SPI3_MOSI SPI3
|
|
|
|
|
|
|
|
# SPI4 for SDCard
|
2018-06-27 00:01:30 -03:00
|
|
|
PE4 SDCARD_CS CS
|
2018-03-04 03:14:46 -04:00
|
|
|
PE2 SPI4_SCK SPI4
|
|
|
|
PE5 SPI4_MISO SPI4
|
|
|
|
PE6 SPI4_MOSI SPI4
|
|
|
|
|
2020-09-17 14:08:29 -03:00
|
|
|
# external I2C device2, pins shared with USART3, normally disabled
|
2018-07-29 12:09:31 -03:00
|
|
|
PB10 I2C2_SCL I2C2
|
|
|
|
PB11 I2C2_SDA I2C2
|
2018-03-04 03:14:46 -04:00
|
|
|
|
|
|
|
# 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)
|
2021-01-01 10:28:31 -04:00
|
|
|
|
2018-03-04 03:14:46 -04:00
|
|
|
PC5 RSSI_ADC ADC1
|
|
|
|
|
2019-08-27 06:27:53 -03:00
|
|
|
# setup two IMUs
|
|
|
|
IMU Invensense SPI:mpu6000 ROTATION_NONE
|
|
|
|
IMU Invensense SPI:mpu6500 ROTATION_YAW_90
|
|
|
|
|
2018-03-04 03:14:46 -04:00
|
|
|
# USART1
|
2018-06-27 00:01:30 -03:00
|
|
|
PA10 USART1_RX USART1
|
|
|
|
PA9 USART1_TX USART1
|
2018-03-04 03:14:46 -04:00
|
|
|
|
2020-01-02 19:34:39 -04:00
|
|
|
# RC input using timer by default
|
2021-03-16 23:08:08 -03:00
|
|
|
PA3 TIM5_CH4 TIM5 RCININT PULLDOWN
|
2020-01-02 19:34:39 -04:00
|
|
|
|
|
|
|
# alternative RC input using USART2
|
|
|
|
PA3 USART2_RX USART2 NODMA ALT(1)
|
2018-03-04 03:14:46 -04:00
|
|
|
|
2020-09-17 14:08:29 -03:00
|
|
|
# USART3, enabled as ALT config in place of I2C
|
2020-09-21 22:21:53 -03:00
|
|
|
PB10 USART3_TX USART3 ALT(2)
|
|
|
|
PB11 USART3_RX USART3 ALT(2)
|
2018-03-04 03:14:46 -04:00
|
|
|
|
|
|
|
# USART6
|
2018-06-27 00:01:30 -03:00
|
|
|
PC7 USART6_RX USART6
|
|
|
|
PC6 USART6_TX USART6
|
2018-03-04 03:14:46 -04:00
|
|
|
|
2020-09-15 14:11:11 -03:00
|
|
|
# UART7 (V2 version, ESC telem)
|
|
|
|
PE7 UART7_RX UART7
|
|
|
|
|
2018-03-04 03:14:46 -04:00
|
|
|
|
2018-10-31 02:10:16 -03:00
|
|
|
PB0 TIM3_CH3 TIM3 PWM(1) GPIO(50)
|
|
|
|
PB1 TIM3_CH4 TIM3 PWM(2) GPIO(51)
|
|
|
|
PE9 TIM1_CH1 TIM1 PWM(3) GPIO(52)
|
|
|
|
PE11 TIM1_CH2 TIM1 PWM(4) GPIO(53)
|
2018-03-04 03:14:46 -04:00
|
|
|
|
|
|
|
define HAL_STORAGE_SIZE 16384
|
2021-10-27 02:32:43 -03:00
|
|
|
STORAGE_FLASH_PAGE 1
|
2018-03-04 06:05:33 -04:00
|
|
|
|
|
|
|
# spi devices
|
2018-06-27 00:01:30 -03:00
|
|
|
SPIDEV bmp280 SPI1 DEVID1 BMP280_CS MODE3 1*MHZ 8*MHZ
|
2018-03-04 06:05:33 -04:00
|
|
|
SPIDEV mpu6000 SPI1 DEVID2 MPU6000_CS MODE3 1*MHZ 4*MHZ
|
|
|
|
SPIDEV mpu6500 SPI3 DEVID1 MPU6500_CS MODE3 1*MHZ 4*MHZ
|
2018-06-27 00:01:30 -03:00
|
|
|
SPIDEV sdcard SPI4 DEVID1 SDCARD_CS MODE0 400*KHZ 25*MHZ
|
|
|
|
SPIDEV osd SPI2 DEVID1 MAX7456_CS MODE0 10*MHZ 10*MHZ
|
2018-03-04 06:05:33 -04:00
|
|
|
|
2018-06-27 00:01:30 -03:00
|
|
|
define HAL_OS_FATFS_IO 1
|
2018-07-13 07:14:03 -03:00
|
|
|
|
|
|
|
# no built-in compass, but probe the i2c bus for all possible
|
|
|
|
# external compass types
|
2018-06-27 00:01:30 -03:00
|
|
|
define ALLOW_ARM_NO_COMPASS
|
2018-07-13 07:14:03 -03:00
|
|
|
define HAL_PROBE_EXTERNAL_I2C_COMPASSES
|
|
|
|
define HAL_I2C_INTERNAL_MASK 0
|
2018-07-28 02:36:37 -03:00
|
|
|
define HAL_COMPASS_AUTO_ROT_DEFAULT 2
|
2018-07-13 07:14:03 -03:00
|
|
|
|
2020-09-02 10:20:21 -03:00
|
|
|
# disable parachute and sprayer to save flash
|
|
|
|
define HAL_PARACHUTE_ENABLED 0
|
|
|
|
|
2021-01-01 10:28:31 -04:00
|
|
|
# save FLASH, but leave above when flash issue is fixed
|
2023-07-17 05:35:55 -03:00
|
|
|
include ../include/minimize_fpv_osd.inc
|
2021-01-01 10:28:31 -04:00
|
|
|
|
2023-04-17 00:56:45 -03:00
|
|
|
# disable SMBUS monitors to save flash
|
|
|
|
undef AP_BATTERY_SMBUS_ENABLED
|
|
|
|
define AP_BATTERY_SMBUS_ENABLED 0
|
|
|
|
|
2019-08-27 08:35:36 -03:00
|
|
|
# one baro
|
|
|
|
BARO BMP280 SPI:bmp280
|
2018-06-27 00:01:30 -03:00
|
|
|
|
2018-10-31 21:10:21 -03:00
|
|
|
define HAL_OSD_TYPE_DEFAULT 1
|
2018-07-09 04:58:57 -03:00
|
|
|
ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin
|