diff --git a/examples/stm32f1/Makefile.include b/examples/stm32f1/Makefile.include new file mode 100644 index 00000000..221ebaea --- /dev/null +++ b/examples/stm32f1/Makefile.include @@ -0,0 +1,127 @@ +## +## This file is part of the libopencm3 project. +## +## Copyright (C) 2009 Uwe Hermann +## Copyright (C) 2010 Piotr Esden-Tempski +## +## This program is free software: you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation, either version 3 of the License, or +## (at your option) any later version. +## +## This program is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program. If not, see . +## + +PREFIX ?= arm-none-eabi +#PREFIX ?= arm-elf +CC = $(PREFIX)-gcc +LD = $(PREFIX)-gcc +OBJCOPY = $(PREFIX)-objcopy +OBJDUMP = $(PREFIX)-objdump +# Uncomment this line if you want to use the installed (not local) library. +TOOLCHAIN_DIR := $(shell dirname `which $(CC)`)/../$(PREFIX) +#TOOLCHAIN_DIR = ../../../.. +CFLAGS += -Os -g -Wall -Wextra -I$(TOOLCHAIN_DIR)/include \ + -fno-common -mcpu=cortex-m3 -mthumb -msoft-float -MD +LDSCRIPT = $(BINARY).ld +LDFLAGS += -lc -lnosys -L$(TOOLCHAIN_DIR)/lib -L$(TOOLCHAIN_DIR)/lib/stm32 \ + -T$(LDSCRIPT) -nostartfiles -Wl,--gc-sections \ + -mthumb -march=armv7 -mfix-cortex-m3-ldrd -msoft-float +OBJS += $(BINARY).o + +OOCD ?= openocd +OOCD_INTERFACE ?= flossjtag +OOCD_BOARD ?= olimex_stm32_h103 + +# Be silent per default, but 'make V=1' will show all compiler calls. +ifneq ($(V),1) +Q := @ +NULL := 2>/dev/null +else +LDFLAGS += -Wl,--print-gc-sections +endif + +.SUFFIXES: .elf .bin .hex .srec .list .images +.SECONDEXPANSION: +.SECONDARY: + +all: images + +images: $(BINARY).images +flash: $(BINARY).flash + +%.images: %.bin %.hex %.srec %.list + @#echo "*** $* images generated ***" + +%.bin: %.elf + @#printf " OBJCOPY $(*).bin\n" + $(Q)$(OBJCOPY) -Obinary $(*).elf $(*).bin + +%.hex: %.elf + @#printf " OBJCOPY $(*).hex\n" + $(Q)$(OBJCOPY) -Oihex $(*).elf $(*).hex + +%.srec: %.elf + @#printf " OBJCOPY $(*).srec\n" + $(Q)$(OBJCOPY) -Osrec $(*).elf $(*).srec + +%.list: %.elf + @#printf " OBJDUMP $(*).list\n" + $(Q)$(OBJDUMP) -S $(*).elf > $(*).list + +foo.elf: $(OBJS) $(LDSCRIPT) $(TOOLCHAIN_DIR)/lib/libopencm3_stm32.a + @#printf " LD $(subst $(shell pwd)/,,$(@))\n" + $(Q)$(LD) -o foo.elf $(OBJS) -lopencm3_stm32 $(LDFLAGS) + +%.elf: $(OBJS) $(LDSCRIPT) $(TOOLCHAIN_DIR)/lib/libopencm3_stm32.a + @#printf " LD $(subst $(shell pwd)/,,$(@))\n" + $(Q)$(LD) -o $(*).elf $(OBJS) -lopencm3_stm32 $(LDFLAGS) + +%.o: %.c Makefile + @#printf " CC $(subst $(shell pwd)/,,$(@))\n" + $(Q)$(CC) $(CFLAGS) -o $@ -c $< + +clean: + $(Q)rm -f *.o + $(Q)rm -f *.d + $(Q)rm -f *.elf + $(Q)rm -f *.bin + $(Q)rm -f *.hex + $(Q)rm -f *.srec + $(Q)rm -f *.list + +ifeq ($(OOCD_SERIAL),) +%.flash: %.hex + @printf " FLASH $<\n" + @# IMPORTANT: Don't use "resume", only "reset" will work correctly! + $(Q)$(OOCD) -f interface/$(OOCD_INTERFACE).cfg \ + -f board/$(OOCD_BOARD).cfg \ + -c "init" -c "reset init" \ + -c "stm32x mass_erase 0" \ + -c "flash write_image $(*).hex" \ + -c "reset" \ + -c "shutdown" $(NULL) +else +%.flash: %.hex + @printf " FLASH $<\n" + @# IMPORTANT: Don't use "resume", only "reset" will work correctly! + $(Q)$(OOCD) -f interface/$(OOCD_INTERFACE).cfg \ + -f board/$(OOCD_BOARD).cfg \ + -c "ft2232_serial $(OOCD_SERIAL)" \ + -c "init" -c "reset init" \ + -c "stm32x mass_erase 0" \ + -c "flash write_image $(*).hex" \ + -c "reset" \ + -c "shutdown" $(NULL) +endif + +.PHONY: images clean + +-include $(OBJS:.o=.d) + diff --git a/examples/stm32/lisa-m/fancyblink/Makefile b/examples/stm32f1/lisa-m/fancyblink/Makefile similarity index 100% rename from examples/stm32/lisa-m/fancyblink/Makefile rename to examples/stm32f1/lisa-m/fancyblink/Makefile diff --git a/examples/stm32/lisa-m/fancyblink/fancyblink.c b/examples/stm32f1/lisa-m/fancyblink/fancyblink.c similarity index 100% rename from examples/stm32/lisa-m/fancyblink/fancyblink.c rename to examples/stm32f1/lisa-m/fancyblink/fancyblink.c diff --git a/examples/stm32/lisa-m/fancyblink/fancyblink.ld b/examples/stm32f1/lisa-m/fancyblink/fancyblink.ld similarity index 100% rename from examples/stm32/lisa-m/fancyblink/fancyblink.ld rename to examples/stm32f1/lisa-m/fancyblink/fancyblink.ld diff --git a/examples/stm32/lisa-m/usb_dfu/Makefile b/examples/stm32f1/lisa-m/usb_dfu/Makefile similarity index 100% rename from examples/stm32/lisa-m/usb_dfu/Makefile rename to examples/stm32f1/lisa-m/usb_dfu/Makefile diff --git a/examples/stm32/lisa-m/usb_dfu/README b/examples/stm32f1/lisa-m/usb_dfu/README similarity index 100% rename from examples/stm32/lisa-m/usb_dfu/README rename to examples/stm32f1/lisa-m/usb_dfu/README diff --git a/examples/stm32/lisa-m/usb_dfu/usbdfu.c b/examples/stm32f1/lisa-m/usb_dfu/usbdfu.c similarity index 100% rename from examples/stm32/lisa-m/usb_dfu/usbdfu.c rename to examples/stm32f1/lisa-m/usb_dfu/usbdfu.c diff --git a/examples/stm32/lisa-m/usb_dfu/usbdfu.ld b/examples/stm32f1/lisa-m/usb_dfu/usbdfu.ld similarity index 100% rename from examples/stm32/lisa-m/usb_dfu/usbdfu.ld rename to examples/stm32f1/lisa-m/usb_dfu/usbdfu.ld diff --git a/examples/stm32/lisa-m/usb_hid/Makefile b/examples/stm32f1/lisa-m/usb_hid/Makefile similarity index 100% rename from examples/stm32/lisa-m/usb_hid/Makefile rename to examples/stm32f1/lisa-m/usb_hid/Makefile diff --git a/examples/stm32/lisa-m/usb_hid/README b/examples/stm32f1/lisa-m/usb_hid/README similarity index 100% rename from examples/stm32/lisa-m/usb_hid/README rename to examples/stm32f1/lisa-m/usb_hid/README diff --git a/examples/stm32/lisa-m/usb_hid/usbhid.c b/examples/stm32f1/lisa-m/usb_hid/usbhid.c similarity index 100% rename from examples/stm32/lisa-m/usb_hid/usbhid.c rename to examples/stm32f1/lisa-m/usb_hid/usbhid.c diff --git a/examples/stm32/lisa-m/usb_hid/usbhid.ld b/examples/stm32f1/lisa-m/usb_hid/usbhid.ld similarity index 100% rename from examples/stm32/lisa-m/usb_hid/usbhid.ld rename to examples/stm32f1/lisa-m/usb_hid/usbhid.ld diff --git a/examples/stm32/mb525/fancyblink/Makefile b/examples/stm32f1/mb525/fancyblink/Makefile similarity index 100% rename from examples/stm32/mb525/fancyblink/Makefile rename to examples/stm32f1/mb525/fancyblink/Makefile diff --git a/examples/stm32/mb525/fancyblink/README b/examples/stm32f1/mb525/fancyblink/README similarity index 100% rename from examples/stm32/mb525/fancyblink/README rename to examples/stm32f1/mb525/fancyblink/README diff --git a/examples/stm32/mb525/fancyblink/fancyblink.c b/examples/stm32f1/mb525/fancyblink/fancyblink.c similarity index 100% rename from examples/stm32/mb525/fancyblink/fancyblink.c rename to examples/stm32f1/mb525/fancyblink/fancyblink.c diff --git a/examples/stm32/mb525/fancyblink/fancyblink.ld b/examples/stm32f1/mb525/fancyblink/fancyblink.ld similarity index 100% rename from examples/stm32/mb525/fancyblink/fancyblink.ld rename to examples/stm32f1/mb525/fancyblink/fancyblink.ld diff --git a/examples/stm32/mb525/pwmleds/Makefile b/examples/stm32f1/mb525/pwmleds/Makefile similarity index 100% rename from examples/stm32/mb525/pwmleds/Makefile rename to examples/stm32f1/mb525/pwmleds/Makefile diff --git a/examples/stm32/mb525/pwmleds/README b/examples/stm32f1/mb525/pwmleds/README similarity index 100% rename from examples/stm32/mb525/pwmleds/README rename to examples/stm32f1/mb525/pwmleds/README diff --git a/examples/stm32/mb525/pwmleds/pwmleds.c b/examples/stm32f1/mb525/pwmleds/pwmleds.c similarity index 100% rename from examples/stm32/mb525/pwmleds/pwmleds.c rename to examples/stm32f1/mb525/pwmleds/pwmleds.c diff --git a/examples/stm32/mb525/pwmleds/pwmleds.ld b/examples/stm32f1/mb525/pwmleds/pwmleds.ld similarity index 100% rename from examples/stm32/mb525/pwmleds/pwmleds.ld rename to examples/stm32f1/mb525/pwmleds/pwmleds.ld diff --git a/examples/stm32/obldc/can/Makefile b/examples/stm32f1/obldc/can/Makefile similarity index 100% rename from examples/stm32/obldc/can/Makefile rename to examples/stm32f1/obldc/can/Makefile diff --git a/examples/stm32/obldc/can/can.c b/examples/stm32f1/obldc/can/can.c similarity index 100% rename from examples/stm32/obldc/can/can.c rename to examples/stm32f1/obldc/can/can.c diff --git a/examples/stm32/obldc/can/can.ld b/examples/stm32f1/obldc/can/can.ld similarity index 100% rename from examples/stm32/obldc/can/can.ld rename to examples/stm32f1/obldc/can/can.ld diff --git a/examples/stm32/obldc/led/Makefile b/examples/stm32f1/obldc/led/Makefile similarity index 100% rename from examples/stm32/obldc/led/Makefile rename to examples/stm32f1/obldc/led/Makefile diff --git a/examples/stm32/obldc/led/led.c b/examples/stm32f1/obldc/led/led.c similarity index 100% rename from examples/stm32/obldc/led/led.c rename to examples/stm32f1/obldc/led/led.c diff --git a/examples/stm32/obldc/led/led.ld b/examples/stm32f1/obldc/led/led.ld similarity index 100% rename from examples/stm32/obldc/led/led.ld rename to examples/stm32f1/obldc/led/led.ld diff --git a/examples/stm32/obldc/pwmleds/Makefile b/examples/stm32f1/obldc/pwmleds/Makefile similarity index 100% rename from examples/stm32/obldc/pwmleds/Makefile rename to examples/stm32f1/obldc/pwmleds/Makefile diff --git a/examples/stm32/obldc/pwmleds/pwmleds.c b/examples/stm32f1/obldc/pwmleds/pwmleds.c similarity index 100% rename from examples/stm32/obldc/pwmleds/pwmleds.c rename to examples/stm32f1/obldc/pwmleds/pwmleds.c diff --git a/examples/stm32/obldc/pwmleds/pwmleds.ld b/examples/stm32f1/obldc/pwmleds/pwmleds.ld similarity index 100% rename from examples/stm32/obldc/pwmleds/pwmleds.ld rename to examples/stm32f1/obldc/pwmleds/pwmleds.ld diff --git a/examples/stm32/obldc/systick/Makefile b/examples/stm32f1/obldc/systick/Makefile similarity index 100% rename from examples/stm32/obldc/systick/Makefile rename to examples/stm32f1/obldc/systick/Makefile diff --git a/examples/stm32/obldc/systick/systick.c b/examples/stm32f1/obldc/systick/systick.c similarity index 100% rename from examples/stm32/obldc/systick/systick.c rename to examples/stm32f1/obldc/systick/systick.c diff --git a/examples/stm32/obldc/systick/systick.ld b/examples/stm32f1/obldc/systick/systick.ld similarity index 100% rename from examples/stm32/obldc/systick/systick.ld rename to examples/stm32f1/obldc/systick/systick.ld diff --git a/examples/stm32/obldc/usart/Makefile b/examples/stm32f1/obldc/usart/Makefile similarity index 100% rename from examples/stm32/obldc/usart/Makefile rename to examples/stm32f1/obldc/usart/Makefile diff --git a/examples/stm32/obldc/usart/usart.c b/examples/stm32f1/obldc/usart/usart.c similarity index 100% rename from examples/stm32/obldc/usart/usart.c rename to examples/stm32f1/obldc/usart/usart.c diff --git a/examples/stm32/obldc/usart/usart.ld b/examples/stm32f1/obldc/usart/usart.ld similarity index 100% rename from examples/stm32/obldc/usart/usart.ld rename to examples/stm32f1/obldc/usart/usart.ld diff --git a/examples/stm32/obldc/usart_irq/Makefile b/examples/stm32f1/obldc/usart_irq/Makefile similarity index 100% rename from examples/stm32/obldc/usart_irq/Makefile rename to examples/stm32f1/obldc/usart_irq/Makefile diff --git a/examples/stm32/obldc/usart_irq/usart_irq.c b/examples/stm32f1/obldc/usart_irq/usart_irq.c similarity index 100% rename from examples/stm32/obldc/usart_irq/usart_irq.c rename to examples/stm32f1/obldc/usart_irq/usart_irq.c diff --git a/examples/stm32/obldc/usart_irq/usart_irq.ld b/examples/stm32f1/obldc/usart_irq/usart_irq.ld similarity index 100% rename from examples/stm32/obldc/usart_irq/usart_irq.ld rename to examples/stm32f1/obldc/usart_irq/usart_irq.ld diff --git a/examples/stm32/other/adc_temperature_sensor/Makefile b/examples/stm32f1/other/adc_temperature_sensor/Makefile similarity index 100% rename from examples/stm32/other/adc_temperature_sensor/Makefile rename to examples/stm32f1/other/adc_temperature_sensor/Makefile diff --git a/examples/stm32/other/adc_temperature_sensor/README b/examples/stm32f1/other/adc_temperature_sensor/README similarity index 100% rename from examples/stm32/other/adc_temperature_sensor/README rename to examples/stm32f1/other/adc_temperature_sensor/README diff --git a/examples/stm32/other/adc_temperature_sensor/adc.c b/examples/stm32f1/other/adc_temperature_sensor/adc.c similarity index 100% rename from examples/stm32/other/adc_temperature_sensor/adc.c rename to examples/stm32f1/other/adc_temperature_sensor/adc.c diff --git a/examples/stm32/other/adc_temperature_sensor/adc.ld b/examples/stm32f1/other/adc_temperature_sensor/adc.ld similarity index 100% rename from examples/stm32/other/adc_temperature_sensor/adc.ld rename to examples/stm32f1/other/adc_temperature_sensor/adc.ld diff --git a/examples/stm32/other/dma_mem2mem/Makefile b/examples/stm32f1/other/dma_mem2mem/Makefile similarity index 100% rename from examples/stm32/other/dma_mem2mem/Makefile rename to examples/stm32f1/other/dma_mem2mem/Makefile diff --git a/examples/stm32/other/dma_mem2mem/README b/examples/stm32f1/other/dma_mem2mem/README similarity index 100% rename from examples/stm32/other/dma_mem2mem/README rename to examples/stm32f1/other/dma_mem2mem/README diff --git a/examples/stm32/other/dma_mem2mem/dma.c b/examples/stm32f1/other/dma_mem2mem/dma.c similarity index 100% rename from examples/stm32/other/dma_mem2mem/dma.c rename to examples/stm32f1/other/dma_mem2mem/dma.c diff --git a/examples/stm32/other/dma_mem2mem/dma.ld b/examples/stm32f1/other/dma_mem2mem/dma.ld similarity index 100% rename from examples/stm32/other/dma_mem2mem/dma.ld rename to examples/stm32f1/other/dma_mem2mem/dma.ld diff --git a/examples/stm32/other/dogm128/Makefile b/examples/stm32f1/other/dogm128/Makefile similarity index 100% rename from examples/stm32/other/dogm128/Makefile rename to examples/stm32f1/other/dogm128/Makefile diff --git a/examples/stm32/other/dogm128/README b/examples/stm32f1/other/dogm128/README similarity index 100% rename from examples/stm32/other/dogm128/README rename to examples/stm32f1/other/dogm128/README diff --git a/examples/stm32/other/dogm128/dogm128.c b/examples/stm32f1/other/dogm128/dogm128.c similarity index 100% rename from examples/stm32/other/dogm128/dogm128.c rename to examples/stm32f1/other/dogm128/dogm128.c diff --git a/examples/stm32/other/dogm128/dogm128.h b/examples/stm32f1/other/dogm128/dogm128.h similarity index 100% rename from examples/stm32/other/dogm128/dogm128.h rename to examples/stm32f1/other/dogm128/dogm128.h diff --git a/examples/stm32/other/dogm128/main.c b/examples/stm32f1/other/dogm128/main.c similarity index 100% rename from examples/stm32/other/dogm128/main.c rename to examples/stm32f1/other/dogm128/main.c diff --git a/examples/stm32/other/dogm128/main.ld b/examples/stm32f1/other/dogm128/main.ld similarity index 100% rename from examples/stm32/other/dogm128/main.ld rename to examples/stm32f1/other/dogm128/main.ld diff --git a/examples/stm32/other/i2c_stts75_sensor/Makefile b/examples/stm32f1/other/i2c_stts75_sensor/Makefile similarity index 100% rename from examples/stm32/other/i2c_stts75_sensor/Makefile rename to examples/stm32f1/other/i2c_stts75_sensor/Makefile diff --git a/examples/stm32/other/i2c_stts75_sensor/README b/examples/stm32f1/other/i2c_stts75_sensor/README similarity index 100% rename from examples/stm32/other/i2c_stts75_sensor/README rename to examples/stm32f1/other/i2c_stts75_sensor/README diff --git a/examples/stm32/other/i2c_stts75_sensor/i2c_stts75_sensor.c b/examples/stm32f1/other/i2c_stts75_sensor/i2c_stts75_sensor.c similarity index 100% rename from examples/stm32/other/i2c_stts75_sensor/i2c_stts75_sensor.c rename to examples/stm32f1/other/i2c_stts75_sensor/i2c_stts75_sensor.c diff --git a/examples/stm32/other/i2c_stts75_sensor/i2c_stts75_sensor.ld b/examples/stm32f1/other/i2c_stts75_sensor/i2c_stts75_sensor.ld similarity index 100% rename from examples/stm32/other/i2c_stts75_sensor/i2c_stts75_sensor.ld rename to examples/stm32f1/other/i2c_stts75_sensor/i2c_stts75_sensor.ld diff --git a/examples/stm32/other/i2c_stts75_sensor/stts75.c b/examples/stm32f1/other/i2c_stts75_sensor/stts75.c similarity index 100% rename from examples/stm32/other/i2c_stts75_sensor/stts75.c rename to examples/stm32f1/other/i2c_stts75_sensor/stts75.c diff --git a/examples/stm32/other/i2c_stts75_sensor/stts75.h b/examples/stm32f1/other/i2c_stts75_sensor/stts75.h similarity index 100% rename from examples/stm32/other/i2c_stts75_sensor/stts75.h rename to examples/stm32f1/other/i2c_stts75_sensor/stts75.h diff --git a/examples/stm32/other/rtc/Makefile b/examples/stm32f1/other/rtc/Makefile similarity index 100% rename from examples/stm32/other/rtc/Makefile rename to examples/stm32f1/other/rtc/Makefile diff --git a/examples/stm32/other/rtc/README b/examples/stm32f1/other/rtc/README similarity index 100% rename from examples/stm32/other/rtc/README rename to examples/stm32f1/other/rtc/README diff --git a/examples/stm32/other/rtc/rtc.c b/examples/stm32f1/other/rtc/rtc.c similarity index 100% rename from examples/stm32/other/rtc/rtc.c rename to examples/stm32f1/other/rtc/rtc.c diff --git a/examples/stm32/other/rtc/rtc.ld b/examples/stm32f1/other/rtc/rtc.ld similarity index 100% rename from examples/stm32/other/rtc/rtc.ld rename to examples/stm32f1/other/rtc/rtc.ld diff --git a/examples/stm32/other/systick/Makefile b/examples/stm32f1/other/systick/Makefile similarity index 100% rename from examples/stm32/other/systick/Makefile rename to examples/stm32f1/other/systick/Makefile diff --git a/examples/stm32/other/systick/README b/examples/stm32f1/other/systick/README similarity index 100% rename from examples/stm32/other/systick/README rename to examples/stm32f1/other/systick/README diff --git a/examples/stm32/other/systick/systick.c b/examples/stm32f1/other/systick/systick.c similarity index 100% rename from examples/stm32/other/systick/systick.c rename to examples/stm32f1/other/systick/systick.c diff --git a/examples/stm32/other/systick/systick.ld b/examples/stm32f1/other/systick/systick.ld similarity index 100% rename from examples/stm32/other/systick/systick.ld rename to examples/stm32f1/other/systick/systick.ld diff --git a/examples/stm32/other/timer_interrupt/Makefile b/examples/stm32f1/other/timer_interrupt/Makefile similarity index 100% rename from examples/stm32/other/timer_interrupt/Makefile rename to examples/stm32f1/other/timer_interrupt/Makefile diff --git a/examples/stm32/other/timer_interrupt/README b/examples/stm32f1/other/timer_interrupt/README similarity index 100% rename from examples/stm32/other/timer_interrupt/README rename to examples/stm32f1/other/timer_interrupt/README diff --git a/examples/stm32/other/timer_interrupt/timer.c b/examples/stm32f1/other/timer_interrupt/timer.c similarity index 100% rename from examples/stm32/other/timer_interrupt/timer.c rename to examples/stm32f1/other/timer_interrupt/timer.c diff --git a/examples/stm32/other/timer_interrupt/timer.ld b/examples/stm32f1/other/timer_interrupt/timer.ld similarity index 100% rename from examples/stm32/other/timer_interrupt/timer.ld rename to examples/stm32f1/other/timer_interrupt/timer.ld diff --git a/examples/stm32/other/usb_cdcacm/Makefile b/examples/stm32f1/other/usb_cdcacm/Makefile similarity index 100% rename from examples/stm32/other/usb_cdcacm/Makefile rename to examples/stm32f1/other/usb_cdcacm/Makefile diff --git a/examples/stm32/other/usb_cdcacm/README b/examples/stm32f1/other/usb_cdcacm/README similarity index 100% rename from examples/stm32/other/usb_cdcacm/README rename to examples/stm32f1/other/usb_cdcacm/README diff --git a/examples/stm32/other/usb_cdcacm/cdcacm.c b/examples/stm32f1/other/usb_cdcacm/cdcacm.c similarity index 100% rename from examples/stm32/other/usb_cdcacm/cdcacm.c rename to examples/stm32f1/other/usb_cdcacm/cdcacm.c diff --git a/examples/stm32/other/usb_cdcacm/cdcacm.ld b/examples/stm32f1/other/usb_cdcacm/cdcacm.ld similarity index 100% rename from examples/stm32/other/usb_cdcacm/cdcacm.ld rename to examples/stm32f1/other/usb_cdcacm/cdcacm.ld diff --git a/examples/stm32/other/usb_dfu/Makefile b/examples/stm32f1/other/usb_dfu/Makefile similarity index 100% rename from examples/stm32/other/usb_dfu/Makefile rename to examples/stm32f1/other/usb_dfu/Makefile diff --git a/examples/stm32/other/usb_dfu/README b/examples/stm32f1/other/usb_dfu/README similarity index 100% rename from examples/stm32/other/usb_dfu/README rename to examples/stm32f1/other/usb_dfu/README diff --git a/examples/stm32/other/usb_dfu/usbdfu.c b/examples/stm32f1/other/usb_dfu/usbdfu.c similarity index 100% rename from examples/stm32/other/usb_dfu/usbdfu.c rename to examples/stm32f1/other/usb_dfu/usbdfu.c diff --git a/examples/stm32/other/usb_dfu/usbdfu.ld b/examples/stm32f1/other/usb_dfu/usbdfu.ld similarity index 100% rename from examples/stm32/other/usb_dfu/usbdfu.ld rename to examples/stm32f1/other/usb_dfu/usbdfu.ld diff --git a/examples/stm32/other/usb_hid/Makefile b/examples/stm32f1/other/usb_hid/Makefile similarity index 100% rename from examples/stm32/other/usb_hid/Makefile rename to examples/stm32f1/other/usb_hid/Makefile diff --git a/examples/stm32/other/usb_hid/README b/examples/stm32f1/other/usb_hid/README similarity index 100% rename from examples/stm32/other/usb_hid/README rename to examples/stm32f1/other/usb_hid/README diff --git a/examples/stm32/other/usb_hid/usbhid.c b/examples/stm32f1/other/usb_hid/usbhid.c similarity index 100% rename from examples/stm32/other/usb_hid/usbhid.c rename to examples/stm32f1/other/usb_hid/usbhid.c diff --git a/examples/stm32/other/usb_hid/usbhid.ld b/examples/stm32f1/other/usb_hid/usbhid.ld similarity index 100% rename from examples/stm32/other/usb_hid/usbhid.ld rename to examples/stm32f1/other/usb_hid/usbhid.ld diff --git a/examples/stm32/stm32-discovery/button/Makefile b/examples/stm32f1/stm32-discovery/button/Makefile similarity index 100% rename from examples/stm32/stm32-discovery/button/Makefile rename to examples/stm32f1/stm32-discovery/button/Makefile diff --git a/examples/stm32/stm32-discovery/button/README b/examples/stm32f1/stm32-discovery/button/README similarity index 100% rename from examples/stm32/stm32-discovery/button/README rename to examples/stm32f1/stm32-discovery/button/README diff --git a/examples/stm32/stm32-discovery/button/button.c b/examples/stm32f1/stm32-discovery/button/button.c similarity index 100% rename from examples/stm32/stm32-discovery/button/button.c rename to examples/stm32f1/stm32-discovery/button/button.c diff --git a/examples/stm32/stm32-discovery/button/button.ld b/examples/stm32f1/stm32-discovery/button/button.ld similarity index 100% rename from examples/stm32/stm32-discovery/button/button.ld rename to examples/stm32f1/stm32-discovery/button/button.ld diff --git a/examples/stm32/stm32-discovery/fancyblink/Makefile b/examples/stm32f1/stm32-discovery/fancyblink/Makefile similarity index 100% rename from examples/stm32/stm32-discovery/fancyblink/Makefile rename to examples/stm32f1/stm32-discovery/fancyblink/Makefile diff --git a/examples/stm32/stm32-discovery/fancyblink/README b/examples/stm32f1/stm32-discovery/fancyblink/README similarity index 100% rename from examples/stm32/stm32-discovery/fancyblink/README rename to examples/stm32f1/stm32-discovery/fancyblink/README diff --git a/examples/stm32/stm32-discovery/fancyblink/fancyblink.c b/examples/stm32f1/stm32-discovery/fancyblink/fancyblink.c similarity index 100% rename from examples/stm32/stm32-discovery/fancyblink/fancyblink.c rename to examples/stm32f1/stm32-discovery/fancyblink/fancyblink.c diff --git a/examples/stm32/stm32-discovery/fancyblink/fancyblink.ld b/examples/stm32f1/stm32-discovery/fancyblink/fancyblink.ld similarity index 100% rename from examples/stm32/stm32-discovery/fancyblink/fancyblink.ld rename to examples/stm32f1/stm32-discovery/fancyblink/fancyblink.ld diff --git a/examples/stm32/stm32-discovery/miniblink/Makefile b/examples/stm32f1/stm32-discovery/miniblink/Makefile similarity index 100% rename from examples/stm32/stm32-discovery/miniblink/Makefile rename to examples/stm32f1/stm32-discovery/miniblink/Makefile diff --git a/examples/stm32/stm32-discovery/miniblink/README b/examples/stm32f1/stm32-discovery/miniblink/README similarity index 100% rename from examples/stm32/stm32-discovery/miniblink/README rename to examples/stm32f1/stm32-discovery/miniblink/README diff --git a/examples/stm32/stm32-discovery/miniblink/miniblink.c b/examples/stm32f1/stm32-discovery/miniblink/miniblink.c similarity index 100% rename from examples/stm32/stm32-discovery/miniblink/miniblink.c rename to examples/stm32f1/stm32-discovery/miniblink/miniblink.c diff --git a/examples/stm32/stm32-discovery/miniblink/miniblink.ld b/examples/stm32f1/stm32-discovery/miniblink/miniblink.ld similarity index 100% rename from examples/stm32/stm32-discovery/miniblink/miniblink.ld rename to examples/stm32f1/stm32-discovery/miniblink/miniblink.ld diff --git a/examples/stm32/stm32-discovery/rtc/Makefile b/examples/stm32f1/stm32-discovery/rtc/Makefile similarity index 100% rename from examples/stm32/stm32-discovery/rtc/Makefile rename to examples/stm32f1/stm32-discovery/rtc/Makefile diff --git a/examples/stm32/stm32-discovery/rtc/README b/examples/stm32f1/stm32-discovery/rtc/README similarity index 100% rename from examples/stm32/stm32-discovery/rtc/README rename to examples/stm32f1/stm32-discovery/rtc/README diff --git a/examples/stm32/stm32-discovery/rtc/rtc.c b/examples/stm32f1/stm32-discovery/rtc/rtc.c similarity index 100% rename from examples/stm32/stm32-discovery/rtc/rtc.c rename to examples/stm32f1/stm32-discovery/rtc/rtc.c diff --git a/examples/stm32/stm32-discovery/rtc/rtc.ld b/examples/stm32f1/stm32-discovery/rtc/rtc.ld similarity index 100% rename from examples/stm32/stm32-discovery/rtc/rtc.ld rename to examples/stm32f1/stm32-discovery/rtc/rtc.ld diff --git a/examples/stm32/stm32-discovery/usart/Makefile b/examples/stm32f1/stm32-discovery/usart/Makefile similarity index 100% rename from examples/stm32/stm32-discovery/usart/Makefile rename to examples/stm32f1/stm32-discovery/usart/Makefile diff --git a/examples/stm32/stm32-discovery/usart/README b/examples/stm32f1/stm32-discovery/usart/README similarity index 100% rename from examples/stm32/stm32-discovery/usart/README rename to examples/stm32f1/stm32-discovery/usart/README diff --git a/examples/stm32/stm32-discovery/usart/usart.c b/examples/stm32f1/stm32-discovery/usart/usart.c similarity index 100% rename from examples/stm32/stm32-discovery/usart/usart.c rename to examples/stm32f1/stm32-discovery/usart/usart.c diff --git a/examples/stm32/stm32-discovery/usart/usart.ld b/examples/stm32f1/stm32-discovery/usart/usart.ld similarity index 100% rename from examples/stm32/stm32-discovery/usart/usart.ld rename to examples/stm32f1/stm32-discovery/usart/usart.ld diff --git a/examples/stm32/stm32-h103/button/Makefile b/examples/stm32f1/stm32-h103/button/Makefile similarity index 100% rename from examples/stm32/stm32-h103/button/Makefile rename to examples/stm32f1/stm32-h103/button/Makefile diff --git a/examples/stm32/stm32-h103/button/button.c b/examples/stm32f1/stm32-h103/button/button.c similarity index 100% rename from examples/stm32/stm32-h103/button/button.c rename to examples/stm32f1/stm32-h103/button/button.c diff --git a/examples/stm32/stm32-h103/button/button.ld b/examples/stm32f1/stm32-h103/button/button.ld similarity index 100% rename from examples/stm32/stm32-h103/button/button.ld rename to examples/stm32f1/stm32-h103/button/button.ld diff --git a/examples/stm32/stm32-h103/exti_both/Makefile b/examples/stm32f1/stm32-h103/exti_both/Makefile similarity index 100% rename from examples/stm32/stm32-h103/exti_both/Makefile rename to examples/stm32f1/stm32-h103/exti_both/Makefile diff --git a/examples/stm32/stm32-h103/exti_both/exti_both.c b/examples/stm32f1/stm32-h103/exti_both/exti_both.c similarity index 100% rename from examples/stm32/stm32-h103/exti_both/exti_both.c rename to examples/stm32f1/stm32-h103/exti_both/exti_both.c diff --git a/examples/stm32/stm32-h103/exti_both/exti_both.ld b/examples/stm32f1/stm32-h103/exti_both/exti_both.ld similarity index 100% rename from examples/stm32/stm32-h103/exti_both/exti_both.ld rename to examples/stm32f1/stm32-h103/exti_both/exti_both.ld diff --git a/examples/stm32/stm32-h103/exti_rising_falling/Makefile b/examples/stm32f1/stm32-h103/exti_rising_falling/Makefile similarity index 100% rename from examples/stm32/stm32-h103/exti_rising_falling/Makefile rename to examples/stm32f1/stm32-h103/exti_rising_falling/Makefile diff --git a/examples/stm32/stm32-h103/exti_rising_falling/exti_rising_falling.c b/examples/stm32f1/stm32-h103/exti_rising_falling/exti_rising_falling.c similarity index 100% rename from examples/stm32/stm32-h103/exti_rising_falling/exti_rising_falling.c rename to examples/stm32f1/stm32-h103/exti_rising_falling/exti_rising_falling.c diff --git a/examples/stm32/stm32-h103/exti_rising_falling/exti_rising_falling.ld b/examples/stm32f1/stm32-h103/exti_rising_falling/exti_rising_falling.ld similarity index 100% rename from examples/stm32/stm32-h103/exti_rising_falling/exti_rising_falling.ld rename to examples/stm32f1/stm32-h103/exti_rising_falling/exti_rising_falling.ld diff --git a/examples/stm32/stm32-h103/fancyblink/Makefile b/examples/stm32f1/stm32-h103/fancyblink/Makefile similarity index 100% rename from examples/stm32/stm32-h103/fancyblink/Makefile rename to examples/stm32f1/stm32-h103/fancyblink/Makefile diff --git a/examples/stm32/stm32-h103/fancyblink/README b/examples/stm32f1/stm32-h103/fancyblink/README similarity index 100% rename from examples/stm32/stm32-h103/fancyblink/README rename to examples/stm32f1/stm32-h103/fancyblink/README diff --git a/examples/stm32/stm32-h103/fancyblink/fancyblink.c b/examples/stm32f1/stm32-h103/fancyblink/fancyblink.c similarity index 100% rename from examples/stm32/stm32-h103/fancyblink/fancyblink.c rename to examples/stm32f1/stm32-h103/fancyblink/fancyblink.c diff --git a/examples/stm32/stm32-h103/fancyblink/fancyblink.ld b/examples/stm32f1/stm32-h103/fancyblink/fancyblink.ld similarity index 100% rename from examples/stm32/stm32-h103/fancyblink/fancyblink.ld rename to examples/stm32f1/stm32-h103/fancyblink/fancyblink.ld diff --git a/examples/stm32/stm32-h103/led_stripe/Makefile b/examples/stm32f1/stm32-h103/led_stripe/Makefile similarity index 100% rename from examples/stm32/stm32-h103/led_stripe/Makefile rename to examples/stm32f1/stm32-h103/led_stripe/Makefile diff --git a/examples/stm32/stm32-h103/led_stripe/led_stripe.c b/examples/stm32f1/stm32-h103/led_stripe/led_stripe.c similarity index 100% rename from examples/stm32/stm32-h103/led_stripe/led_stripe.c rename to examples/stm32f1/stm32-h103/led_stripe/led_stripe.c diff --git a/examples/stm32/stm32-h103/led_stripe/led_stripe.ld b/examples/stm32f1/stm32-h103/led_stripe/led_stripe.ld similarity index 100% rename from examples/stm32/stm32-h103/led_stripe/led_stripe.ld rename to examples/stm32f1/stm32-h103/led_stripe/led_stripe.ld diff --git a/examples/stm32/stm32-h103/miniblink/Makefile b/examples/stm32f1/stm32-h103/miniblink/Makefile similarity index 100% rename from examples/stm32/stm32-h103/miniblink/Makefile rename to examples/stm32f1/stm32-h103/miniblink/Makefile diff --git a/examples/stm32/stm32-h103/miniblink/README b/examples/stm32f1/stm32-h103/miniblink/README similarity index 100% rename from examples/stm32/stm32-h103/miniblink/README rename to examples/stm32f1/stm32-h103/miniblink/README diff --git a/examples/stm32/stm32-h103/miniblink/miniblink.c b/examples/stm32f1/stm32-h103/miniblink/miniblink.c similarity index 100% rename from examples/stm32/stm32-h103/miniblink/miniblink.c rename to examples/stm32f1/stm32-h103/miniblink/miniblink.c diff --git a/examples/stm32/stm32-h103/miniblink/miniblink.ld b/examples/stm32f1/stm32-h103/miniblink/miniblink.ld similarity index 100% rename from examples/stm32/stm32-h103/miniblink/miniblink.ld rename to examples/stm32f1/stm32-h103/miniblink/miniblink.ld diff --git a/examples/stm32/stm32-h103/pwm_6step/Makefile b/examples/stm32f1/stm32-h103/pwm_6step/Makefile similarity index 100% rename from examples/stm32/stm32-h103/pwm_6step/Makefile rename to examples/stm32f1/stm32-h103/pwm_6step/Makefile diff --git a/examples/stm32/stm32-h103/pwm_6step/pwm_6step.c b/examples/stm32f1/stm32-h103/pwm_6step/pwm_6step.c similarity index 100% rename from examples/stm32/stm32-h103/pwm_6step/pwm_6step.c rename to examples/stm32f1/stm32-h103/pwm_6step/pwm_6step.c diff --git a/examples/stm32/stm32-h103/pwm_6step/pwm_6step.ld b/examples/stm32f1/stm32-h103/pwm_6step/pwm_6step.ld similarity index 100% rename from examples/stm32/stm32-h103/pwm_6step/pwm_6step.ld rename to examples/stm32f1/stm32-h103/pwm_6step/pwm_6step.ld diff --git a/examples/stm32/stm32-h103/spi/Makefile b/examples/stm32f1/stm32-h103/spi/Makefile similarity index 100% rename from examples/stm32/stm32-h103/spi/Makefile rename to examples/stm32f1/stm32-h103/spi/Makefile diff --git a/examples/stm32/stm32-h103/spi/README b/examples/stm32f1/stm32-h103/spi/README similarity index 100% rename from examples/stm32/stm32-h103/spi/README rename to examples/stm32f1/stm32-h103/spi/README diff --git a/examples/stm32/stm32-h103/spi/spi.c b/examples/stm32f1/stm32-h103/spi/spi.c similarity index 100% rename from examples/stm32/stm32-h103/spi/spi.c rename to examples/stm32f1/stm32-h103/spi/spi.c diff --git a/examples/stm32/stm32-h103/spi/spi.ld b/examples/stm32f1/stm32-h103/spi/spi.ld similarity index 100% rename from examples/stm32/stm32-h103/spi/spi.ld rename to examples/stm32f1/stm32-h103/spi/spi.ld diff --git a/examples/stm32/stm32-h103/timer/Makefile b/examples/stm32f1/stm32-h103/timer/Makefile similarity index 100% rename from examples/stm32/stm32-h103/timer/Makefile rename to examples/stm32f1/stm32-h103/timer/Makefile diff --git a/examples/stm32/stm32-h103/timer/timer.c b/examples/stm32f1/stm32-h103/timer/timer.c similarity index 100% rename from examples/stm32/stm32-h103/timer/timer.c rename to examples/stm32f1/stm32-h103/timer/timer.c diff --git a/examples/stm32/stm32-h103/timer/timer.ld b/examples/stm32f1/stm32-h103/timer/timer.ld similarity index 100% rename from examples/stm32/stm32-h103/timer/timer.ld rename to examples/stm32f1/stm32-h103/timer/timer.ld diff --git a/examples/stm32/stm32-h103/traceswo/Makefile b/examples/stm32f1/stm32-h103/traceswo/Makefile similarity index 100% rename from examples/stm32/stm32-h103/traceswo/Makefile rename to examples/stm32f1/stm32-h103/traceswo/Makefile diff --git a/examples/stm32/stm32-h103/traceswo/README b/examples/stm32f1/stm32-h103/traceswo/README similarity index 100% rename from examples/stm32/stm32-h103/traceswo/README rename to examples/stm32f1/stm32-h103/traceswo/README diff --git a/examples/stm32/stm32-h103/traceswo/traceswo.c b/examples/stm32f1/stm32-h103/traceswo/traceswo.c similarity index 100% rename from examples/stm32/stm32-h103/traceswo/traceswo.c rename to examples/stm32f1/stm32-h103/traceswo/traceswo.c diff --git a/examples/stm32/stm32-h103/traceswo/traceswo.ld b/examples/stm32f1/stm32-h103/traceswo/traceswo.ld similarity index 100% rename from examples/stm32/stm32-h103/traceswo/traceswo.ld rename to examples/stm32f1/stm32-h103/traceswo/traceswo.ld diff --git a/examples/stm32/stm32-h103/usart/Makefile b/examples/stm32f1/stm32-h103/usart/Makefile similarity index 100% rename from examples/stm32/stm32-h103/usart/Makefile rename to examples/stm32f1/stm32-h103/usart/Makefile diff --git a/examples/stm32/stm32-h103/usart/README b/examples/stm32f1/stm32-h103/usart/README similarity index 100% rename from examples/stm32/stm32-h103/usart/README rename to examples/stm32f1/stm32-h103/usart/README diff --git a/examples/stm32/stm32-h103/usart/usart.c b/examples/stm32f1/stm32-h103/usart/usart.c similarity index 100% rename from examples/stm32/stm32-h103/usart/usart.c rename to examples/stm32f1/stm32-h103/usart/usart.c diff --git a/examples/stm32/stm32-h103/usart/usart.ld b/examples/stm32f1/stm32-h103/usart/usart.ld similarity index 100% rename from examples/stm32/stm32-h103/usart/usart.ld rename to examples/stm32f1/stm32-h103/usart/usart.ld diff --git a/examples/stm32/stm32-h103/usart_irq/Makefile b/examples/stm32f1/stm32-h103/usart_irq/Makefile similarity index 100% rename from examples/stm32/stm32-h103/usart_irq/Makefile rename to examples/stm32f1/stm32-h103/usart_irq/Makefile diff --git a/examples/stm32/stm32-h103/usart_irq/usart_irq.c b/examples/stm32f1/stm32-h103/usart_irq/usart_irq.c similarity index 100% rename from examples/stm32/stm32-h103/usart_irq/usart_irq.c rename to examples/stm32f1/stm32-h103/usart_irq/usart_irq.c diff --git a/examples/stm32/stm32-h103/usart_irq/usart_irq.ld b/examples/stm32f1/stm32-h103/usart_irq/usart_irq.ld similarity index 100% rename from examples/stm32/stm32-h103/usart_irq/usart_irq.ld rename to examples/stm32f1/stm32-h103/usart_irq/usart_irq.ld diff --git a/examples/stm32/stm32-h103/usart_irq_printf/Makefile b/examples/stm32f1/stm32-h103/usart_irq_printf/Makefile similarity index 100% rename from examples/stm32/stm32-h103/usart_irq_printf/Makefile rename to examples/stm32f1/stm32-h103/usart_irq_printf/Makefile diff --git a/examples/stm32/stm32-h103/usart_irq_printf/usart_irq_printf.c b/examples/stm32f1/stm32-h103/usart_irq_printf/usart_irq_printf.c similarity index 100% rename from examples/stm32/stm32-h103/usart_irq_printf/usart_irq_printf.c rename to examples/stm32f1/stm32-h103/usart_irq_printf/usart_irq_printf.c diff --git a/examples/stm32/stm32-h103/usart_irq_printf/usart_irq_printf.ld b/examples/stm32f1/stm32-h103/usart_irq_printf/usart_irq_printf.ld similarity index 100% rename from examples/stm32/stm32-h103/usart_irq_printf/usart_irq_printf.ld rename to examples/stm32f1/stm32-h103/usart_irq_printf/usart_irq_printf.ld diff --git a/examples/stm32/stm32-h103/usart_printf/Makefile b/examples/stm32f1/stm32-h103/usart_printf/Makefile similarity index 100% rename from examples/stm32/stm32-h103/usart_printf/Makefile rename to examples/stm32f1/stm32-h103/usart_printf/Makefile diff --git a/examples/stm32/stm32-h103/usart_printf/usart_printf.c b/examples/stm32f1/stm32-h103/usart_printf/usart_printf.c similarity index 100% rename from examples/stm32/stm32-h103/usart_printf/usart_printf.c rename to examples/stm32f1/stm32-h103/usart_printf/usart_printf.c diff --git a/examples/stm32/stm32-h103/usart_printf/usart_printf.ld b/examples/stm32f1/stm32-h103/usart_printf/usart_printf.ld similarity index 100% rename from examples/stm32/stm32-h103/usart_printf/usart_printf.ld rename to examples/stm32f1/stm32-h103/usart_printf/usart_printf.ld diff --git a/examples/stm32/stm32-h103/usb_cdcacm/Makefile b/examples/stm32f1/stm32-h103/usb_cdcacm/Makefile similarity index 100% rename from examples/stm32/stm32-h103/usb_cdcacm/Makefile rename to examples/stm32f1/stm32-h103/usb_cdcacm/Makefile diff --git a/examples/stm32/stm32-h103/usb_cdcacm/README b/examples/stm32f1/stm32-h103/usb_cdcacm/README similarity index 100% rename from examples/stm32/stm32-h103/usb_cdcacm/README rename to examples/stm32f1/stm32-h103/usb_cdcacm/README diff --git a/examples/stm32/stm32-h103/usb_cdcacm/cdcacm.c b/examples/stm32f1/stm32-h103/usb_cdcacm/cdcacm.c similarity index 100% rename from examples/stm32/stm32-h103/usb_cdcacm/cdcacm.c rename to examples/stm32f1/stm32-h103/usb_cdcacm/cdcacm.c diff --git a/examples/stm32/stm32-h103/usb_cdcacm/cdcacm.ld b/examples/stm32f1/stm32-h103/usb_cdcacm/cdcacm.ld similarity index 100% rename from examples/stm32/stm32-h103/usb_cdcacm/cdcacm.ld rename to examples/stm32f1/stm32-h103/usb_cdcacm/cdcacm.ld diff --git a/examples/stm32/stm32-h103/usb_dfu/Makefile b/examples/stm32f1/stm32-h103/usb_dfu/Makefile similarity index 100% rename from examples/stm32/stm32-h103/usb_dfu/Makefile rename to examples/stm32f1/stm32-h103/usb_dfu/Makefile diff --git a/examples/stm32/stm32-h103/usb_dfu/README b/examples/stm32f1/stm32-h103/usb_dfu/README similarity index 100% rename from examples/stm32/stm32-h103/usb_dfu/README rename to examples/stm32f1/stm32-h103/usb_dfu/README diff --git a/examples/stm32/stm32-h103/usb_dfu/usbdfu.c b/examples/stm32f1/stm32-h103/usb_dfu/usbdfu.c similarity index 100% rename from examples/stm32/stm32-h103/usb_dfu/usbdfu.c rename to examples/stm32f1/stm32-h103/usb_dfu/usbdfu.c diff --git a/examples/stm32/stm32-h103/usb_dfu/usbdfu.ld b/examples/stm32f1/stm32-h103/usb_dfu/usbdfu.ld similarity index 100% rename from examples/stm32/stm32-h103/usb_dfu/usbdfu.ld rename to examples/stm32f1/stm32-h103/usb_dfu/usbdfu.ld diff --git a/examples/stm32/stm32-h103/usb_hid/Makefile b/examples/stm32f1/stm32-h103/usb_hid/Makefile similarity index 100% rename from examples/stm32/stm32-h103/usb_hid/Makefile rename to examples/stm32f1/stm32-h103/usb_hid/Makefile diff --git a/examples/stm32/stm32-h103/usb_hid/README b/examples/stm32f1/stm32-h103/usb_hid/README similarity index 100% rename from examples/stm32/stm32-h103/usb_hid/README rename to examples/stm32f1/stm32-h103/usb_hid/README diff --git a/examples/stm32/stm32-h103/usb_hid/usbhid.c b/examples/stm32f1/stm32-h103/usb_hid/usbhid.c similarity index 100% rename from examples/stm32/stm32-h103/usb_hid/usbhid.c rename to examples/stm32f1/stm32-h103/usb_hid/usbhid.c diff --git a/examples/stm32/stm32-h103/usb_hid/usbhid.ld b/examples/stm32f1/stm32-h103/usb_hid/usbhid.ld similarity index 100% rename from examples/stm32/stm32-h103/usb_hid/usbhid.ld rename to examples/stm32f1/stm32-h103/usb_hid/usbhid.ld diff --git a/examples/stm32/stm32-h103/usb_iap/Makefile b/examples/stm32f1/stm32-h103/usb_iap/Makefile similarity index 100% rename from examples/stm32/stm32-h103/usb_iap/Makefile rename to examples/stm32f1/stm32-h103/usb_iap/Makefile diff --git a/examples/stm32/stm32-h103/usb_iap/README b/examples/stm32f1/stm32-h103/usb_iap/README similarity index 100% rename from examples/stm32/stm32-h103/usb_iap/README rename to examples/stm32f1/stm32-h103/usb_iap/README diff --git a/examples/stm32/stm32-h103/usb_iap/usbiap.c b/examples/stm32f1/stm32-h103/usb_iap/usbiap.c similarity index 100% rename from examples/stm32/stm32-h103/usb_iap/usbiap.c rename to examples/stm32f1/stm32-h103/usb_iap/usbiap.c diff --git a/examples/stm32/stm32-h103/usb_iap/usbiap.ld b/examples/stm32f1/stm32-h103/usb_iap/usbiap.ld similarity index 100% rename from examples/stm32/stm32-h103/usb_iap/usbiap.ld rename to examples/stm32f1/stm32-h103/usb_iap/usbiap.ld diff --git a/examples/stm32/stm32-h107/fancyblink/Makefile b/examples/stm32f1/stm32-h107/fancyblink/Makefile similarity index 100% rename from examples/stm32/stm32-h107/fancyblink/Makefile rename to examples/stm32f1/stm32-h107/fancyblink/Makefile diff --git a/examples/stm32/stm32-h107/fancyblink/README b/examples/stm32f1/stm32-h107/fancyblink/README similarity index 100% rename from examples/stm32/stm32-h107/fancyblink/README rename to examples/stm32f1/stm32-h107/fancyblink/README diff --git a/examples/stm32/stm32-h107/fancyblink/fancyblink.c b/examples/stm32f1/stm32-h107/fancyblink/fancyblink.c similarity index 100% rename from examples/stm32/stm32-h107/fancyblink/fancyblink.c rename to examples/stm32f1/stm32-h107/fancyblink/fancyblink.c diff --git a/examples/stm32/stm32-h107/fancyblink/fancyblink.ld b/examples/stm32f1/stm32-h107/fancyblink/fancyblink.ld similarity index 100% rename from examples/stm32/stm32-h107/fancyblink/fancyblink.ld rename to examples/stm32f1/stm32-h107/fancyblink/fancyblink.ld diff --git a/examples/stm32/stm32-h107/usb_simple/Makefile b/examples/stm32f1/stm32-h107/usb_simple/Makefile similarity index 100% rename from examples/stm32/stm32-h107/usb_simple/Makefile rename to examples/stm32f1/stm32-h107/usb_simple/Makefile diff --git a/examples/stm32/stm32-h107/usb_simple/README b/examples/stm32f1/stm32-h107/usb_simple/README similarity index 100% rename from examples/stm32/stm32-h107/usb_simple/README rename to examples/stm32f1/stm32-h107/usb_simple/README diff --git a/examples/stm32/stm32-h107/usb_simple/usb_simple.c b/examples/stm32f1/stm32-h107/usb_simple/usb_simple.c similarity index 100% rename from examples/stm32/stm32-h107/usb_simple/usb_simple.c rename to examples/stm32f1/stm32-h107/usb_simple/usb_simple.c diff --git a/examples/stm32/stm32-h107/usb_simple/usb_simple.ld b/examples/stm32f1/stm32-h107/usb_simple/usb_simple.ld similarity index 100% rename from examples/stm32/stm32-h107/usb_simple/usb_simple.ld rename to examples/stm32f1/stm32-h107/usb_simple/usb_simple.ld