Skip to content

Commit 74fc370

Browse files
committed
update boards define
1 parent 29409be commit 74fc370

26 files changed

Lines changed: 3784 additions & 2703 deletions

File tree

sduino/hardware/sduino/stm8/boards.txt

Lines changed: 483 additions & 143 deletions
Large diffs are not rendered by default.

sduino/hardware/sduino/stm8/keywords.txt

Lines changed: 2751 additions & 2 deletions
Large diffs are not rendered by default.

sduino/hardware/sduino/stm8/platform.txt

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ version=1.8.5
1414
# For Board Manager installs these variables are already predefined and will
1515
# not be overwritten. This assignment is done only for manual installs.
1616
runtime.tools.sdcc.path={runtime.hardware.path}/tools/sdcc
17-
runtime.tools.STM8Tools.path={runtime.hardware.path}/tools/STM8Tools
17+
runtime.tools.sduino.path={runtime.hardware.path}/tools/STM8Tools
1818

1919

2020
# STM8 compile variables
@@ -28,14 +28,14 @@ compiler.warning_flags.all=-Wp-Wall -V
2828

2929
# Default "compiler.path" is correct, change only if you want to override the initial value
3030
compiler.path={runtime.tools.sdcc.path}/bin
31-
compiler.wrapper.path={runtime.tools.STM8Tools.path}/wrapper
32-
compiler.wrapper.path.windows={runtime.tools.STM8Tools.path}/win/bash" "{runtime.tools.STM8Tools.path}/wrapper
31+
compiler.wrapper.path={runtime.tools.sduino.path}/wrapper
32+
compiler.wrapper.path.windows={runtime.tools.sduino.path}/win/bash" "{runtime.tools.sduino.path}/wrapper
3333
compiler.tools.path={runtime.tools.avr-gcc.path}/bin
3434

3535
compiler.c.cmd=sdcc
3636
compiler.c.wrapper=sdcc.sh
3737
#compiler.c.flags=-MMD -c -Ddouble=float -D__PROG_TYPES_COMPAT__ --opt-code-size {compiler.warning_flags}
38-
compiler.c.flags=-MMD -c -Ddouble=float -D__PROG_TYPES_COMPAT__ {compiler.warning_flags}
38+
compiler.c.flags=-MMD -c --std-sdcc11 -Ddouble=float -D__PROG_TYPES_COMPAT__ {compiler.warning_flags}
3939
compiler.c.elf.flags=--code-size {upload.maximum_size} --iram-size {upload.maximum_data_size}
4040

4141
compiler.c.elf.cmd=sdcc
@@ -44,7 +44,7 @@ compiler.S.flags=-c -g -x assembler-with-cpp -flto
4444

4545
compiler.cpp.cmd=sdcc
4646
compiler.cpp.wrapper=sdcc.sh
47-
compiler.cpp.flags=-MMD -c -Ddouble=float -D__PROG_TYPES_COMPAT__ {compiler.warning_flags}
47+
compiler.cpp.flags={compiler.c.flags}
4848

4949
compiler.ar.cmd=sdar
5050
compiler.ar.wrapper=sdar.sh
@@ -59,16 +59,18 @@ compiler.elf2hex.flags=-O ihex -R DATA -R INITIALIZED -R SSEG
5959

6060
compiler.syslibs.stdlib.path={runtime.tools.sdcc.path}/share/sdcc
6161
compiler.syslibs.stdlib.path.windows={runtime.tools.sdcc.path}
62-
compiler.syslibs.spl.path={runtime.platform.path}/{build.stdlibpre}_StdPeriph_Driver
62+
#compiler.syslibs.spl.path={runtime.platform.path}/{build.stdlibpre}_StdPeriph_Driver
63+
compiler.syslibs.spl.path={build.system.path}/{build.stdlibpre}_StdPeriph_Driver
6364

6465
compiler.ldflags=
6566

6667
compiler.size.cmd=avr-size
6768

68-
compiler.systemincludes="-I{compiler.syslibs.spl.path}/inc" "-I{compiler.syslibs.stdlib.path}/include"
69+
compiler.systemincludes="-I{build.path}/sketch" "-I{build.system.path}/stm8chips" "-I{compiler.syslibs.spl.path}/inc" "-I{compiler.syslibs.stdlib.path}/include"
6970

7071
# This can be overridden in boards.txt
7172
build.extra_flags=
73+
build.log_level=
7274

7375
# These can be overridden in platform.local.txt
7476
compiler.c.extra_flags=
@@ -83,13 +85,13 @@ compiler.elf2hex.extra_flags=
8385
# --------------------
8486

8587
## Compile c files (re1)
86-
recipe.c.o.pattern="{compiler.wrapper.path}/{compiler.c.wrapper}" "{compiler.path}/{compiler.c.cmd}" "{source_file}" "{object_file}" re1 {compiler.c.flags} -mstm8 -D{build.mcu} -D{build.stdlibpre} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.c.extra_flags} {build.extra_flags} {includes} {compiler.systemincludes}
88+
recipe.c.o.pattern="{compiler.wrapper.path}/{compiler.c.wrapper}" "{compiler.path}/{compiler.c.cmd}" "{source_file}" "{object_file}" re1 {compiler.c.flags} -mstm8 -D{build.mcu} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.c.extra_flags} {build.extra_flags} {build.log_level} {includes} {compiler.systemincludes}
8789

8890
## Compile c++ files (re2)
89-
recipe.cpp.o.pattern="{compiler.wrapper.path}/{compiler.cpp.wrapper}" "{compiler.path}/{compiler.cpp.cmd}" "{source_file}" "{object_file}" re2 {compiler.cpp.flags} -mstm8 -D{build.mcu} -D{build.stdlibpre} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.cpp.extra_flags} {build.extra_flags} {includes} {compiler.systemincludes}
91+
recipe.cpp.o.pattern="{compiler.wrapper.path}/{compiler.cpp.wrapper}" "{compiler.path}/{compiler.cpp.cmd}" "{source_file}" "{object_file}" re2 {compiler.cpp.flags} -mstm8 -D{build.mcu} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.cpp.extra_flags} {build.extra_flags} {build.log_level} {includes} {compiler.systemincludes}
9092

9193
##FIXME Compile S files (re3)
92-
recipe.S.o.pattern="{compiler.path}/{compiler.c.cmd}" re3 {compiler.S.flags} -mstm8 -D{build.mcu} -D{build.stdlibpre} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.S.extra_flags} {build.extra_flags} {includes} "{source_file}" -o "{object_file}"
94+
recipe.S.o.pattern="{compiler.path}/{compiler.c.cmd}" re3 {compiler.S.flags} -mstm8 -D{build.mcu} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.S.extra_flags} {build.extra_flags} {build.log_level} {includes} "{source_file}" -o "{object_file}"
9395

9496
## Create archives (re4)
9597
# archive_file_path is needed for backwards compatibility with IDE 1.6.5 or older, IDE 1.6.6 or newer overrides this value

0 commit comments

Comments
 (0)