HAL_ChibiOS: moved more board setup into hwdef.dat

This commit is contained in:
Andrew Tridgell 2018-03-01 17:51:39 +11:00
parent 7d5ed1bc9b
commit 74ed19f460
9 changed files with 23 additions and 0 deletions

View File

@ -10,6 +10,8 @@ CCM_RAM_SIZE_KB 64
# board ID for firmware load
APJ_BOARD_ID 70
define CONFIG_HAL_BOARD_SUBTYPE HAL_BOARD_SUBTYPE_CHIBIOS_CRAZYFLIE2
# crystal frequency
OSCILLATOR_HZ 8000000
STM32_PLLM_VALUE 8

View File

@ -44,6 +44,11 @@
# MCU class and specific type
MCU STM32F4xx STM32F427xx
# we set a specific HAL_BOARD_SUBTYPE, allowing for custom config in
# drivers. For this to be used the subtype needs to be added to
# AP_HAL/AP_HAL_Boards.h as well
define CONFIG_HAL_BOARD_SUBTYPE HAL_BOARD_SUBTYPE_CHIBIOS_FMUV3
# now we need to specify the APJ_BOARD_ID. This is the ID that the
# bootloader presents to GCS software so it knows if this firmware is
# suitable for the board. Please see

View File

@ -1,6 +1,8 @@
# hw definition file for processing by chibios_hwdef.py
# for FMUv4 hardware
define CONFIG_HAL_BOARD_SUBTYPE HAL_BOARD_SUBTYPE_CHIBIOS_FMUV4
# MCU class and specific type
MCU STM32F4xx STM32F427xx
@ -193,3 +195,6 @@ define HAL_BATT_CURR_SCALE 17.0
# setup serial port defaults for ESP8266
define HAL_SERIAL5_PROTOCOL SerialProtocol_MAVLink
define HAL_SERIAL5_BAUD 921600

View File

@ -5,6 +5,8 @@
# MCU class and specific type
MCU STM32F4xx STM32F427xx
define CONFIG_HAL_BOARD_SUBTYPE HAL_BOARD_SUBTYPE_CHIBIOS_MINDPXV2
# board ID for firmware load
APJ_BOARD_ID 88

View File

@ -7,6 +7,8 @@ MCU STM32F4xx STM32F405xx
RAM_SIZE_KB 128
CCM_RAM_SIZE_KB 64
define CONFIG_HAL_BOARD_SUBTYPE HAL_BOARD_SUBTYPE_CHIBIOS_MINIPIX
# board ID for firmware load
APJ_BOARD_ID 3

View File

@ -7,6 +7,8 @@ MCU STM32F4xx STM32F405xx
RAM_SIZE_KB 128
CCM_RAM_SIZE_KB 64
define CONFIG_HAL_BOARD_SUBTYPE HAL_BOARD_SUBTYPE_CHIBIOS_REVOMINI
# board ID for firmware load
APJ_BOARD_ID 70

View File

@ -298,6 +298,7 @@ def write_mcu_config(f):
f.write('// SDIO available, enable POSIX filesystem support\n')
f.write('#define USE_POSIX\n\n')
f.write('#define HAL_USE_SDC TRUE\n')
env_vars['CHIBIOS_FATFS_FLAG'] = 'USE_FATFS=yes'
else:
f.write('#define HAL_USE_SDC FALSE\n')
env_vars['CHIBIOS_FATFS_FLAG'] = 'USE_FATFS=no'

View File

@ -52,3 +52,5 @@ DMA_PRIORITY SPI2_*
DMA_NOSHARE SPI2_*
undef PA1
PA1 UART4_RX UART4 NODMA
env DEFAULT_PARAMETERS '../../Tools/Frame_params/SkyViper-2450GPS/defaults.parm'

View File

@ -4,6 +4,8 @@
# MCU class and specific type
MCU STM32F4xx STM32F405xx
define CONFIG_HAL_BOARD_SUBTYPE HAL_BOARD_SUBTYPE_CHIBIOS_SPARKY2
# board ID for firmware load
APJ_BOARD_ID 11