2019-02-17 06:01:11 -04:00
|
|
|
# hw definition file for processing by chibios_hwdef.py
|
|
|
|
# for F765 bootloader
|
|
|
|
|
|
|
|
# MCU class and specific type
|
|
|
|
MCU STM32F7xx STM32F767xx
|
|
|
|
|
|
|
|
# crystal frequency
|
|
|
|
OSCILLATOR_HZ 16000000
|
|
|
|
|
|
|
|
define STM32_LSECLK 32768U
|
|
|
|
define STM32_LSEDRV (3U << 3U)
|
|
|
|
define STM32_PLLSRC STM32_PLLSRC_HSE
|
|
|
|
define STM32_PLLM_VALUE 8
|
|
|
|
define STM32_PLLN_VALUE 216
|
|
|
|
define STM32_PLLP_VALUE 2
|
|
|
|
define STM32_PLLQ_VALUE 9
|
|
|
|
|
|
|
|
# board ID for firmware load
|
|
|
|
APJ_BOARD_ID 50
|
|
|
|
|
|
|
|
FLASH_SIZE_KB 2048
|
|
|
|
|
|
|
|
# bootloader is installed at zero offset
|
|
|
|
FLASH_RESERVE_START_KB 0
|
|
|
|
|
|
|
|
# the location where the bootloader will put the firmware
|
|
|
|
define FLASH_BOOTLOADER_LOAD_KB 32
|
|
|
|
|
2019-02-21 18:54:03 -04:00
|
|
|
# enabling PE3 on the Colibri causes it to reset on startup
|
|
|
|
undef PE3
|
|
|
|
PE3 VDD_3V3_SENSORS_EN OUTPUT LOW
|
|
|
|
|
|
|
|
# SD power is active low on TBS board
|
|
|
|
undef PG7
|
|
|
|
undef VDD_3V3_SD_CARD_EN
|
|
|
|
PG7 nVDD_3V3_SD_CARD_EN OUTPUT HIGH
|
|
|
|
|
2019-02-17 06:01:11 -04:00
|
|
|
PC6 LED_BOOTLOADER OUTPUT HIGH
|
|
|
|
PC7 LED_ACTIVITY OUTPUT HIGH
|
|
|
|
define HAL_LED_ON 0
|
|
|
|
|
|
|
|
# board voltage
|
|
|
|
STM32_VDD 330U
|
|
|
|
|
|
|
|
# order of UARTs (and USB)
|
|
|
|
UART_ORDER OTG1 USART2 UART7
|
|
|
|
|
|
|
|
# USART2 is telem1
|
|
|
|
PD6 USART2_RX USART2
|
|
|
|
PD5 USART2_TX USART2
|
|
|
|
PD3 USART2_CTS USART2
|
|
|
|
PD4 USART2_RTS USART2
|
|
|
|
|
|
|
|
PF6 UART7_RX UART7 NODMA
|
|
|
|
PE8 UART7_TX UART7 NODMA
|
|
|
|
|
|
|
|
PA11 OTG_FS_DM OTG1
|
|
|
|
PA12 OTG_FS_DP OTG1
|
|
|
|
|
|
|
|
PA13 JTMS-SWDIO SWD
|
|
|
|
PA14 JTCK-SWCLK SWD
|
|
|
|
|
|
|
|
define HAL_USE_EMPTY_STORAGE 1
|
|
|
|
define HAL_STORAGE_SIZE 16384
|