2021-09-04 08:59:15 -03:00
|
|
|
# hw definition file for processing by chibios_pins.py
|
|
|
|
# for SP/Racing Extreme H7 hardware.
|
|
|
|
|
|
|
|
# MCU class and specific type
|
|
|
|
MCU STM32H7xx STM32H750xx
|
|
|
|
|
|
|
|
# board ID for firmware load
|
|
|
|
APJ_BOARD_ID 1060
|
|
|
|
|
|
|
|
# crystal frequency, setup to use external oscillator
|
|
|
|
OSCILLATOR_HZ 8000000
|
|
|
|
|
2023-01-15 11:22:03 -04:00
|
|
|
MCU_CLOCKRATE_MHZ 480
|
|
|
|
|
2021-09-04 08:59:15 -03:00
|
|
|
# limited flash that can't be used
|
|
|
|
FLASH_SIZE_KB 128
|
|
|
|
FLASH_RESERVE_START_KB 0
|
|
|
|
FLASH_RESERVE_END_KB 0
|
|
|
|
FLASH_BOOTLOADER_LOAD_KB 128
|
|
|
|
|
|
|
|
# 16mb external flash
|
|
|
|
EXT_FLASH_SIZE_MB 16
|
|
|
|
EXT_FLASH_RESERVE_START_KB 1024
|
|
|
|
EXT_FLASH_RESERVE_END_KB 448
|
|
|
|
|
|
|
|
# order of UARTs (and USB). Allow bootloading on USB and telem1
|
|
|
|
SERIAL_ORDER OTG1 USART1
|
|
|
|
|
|
|
|
# USART1
|
|
|
|
PB15 USART1_RX USART1
|
|
|
|
PB14 USART1_TX USART1
|
|
|
|
|
|
|
|
# USB
|
|
|
|
PA11 OTG_FS_DM OTG1
|
|
|
|
PA12 OTG_FS_DP OTG1
|
|
|
|
|
|
|
|
PA13 JTMS-SWDIO SWD
|
|
|
|
PA14 JTCK-SWCLK SWD
|
|
|
|
|
2022-03-27 15:07:19 -03:00
|
|
|
PE3 LED_BOOTLOADER OUTPUT LOW # Red LED
|
2021-09-04 08:59:15 -03:00
|
|
|
define HAL_LED_ON 0
|
|
|
|
|
|
|
|
# QuadSPI Flash
|
2023-01-15 11:22:03 -04:00
|
|
|
PD11 QUADSPI_BK1_IO0 QUADSPI1 SPEED_HIGH
|
|
|
|
PD12 QUADSPI_BK1_IO1 QUADSPI1 SPEED_HIGH
|
|
|
|
PE2 QUADSPI_BK1_IO2 QUADSPI1 SPEED_HIGH
|
|
|
|
PD13 QUADSPI_BK1_IO3 QUADSPI1 SPEED_HIGH
|
|
|
|
PB10 QUADSPI_BK1_NCS QUADSPI1 SPEED_HIGH
|
|
|
|
PB2 QUADSPI_CLK QUADSPI1 SPEED_HIGH
|
2021-09-04 08:59:15 -03:00
|
|
|
|
|
|
|
# IFace Device Name Bus QSPI Mode Clk Freq Size (Pow2) NCS Delay
|
2023-01-15 11:22:03 -04:00
|
|
|
QSPIDEV w25q-dtr QUADSPI1 MODE3 100*MHZ 24 1
|
2021-09-04 08:59:15 -03:00
|
|
|
|
|
|
|
define HAL_USE_EMPTY_STORAGE 1
|
|
|
|
define HAL_STORAGE_SIZE 16384
|
|
|
|
|
|
|
|
# Add CS pins to ensure they are high in bootloader
|
|
|
|
PB12 ICM20602_2_CS CS
|
|
|
|
PA15 ICM20602_1_CS CS
|
|
|
|
PE11 AT7456E_CS CS
|
2022-03-27 15:07:19 -03:00
|
|
|
|
|
|
|
## pull up VTX power
|
|
|
|
PB01 VTX_PWR OUTPUT HIGH GPIO(81)
|