2019-01-14 06:53:49 -04:00
|
|
|
# hw definition file for processing by chibios_hwdef.py
|
|
|
|
# for VRBRAINv52 hardware
|
|
|
|
|
|
|
|
|
|
|
|
# MCU class and specific type
|
|
|
|
MCU STM32F4xx STM32F407xx
|
|
|
|
|
|
|
|
# board ID for firmware load
|
|
|
|
APJ_BOARD_ID 1152
|
|
|
|
|
|
|
|
# crystal frequency
|
|
|
|
OSCILLATOR_HZ 8000000
|
|
|
|
|
|
|
|
# flash size
|
|
|
|
FLASH_SIZE_KB 1024
|
|
|
|
|
|
|
|
|
|
|
|
# USB setup
|
|
|
|
USB_VENDOR 0x27AC
|
2019-01-23 18:03:56 -04:00
|
|
|
USB_PRODUCT 0x1152
|
2019-01-14 06:53:49 -04:00
|
|
|
USB_STRING_MANUFACTURER "Laser Navigation"
|
|
|
|
|
|
|
|
# don't allow bootloader to use more than 16k
|
|
|
|
FLASH_USE_MAX_KB 16
|
|
|
|
|
|
|
|
# bootloader is installed at zero offset
|
|
|
|
FLASH_RESERVE_START_KB 0
|
|
|
|
|
|
|
|
# the location where the bootloader will put the firmware
|
2019-05-05 21:14:18 -03:00
|
|
|
FLASH_BOOTLOADER_LOAD_KB 16
|
2019-01-14 06:53:49 -04:00
|
|
|
|
|
|
|
# ChibiOS system timer
|
|
|
|
STM32_ST_USE_TIMER 5
|
|
|
|
|
|
|
|
|
|
|
|
# order of UARTs (and USB)
|
2020-04-24 08:10:08 -03:00
|
|
|
SERIAL_ORDER OTG1
|
2019-01-14 06:53:49 -04:00
|
|
|
|
|
|
|
PA9 VBUS INPUT
|
|
|
|
|
|
|
|
PA11 OTG_FS_DM OTG1
|
|
|
|
PA12 OTG_FS_DP OTG1
|
|
|
|
|
|
|
|
PA13 JTMS-SWDIO SWD
|
|
|
|
PA14 JTCK-SWCLK SWD
|
|
|
|
|
|
|
|
PD14 LED_BOOTLOADER OUTPUT
|
|
|
|
PC5 LED_ACTIVITY OUTPUT
|
|
|
|
|
|
|
|
define HAL_LED_ON 0
|
|
|
|
|
|
|
|
define HAL_CHIBIOS_ARCH_BRAINV52 1
|
|
|
|
|
|
|
|
define HAL_STORAGE_SIZE 16384
|
|
|
|
define HAL_USE_EMPTY_STORAGE 1
|
|
|
|
|