diff --git a/miosix/arch/cortexM3_stm32f1/stm32f103c8_breakout/boot.cpp b/miosix/arch/cortexM3_stm32f1/stm32f103c8_bluepill/boot.cpp similarity index 100% rename from miosix/arch/cortexM3_stm32f1/stm32f103c8_breakout/boot.cpp rename to miosix/arch/cortexM3_stm32f1/stm32f103c8_bluepill/boot.cpp diff --git a/miosix/arch/cortexM3_stm32f1/stm32f103c8_breakout/interfaces-impl/arch_registers_impl.h b/miosix/arch/cortexM3_stm32f1/stm32f103c8_bluepill/interfaces-impl/arch_registers_impl.h similarity index 100% rename from miosix/arch/cortexM3_stm32f1/stm32f103c8_breakout/interfaces-impl/arch_registers_impl.h rename to miosix/arch/cortexM3_stm32f1/stm32f103c8_bluepill/interfaces-impl/arch_registers_impl.h diff --git a/miosix/arch/cortexM3_stm32f1/stm32f103c8_breakout/interfaces-impl/bsp.cpp b/miosix/arch/cortexM3_stm32f1/stm32f103c8_bluepill/interfaces-impl/bsp.cpp similarity index 100% rename from miosix/arch/cortexM3_stm32f1/stm32f103c8_breakout/interfaces-impl/bsp.cpp rename to miosix/arch/cortexM3_stm32f1/stm32f103c8_bluepill/interfaces-impl/bsp.cpp diff --git a/miosix/arch/cortexM3_stm32f1/stm32f103c8_breakout/interfaces-impl/bsp_impl.h b/miosix/arch/cortexM3_stm32f1/stm32f103c8_bluepill/interfaces-impl/bsp_impl.h similarity index 90% rename from miosix/arch/cortexM3_stm32f1/stm32f103c8_breakout/interfaces-impl/bsp_impl.h rename to miosix/arch/cortexM3_stm32f1/stm32f103c8_bluepill/interfaces-impl/bsp_impl.h index 1897ba4cfa3952793fdef979ff83b82965d1316a..d8645be2be377942eacdf0251d1f1201837514b1 100644 --- a/miosix/arch/cortexM3_stm32f1/stm32f103c8_breakout/interfaces-impl/bsp_impl.h +++ b/miosix/arch/cortexM3_stm32f1/stm32f103c8_bluepill/interfaces-impl/bsp_impl.h @@ -51,27 +51,14 @@ typedef Gpio<GPIOC_BASE,13> _led; inline void ledOn() { - _led::high(); + _led::low(); } inline void ledOff() { - _led::low(); + _led::high(); } -///\internal Pin connected to SD card detect -//TODO: no filesystem typedef Gpio<GPIOA_BASE,8> sdCardDetect; - -/** - * Polls the SD card sense GPIO - * \return true if there is an uSD card in the socket. - */ -/*TODO: no filesystem -inline bool sdCardSense() -{ - return sdCardDetect::value()==0; -}*/ - /** \} */ diff --git a/miosix/arch/cortexM3_stm32f1/stm32f103c8_breakout/stm32_64k+20k_rom.ld b/miosix/arch/cortexM3_stm32f1/stm32f103c8_bluepill/stm32_64k+20k_rom.ld similarity index 100% rename from miosix/arch/cortexM3_stm32f1/stm32f103c8_breakout/stm32_64k+20k_rom.ld rename to miosix/arch/cortexM3_stm32f1/stm32f103c8_bluepill/stm32_64k+20k_rom.ld diff --git a/miosix/config/Makefile.inc b/miosix/config/Makefile.inc index c10d25595e272c1541236dfaadff2f1f4186f19c..6ebf760f4ff1c41c4868103f3a875632d2995e51 100644 --- a/miosix/config/Makefile.inc +++ b/miosix/config/Makefile.inc @@ -35,7 +35,7 @@ #OPT_BOARD := stm32f100rc_solertegiard #OPT_BOARD := stm32f205rc_skyward_stormtrooper #OPT_BOARD := stm32f401vc_stm32f4discovery -#OPT_BOARD := stm32f103c8_breakout +#OPT_BOARD := stm32f103c8_bluepill #OPT_BOARD := stm32f100c8_microboard #OPT_BOARD := stm32f469ni_stm32f469i-disco #OPT_BOARD := stm32f429zi_skyward_homeone @@ -420,16 +420,16 @@ endif # No options ##--------------------------------------------------------------------------- -## stm32f103c8_breakout +## stm32f103c8_bluepill ## -ifeq ($(OPT_BOARD),stm32f103c8_breakout) +ifeq ($(OPT_BOARD),stm32f103c8_bluepill) ## Select clock frequency - CLOCK_FREQ := -DSYSCLK_FREQ_24MHz=24000000 + #CLOCK_FREQ := -DSYSCLK_FREQ_24MHz=24000000 #CLOCK_FREQ := -DSYSCLK_FREQ_36MHz=36000000 #CLOCK_FREQ := -DSYSCLK_FREQ_48MHz=48000000 #CLOCK_FREQ := -DSYSCLK_FREQ_56MHz=56000000 - #CLOCK_FREQ := -DSYSCLK_FREQ_72MHz=72000000 + CLOCK_FREQ := -DSYSCLK_FREQ_72MHz=72000000 endif @@ -906,7 +906,7 @@ else ifeq ($(OPT_BOARD),stm32f205rc_skyward_stormtrooper) ARCH := cortexM3_stm32f2 else ifeq ($(OPT_BOARD),stm32f401vc_stm32f4discovery) ARCH := cortexM4_stm32f4 -else ifeq ($(OPT_BOARD),stm32f103c8_breakout) +else ifeq ($(OPT_BOARD),stm32f103c8_bluepill) ARCH := cortexM3_stm32f1 else ifeq ($(OPT_BOARD),stm32f100c8_microboard) ARCH := cortexM3_stm32f1 @@ -1334,12 +1334,12 @@ else ifeq ($(ARCH),cortexM3_stm32f1) PROG ?= stm32flash -w $(if $(ROMFS_DIR), image.bin, main.bin) -v /dev/ttyUSB0 ##------------------------------------------------------------------------- - ## BOARD: stm32f103c8_breakout + ## BOARD: stm32f103c8_bluepill ## - else ifeq ($(OPT_BOARD),stm32f103c8_breakout) + else ifeq ($(OPT_BOARD),stm32f103c8_bluepill) ## Base directory with header files for this board - BOARD_INC := arch/cortexM3_stm32f1/stm32f103c8_breakout + BOARD_INC := arch/cortexM3_stm32f1/stm32f103c8_bluepill ## Select linker script LINKER_SCRIPT := $(BOARD_INC)/stm32_64k+20k_rom.ld @@ -1352,8 +1352,8 @@ else ifeq ($(ARCH),cortexM3_stm32f1) arch/common/drivers/servo_stm32.cpp ## Add a #define to allow querying board name - CFLAGS_BASE += -D_BOARD_STM32F103C8_BREAKOUT - CXXFLAGS_BASE += -D_BOARD_STM32F103C8_BREAKOUT + CFLAGS_BASE += -D_BOARD_STM32F103C8_BLUEPILL + CXXFLAGS_BASE += -D_BOARD_STM32F103C8_BLUEPILL ## Select programmer command line ## This is the program that is invoked when the user types diff --git a/miosix/config/arch/cortexM3_stm32f1/stm32f103c8_breakout/board_settings.h b/miosix/config/arch/cortexM3_stm32f1/stm32f103c8_bluepill/board_settings.h similarity index 100% rename from miosix/config/arch/cortexM3_stm32f1/stm32f103c8_breakout/board_settings.h rename to miosix/config/arch/cortexM3_stm32f1/stm32f103c8_bluepill/board_settings.h