mirror of https://github.com/ArduPilot/ardupilot
54 lines
1.0 KiB
Plaintext
54 lines
1.0 KiB
Plaintext
# hw definition file for processing by chibios_hwdef.py
|
|
# for H757
|
|
|
|
# MCU class and specific type
|
|
MCU STM32H7xx STM32H757xx
|
|
|
|
define CORE_CM7
|
|
define SMPS_PWR
|
|
|
|
# board ID for firmware load
|
|
APJ_BOARD_ID 1079
|
|
|
|
# setup build for a peripheral firmware
|
|
env AP_PERIPH 1
|
|
|
|
FLASH_SIZE_KB 2048
|
|
|
|
# the location where the bootloader will put the firmware
|
|
# the H757 has 128k sectors, assign 2 sectors for BL
|
|
FLASH_BOOTLOADER_LOAD_KB 256
|
|
FLASH_RESERVE_START_KB 256
|
|
|
|
# crystal frequency
|
|
OSCILLATOR_HZ 24000000
|
|
|
|
# CAN1
|
|
PD0 CAN1_RX CAN1
|
|
PD1 CAN1_TX CAN1
|
|
|
|
# CAN2
|
|
PB12 CAN2_RX CAN2
|
|
PB13 CAN2_TX CAN2
|
|
|
|
# SERIAL
|
|
PE7 UART7_RX UART7
|
|
PE8 UART7_TX UART7
|
|
|
|
SERIAL_ORDER UART7
|
|
|
|
# CAN Common
|
|
PG1 SLEEPCAN OUTPUT PUSHPULL SPEED_LOW LOW
|
|
PG0 SHUTDOWNCAN OUTPUT PUSHPULL SPEED_LOW LOW
|
|
|
|
# These are the pins for SWD debugging with a STlinkv2 or black-magic probe.
|
|
PA13 JTMS-SWDIO SWD
|
|
PA14 JTCK-SWCLK SWD
|
|
|
|
define CAN_APP_NODE_NAME "com.cubepilot.CubePilotCANMod-periph"
|
|
|
|
# override following defines as needed
|
|
define HAL_USE_ADC FALSE
|
|
STORAGE_FLASH_PAGE 14
|
|
define HAL_STORAGE_SIZE 32768
|