Skip to content

Commit 5c9dc5e

Browse files
committed
renamed target from "black" to generic f407v + removed unused files
1 parent 065f586 commit 5c9dc5e

38 files changed

Lines changed: 169 additions & 5820 deletions

STM32F4/boards.txt

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -30,32 +30,32 @@ discovery_f407.build.error_led_pin=14
3030
discovery_f407.build.board=STM32DiscoveryF407
3131

3232
##############################################################
33-
black_f407vet6.name=STM32 Black F407VET6
34-
35-
black_f407vet6.upload.tool=stlink_upload
36-
black_f407vet6.upload.protocol=stlink
37-
38-
black_f407vet6.upload.file_type=bin
39-
black_f407vet6.upload.ram.maximum_size=65535
40-
black_f407vet6.upload.flash.maximum_size=514288
41-
black_f407vet6.upload.maximum_size=514288
42-
43-
#black_f407vet6.upload.usbID=0483:3748
44-
#black_f407vet6.upload.altID=1
45-
#black_f407vet6.upload.auto_reset=true
46-
47-
black_f407vet6.build.mcu=cortex-m4
48-
black_f407vet6.build.f_cpu=168000000L
49-
black_f407vet6.build.core=maple
50-
black_f407vet6.build.extra_flags=-mthumb -DSTM32_HIGH_DENSITY -DSTM32F4 -DBOARD_black_f4
51-
black_f407vet6.build.ldscript=ld/jtag.ld
52-
black_f407vet6.build.variant=black_f407vet6
53-
black_f407vet6.build.variant_system_lib=lib_f407.a
54-
black_f407vet6.build.vect=VECT_TAB_BASE
55-
black_f407vet6.build.density=STM32_HIGH_DENSITY
56-
black_f407vet6.build.error_led_port=GPIOA
57-
black_f407vet6.build.error_led_pin=7
58-
black_f407vet6.build.board=STM32BlackF407VET6
33+
generic_f407v.name=Generic STM32F407V series
34+
35+
generic_f407v.upload.tool=stlink_upload
36+
generic_f407v.upload.protocol=stlink
37+
38+
generic_f407v.upload.file_type=bin
39+
generic_f407v.upload.ram.maximum_size=131072
40+
generic_f407v.upload.flash.maximum_size=514288
41+
generic_f407v.upload.maximum_size=514288
42+
43+
#generic_f407v.upload.usbID=0483:3748
44+
#generic_f407v.upload.altID=1
45+
#generic_f407v.upload.auto_reset=true
46+
47+
generic_f407v.build.mcu=cortex-m4
48+
generic_f407v.build.f_cpu=168000000L
49+
generic_f407v.build.core=maple
50+
generic_f407v.build.extra_flags=-mthumb -DSTM32_HIGH_DENSITY -DSTM32F4 -DBOARD_generic_f407v
51+
generic_f407v.build.ldscript=ld/jtag.ld
52+
generic_f407v.build.variant=generic_f407v
53+
generic_f407v.build.variant_system_lib=lib_f407.a
54+
generic_f407v.build.vect=VECT_TAB_BASE
55+
generic_f407v.build.density=STM32_HIGH_DENSITY
56+
generic_f407v.build.error_led_port=GPIOA
57+
generic_f407v.build.error_led_pin=7
58+
generic_f407v.build.board=STM32GenericF407VET6
5959

6060
##############################################################
6161
stm32f4stamp.name=STM32F4Stamp F405

STM32F4/cores/maple/boards.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ void init(void) {
6767
setupADC();
6868
setupTimers();
6969

70-
//setupUSB();
70+
setupUSB();
7171
}
7272

7373
/* You could farm this out to the files in boards/ if e.g. it takes

STM32F4/cores/maple/boards.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ bool boardUsesPin(uint8 pin);
140140
#include "aeroquad32mini.h"
141141
#elif defined(BOARD_discovery_f4)
142142
#include "discovery_f4.h"
143-
#elif defined(BOARD_black_f4)
144-
#include "black_f4.h"
143+
#elif defined(BOARD_generic_f407v)
144+
#include "generic_f407v.h"
145145
#elif defined(BOARD_freeflight)
146146
#include "freeflight.h"
147147
#else

STM32F4/cores/maple/io.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ static inline void toggleLED() {
180180
* accomplished portably over all LeafLabs boards by calling
181181
* pinMode(BOARD_BUTTON_PIN, INPUT).
182182
*
183-
* @param button - one of available on-board buttons (up to 3 for black F4)
183+
* @param button - one of available on-board buttons (up to 3 for generic F4)
184184
*
185185
* @see pinMode()
186186
*/
@@ -198,7 +198,7 @@ uint8 isButtonPressed(uint8_t button);
198198
* button is pressed. If timeout_millis is left out (or 0), wait
199199
* forever.
200200
*
201-
* @param button - one of available on-board buttons (up to 3 for black F4)
201+
* @param button - one of available on-board buttons (up to 3 for generic F4)
202202
*
203203
* @return true, if the button was pressed; false, if the timeout was
204204
* reached.

0 commit comments

Comments
 (0)