Skip to content

Commit 09aeddb

Browse files
Added support for Hy-Tiny STM32F103T (with Maple like USB reset hardware)
1 parent b6a5f62 commit 09aeddb

File tree

4 files changed

+30
-1
lines changed

4 files changed

+30
-1
lines changed

STM32F1/Makefile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ generic-pb0: begin clean gccversion build_generic-pb0 sizeafter finished copy_g
130130
stbee : begin clean gccversion build_stbee sizeafter finished copy_stbee end
131131
naze32: begin clean gccversion build_naze32 sizeafter finished copy_naze32 end
132132
generic-pb12: begin clean gccversion build_generic-pb12 sizeafter finished copy_generic-pb12 end
133+
hytiny-stm32f103t: begin clean gccversion build_hytiny-stm32f103t sizeafter finished copy_hytiny-stm32f103t end
133134
build: elf bin lss sym
134135

135136
build_maple-mini: TARGETFLAGS= -DTARGET_MAPLE_MINI
@@ -340,6 +341,19 @@ copy_generic-pb12:
340341
cp $(TARGET).bin binaries/generic_boot20_pb12.bin
341342
@echo
342343

344+
build_hytiny-stm32f103t: TARGETFLAGS= -DTARGET_HYTINY_STM32F103T
345+
# Set the linker script
346+
build_hytiny-stm32f103t: LDFLAGS +=-T$(ST_LIB)/c_only_md_high_density.ld
347+
build_hytiny-stm32f103t: elf bin lss sym
348+
copy_hytiny-stm32f103t:
349+
@echo
350+
@echo "Copying to binaries folder"
351+
@echo
352+
cp $(TARGET).bin binaries/generic_boot20_hytiny.bin
353+
@echo
354+
355+
356+
343357
bin: $(TARGET).bin
344358
elf: $(TARGET).elf
345359
lss: $(TARGET).lss
6.84 KB
Binary file not shown.

STM32F1/config.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,20 @@
288288
#define LED_ON_STATE 1
289289
#define BOOTLOADER_WAIT 30
290290

291+
#elif defined TARGET_HYTINY_STM32F103T
292+
293+
#define HAS_MAPLE_HARDWARE 1
294+
295+
296+
#define LED_BANK GPIOA
297+
#define LED_PIN 1
298+
#define LED_ON_STATE 0
299+
#define BOOTLOADER_WAIT 30
300+
301+
/* USB Disc Pin Setup. USB DISC is PA0 */
302+
#define USB_DISC_BANK GPIOA
303+
#define USB_DISC_PIN 0
304+
291305

292306
#else
293307
#error "No config for this target"

STM32F1/make_all.bat

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ make generic-pb7
1515
make generic-pb0
1616
make stbee
1717
make naze32
18-
make generic-pb12
18+
make generic-pb12
19+
make hytiny-stm32f103t

0 commit comments

Comments
 (0)