Skip to content

Commit 186e057

Browse files
committed
pass the value of build.mcu in boards.txt as a define to the compiler
1 parent 5c3d253 commit 186e057

2 files changed

Lines changed: 3 additions & 10 deletions

File tree

sduino/hardware/sduino/stm8/boards.txt

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,11 @@ stm8sblue.upload.protocol=stlinkv2
99
stm8sblue.upload.mcu=stm8s103?3
1010
stm8sblue.upload.maximum_size=8192
1111

12-
stm8sblue.build.mcu=stm8
12+
stm8sblue.build.mcu=STM8S103
1313
stm8sblue.build.f_cpu=16000000L
1414
stm8sblue.build.core=sduino
1515
stm8sblue.build.variant=standard
1616

1717
# meaningless variables just to keep the makefile happy
1818

1919
stm8sblue.upload.speed=1
20-
stm8blue.bootloader.low_fuses=0xff
21-
stm8blue.bootloader.high_fuses=0xde
22-
stm8blue.bootloader.extended_fuses=0x05
23-
stm8blue.bootloader.path=optiboot
24-
stm8blue.bootloader.file=optiboot_atmega328.hex
25-
stm8blue.bootloader.unlock_bits=0x3F
26-
stm8blue.bootloader.lock_bits=0x0F

sduino/sduino.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
MCU_FLAG_NAME = m
2+
MCU_FLAG_NAME = mstm8 -D
33

44
#ALTERNATE_CORE = sduino
55
#ARDUINO_VAR_PATH = ../../sduino
@@ -87,7 +87,7 @@ OVERRIDE_EXECUTABLES=yes
8787
ARDUINO_SKETCHBOOK = /tmp # temporarly, to prevent usage of the real libs
8888
ARDMK_VENDOR = sduino
8989
ARCHITECTURE = stm8
90-
CPPFLAGS += -DSTM8S103 -I. -I$(ARDUINO_DIR)/../STM8S_StdPeriph_Driver/inc -I/opt/sdcc/share/sdcc/include/
90+
CPPFLAGS += -I. -I$(ARDUINO_DIR)/../STM8S_StdPeriph_Driver/inc -I/opt/sdcc/share/sdcc/include/
9191
#CFLAGS = -I ../STM8S_StdPeriph_Driver/inc
9292
#LDFLAGS = --out-fmt-elf
9393
LDFLAGS += -L $(ARDUINO_DIR)/../STM8S_StdPeriph_Driver/src -L/opt/sdcc/share/sdcc/lib/stm8

0 commit comments

Comments
 (0)