Update BTT002 platform (fixing SD init) (#16217)

This commit is contained in:
chzj333
2019-12-16 02:24:54 +08:00
committed by Scott Lahteine
parent a0badf572e
commit 42a336f8bc
10 changed files with 1229 additions and 44 deletions

View File

@@ -646,12 +646,13 @@ src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32>
monitor_speed = 250000
#
# Bigtreetech SKR BTT002 (STM32F407VET6 ARM Cortex-M4)
# Bigtreetech BTT002 (STM32F407VET6 ARM Cortex-M4)
#
[env:BIGTREE_BTT002]
platform = ststm32@5.6.0
board = BigTree_Btt002
build_flags = ${common.build_flags}
board = BigTree_Btt002
platform_packages = framework-arduinoststm32@>=3.10700.191028
build_flags = ${common.build_flags}
-DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483 -DUSB_PRODUCT=\"STM32F407VE\"
-DTARGET_STM32F4 -DSTM32F407_5VX -DVECT_TAB_OFFSET=0x8000
-DHAVE_HWSERIAL2
@@ -659,8 +660,8 @@ build_flags = ${common.build_flags}
-DPIN_SERIAL2_RX=PD_6
-DPIN_SERIAL2_TX=PD_5
build_unflags = -std=gnu++11
extra_scripts = pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
lib_ignore = Adafruit NeoPixel, SailfishLCD, SailfishRGB_LED, SlowSoftI2CMaster
extra_scripts = pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
lib_ignore = Adafruit NeoPixel, SailfishLCD, SailfishRGB_LED, SlowSoftI2CMaster
src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32>
monitor_speed = 250000