HAL_ChibiOS: f4by conf2 fixed ram size, ext compass, pwm count
This commit is contained in:
parent
444c0bb54c
commit
2316fee279
@ -1,21 +1,17 @@
|
||||
# hw definition file for processing by chibios_hwdef.py
|
||||
# for F4BY v2.1.5 board description http://swift-flyer.com/?page_id=83
|
||||
# for F4BY v2.1.5 board description http://swift-flyer.com/?page_id=83
|
||||
|
||||
# MCU class and specific type
|
||||
MCU STM32F4xx STM32F407xx
|
||||
# is not declared chibios_hwdef.py for 407
|
||||
define def_ccm_size 64
|
||||
RAM_SIZE_KB 128
|
||||
CCM_RAM_SIZE_KB 64
|
||||
|
||||
|
||||
#default 256 NO WORK WITH DISPLAY SSD1306 CONNECTED and compass internal calibration
|
||||
#use auto calculation stack size for interrupt by os
|
||||
define PORT_INT_REQUIRED_STACK 0
|
||||
|
||||
# board ID for firmware load
|
||||
APJ_BOARD_ID 20
|
||||
define CONFIG_HAL_BOARD_SUBTYPE HAL_BOARD_SUBTYPE_CHIBIOS_F4BY
|
||||
|
||||
# define AP_FEATURE_BOARD_DETECT 1
|
||||
|
||||
# USB setup
|
||||
USB_VENDOR 0x27AC # Swift-Flyer
|
||||
@ -54,16 +50,13 @@ PA14 JTCK-SWCLK SWD
|
||||
# 5) SERIAL4: GPS2
|
||||
# 6) SERIAL5: extra UART (usually RTOS debug console)
|
||||
|
||||
STDOUT_SERIAL SD2
|
||||
STDOUT_SERIAL SD5
|
||||
STDOUT_BAUDRATE 57600
|
||||
|
||||
# this is the pin that senses USB being connected. It is an input pin
|
||||
# setup as OPENDRAIN
|
||||
PA9 VBUS INPUT OPENDRAIN
|
||||
|
||||
# order of UARTs (and USB) 2 3 4 5 NODMA
|
||||
# UART_ORDER OTG1 USART1
|
||||
# UART4
|
||||
UART_ORDER OTG1 USART3 USART2 USART1
|
||||
|
||||
# UART1 as board 2.1.5 for serial 3 gps
|
||||
@ -191,4 +184,3 @@ PB1 DRDY_HMC5883 INPUT PULLUP
|
||||
|
||||
define AP_FEATURE_BRD_PWM_COUNT_PARAM 1
|
||||
define BOARD_PWM_COUNT_DEFAULT 12
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user