Clean up BIGTREE_BTT022 board definition (#15287)

This commit is contained in:
Bas Stottelaar 2019-09-18 19:29:58 +02:00 committed by Scott Lahteine
parent d5a34afa56
commit a7a5607c1b
2 changed files with 6 additions and 27 deletions

View file

@ -2,7 +2,7 @@
"build": { "build": {
"core": "stm32", "core": "stm32",
"cpu": "cortex-m4", "cpu": "cortex-m4",
"extra_flags": "-DSTM32F407xx", "extra_flags": "-DSTM32F4 -DSTM32F407xx -DSTM32F40_41xxx",
"f_cpu": "168000000L", "f_cpu": "168000000L",
"hwids": [ "hwids": [
[ [
@ -21,34 +21,17 @@
"debug": { "debug": {
"jlink_device": "STM32F407VE", "jlink_device": "STM32F407VE",
"openocd_target": "stm32f4x", "openocd_target": "stm32f4x",
"svd_path": "STM32F40x.svd", "svd_path": "STM32F40x.svd"
"tools": {
"stlink": {
"server": {
"arguments": [
"-f",
"scripts/interface/stlink.cfg",
"-c",
"transport select hla_swd",
"-f",
"scripts/target/stm32f4x.cfg",
"-c",
"reset_config none"
],
"executable": "bin/openocd",
"package": "tool-openocd"
}
}
}
}, },
"frameworks": [ "frameworks": [
"arduino", "arduino",
"cmsis",
"stm32cube" "stm32cube"
], ],
"name": "STM32F407VE (64k RAM. 512k Flash)", "name": "STM32F407VE (192k RAM. 512k Flash)",
"upload": { "upload": {
"disable_flushing": false, "disable_flushing": false,
"maximum_ram_size": 65536, "maximum_ram_size": 131072,
"maximum_size": 524288, "maximum_size": 524288,
"protocol": "stlink", "protocol": "stlink",
"protocols": [ "protocols": [
@ -60,6 +43,6 @@
"use_1200bps_touch": false, "use_1200bps_touch": false,
"wait_for_upload_port": false "wait_for_upload_port": false
}, },
"url": "http://www.st.com/en/microcontrollers/stm32f407zg.html", "url": "http://www.st.com/en/microcontrollers/stm32f407ve.html",
"vendor": "Generic" "vendor": "Generic"
} }

View file

@ -208,10 +208,6 @@ extern "C" {
#define PI7 (115+STM32F4X_ADC_NUM) //1:TIM8_CH3 #define PI7 (115+STM32F4X_ADC_NUM) //1:TIM8_CH3
#endif #endif
#ifdef HAL_GPIO_MODULE_ENABLED
#error foo
#endif
// This must be a literal // This must be a literal
#define NUM_DIGITAL_PINS (STM32F4X_GPIO_NUM) #define NUM_DIGITAL_PINS (STM32F4X_GPIO_NUM)