Skip to content

Commit 183cc9d

Browse files
committed
Merge branch 'spl-update' into development: Update SPL to v2.3.0
The patch- and build scripts are moved into the separate repository https://github.com/tenbaht/spl-splitter
2 parents 2dfc489 + a29d49e commit 183cc9d

81 files changed

Lines changed: 599 additions & 1218 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1212
- reduced binary size by splitting some Arduino core files
1313
- reduced binary size by optimizing the pinMode() implementation
1414
- using busybox as command shell for windows to run the wrapper scripts
15+
- move the SPL compilation scripts into a separate project spl-splitter
16+
- update SPL files to v2.3.0 (add support for STM8S001)
1517

1618
### Fixed
1719
- building the core library when using make (regression bug in 0.4.0)

sduino/hardware/sduino/stm8/STM8S_StdPeriph_Driver/README.md

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,22 @@
11
# Compiling the ST Standard Peripheral Library SPL
22

3+
The actual compiler scripts are now a project on their own:
4+
[spl-splitter](https://github.com/tenbaht/spl-splitter). The source files in
5+
src/ are still kept here for reference, but they might be removed later as
6+
they are not required anymore for compilation.
37

4-
all of this might be moved to this location at a later stage of the project:
8+
All of this might be moved to this location at a later stage of the project:
59
hardware/tools/stm8/STM8S_StdPeriph_Driver
610

711

8-
## STM8S903 and STM8AF622x
9-
10-
The definitions for these two (uncommon) CPUs are flawed in the original
11-
versions of the SPL. `inc/stm8s.h` needs
12-
[this patch](correct_stm8s908.patch) if you start from
13-
scratch with the stock SPL files from the ST website.
14-
15-
1612
## Supported CPUs
1713

1814
The script in `tools/showdeps.sh` lists the known CPU names defined in
1915
inc/stm8s.h. Some CPUs use identical libraries:
2016

2117
Product line | supported CPU types per library
2218
---------------------------------- | ---------------------------
23-
| Low density devices | STM8S003, STM8S103
19+
| Low density devices | STM8S001, STM8S003, STM8S103
2420
| Medium density devices | STM8S005, STM8S105, STM8AF626x
2521
| High density devices without CAN | STM8S007, STM8S207, STM8AF62Ax
2622
| High density devices with CAN | STM8S208, STM8AF52Ax
@@ -30,9 +26,9 @@ Product line | supported CPU types per library
3026

3127
Supported peripherie for the different CPUs:
3228

33-
CPU |STM8S003|STM8S005 |STM8S007 |STM8S208 |STM8S903 |
34-
|STM8S103|STM8S105 |STM8S207 | | |
35-
Module | |STM8AF626x|STM8AF62Ax |STM8AF52Ax| |STM8AF622x
29+
CPU |STM8S001|STM8S005 |STM8S007 |STM8S208 |STM8S903 |
30+
|STM8S003|STM8S105 |STM8S207 | | |
31+
Module |STM8S103|STM8AF626x|STM8AF62Ax |STM8AF52Ax| |STM8AF622x
3632
------ |:-----:|:------: |:------: |:------: |:------: |
3733
stm8s_adc1.c|+ |+ | | |+ |+
3834
stm8s_adc2.c| | |+ |+ | |
@@ -63,6 +59,14 @@ stm8s_wwdg.c|+ |+ |+ |+ |+ |+
6359
![Table of supported peripherie per CPU](peripherie.png)
6460

6561

62+
## STM8S903 and STM8AF622x
63+
64+
The definitions for these two (uncommon) CPUs are flawed in the original
65+
versions of the SPL. The patch for `inc/stm8s.h` is now part of the
66+
[STM8-SPL_SDCC_patch](https://github.com/gicking/STM8-SPL_SDCC_patch).
67+
68+
69+
6670
## Recycle bin
6771

6872
Some (maybe) useful leftovers. These code snipplets might be useful again

sduino/hardware/sduino/stm8/STM8S_StdPeriph_Driver/Release_Notes.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,10 @@ <h2 style="background: rgb(51, 102, 255) none repeat scroll 0% 50%; -moz-backgro
290290
<h2 style="background: rgb(51, 102, 255) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;"><a name="History"></a><span style="font-size: 12pt; color: white;">STM8S/A Standard Peripherals Library Drivers update history<o:p></o:p></span></h2>
291291

292292
<p class="MsoNormal"><span style="color: black;"><o:p>&nbsp;</o:p></span></p>
293-
<h3 style="background: rgb(51, 102, 255) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; margin-right: 500pt; width: 190px;"><span style="font-size: 10pt; font-family: Arial; color: white;">V2.2.0 / 30-September-2014<o:p></o:p></span></h3><p class="MsoNormal" style="margin: 4.5pt 0cm 4.5pt 18pt;"><b style=""><u><span style="font-size: 10pt; font-family: Verdana; color: black;">Main
293+
<h3 style="background: rgb(51, 102, 255) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; margin-right: 500pt; width: 190px;"><span style="font-size: 10pt; font-family: Arial; color: white;">V2.3.0 / 16-June-2017</span></h3><p class="MsoNormal" style="margin: 4.5pt 0cm 4.5pt 18pt;"><b style=""><u><span style="font-size: 10pt; font-family: Verdana; color: black;">Main
294+
Changes<o:p></o:p></span></u></b></p>
295+
<ul style="margin-top: 0cm;" type="square"><li class="MsoNormal" style="color: black; margin-top: 4.5pt; margin-bottom: 4.5pt;"><span style="font-size: 10pt; font-family: Verdana;">Peripheral drivers updated to </span><span style="font-size: 10pt; font-family: Verdana;"><span style="font-style: italic;"></span></span><span style="font-size: 10pt; font-family: Verdana;">support the </span><span style="font-size: 10pt; font-family: Verdana;"></span><span style="font-size: 10pt; font-family: Verdana;"><span style="font-style: italic;"><span style="font-weight: bold;">STM8S001J3 8K </span>(STM8S001)<span style="font-weight: bold;">
296+
</span></span>product family devices</span></li><li class="MsoNormal"><span style="font-size: 10pt; font-family: Verdana;">stm8s.h&nbsp;</span></li><ul><li class="MsoNormal"><span style="font-size: 10pt; font-family: Verdana;">A</span><span style="font-size: 10pt; font-family: Verdana;">dd new definition of <span style="font-style: italic;"><span style="font-weight: bold;">STM8S001&nbsp; </span></span>product family devices</span></li><li class="MsoNormal"><span style="font-size: 10pt; font-family: Verdana;">Add new define UNUSED to fix compilation warning with RAISONANCE</span></li></ul><li class="MsoNormal"><span style="font-size: 10pt; font-family: Verdana;">stm8s_flash.c&nbsp;</span></li><ul><li class="MsoNormal"><span style="font-size: 10pt; font-family: Verdana;">Update FLASH_WaitForLastOperation() to use UNUSED &nbsp;macro to fix compilation warning with RAISONANCE </span><span style="font-size: 10pt; font-family: Verdana;"></span></li></ul></ul><h3 style="background: rgb(51, 102, 255) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; margin-right: 500pt; width: 190px;"><span style="font-size: 10pt; font-family: Arial; color: white;">V2.2.0 / 30-September-2014<o:p></o:p></span></h3><p class="MsoNormal" style="margin: 4.5pt 0cm 4.5pt 18pt;"><b style=""><u><span style="font-size: 10pt; font-family: Verdana; color: black;">Main
294297
Changes<o:p></o:p></span></u></b></p>
295298
<ul style="margin-top: 0cm;" type="square"><li class="MsoNormal" style="color: black; margin-top: 4.5pt; margin-bottom: 4.5pt;"><span style="font-size: 10pt; font-family: Verdana;">Peripheral drivers updated to </span><span style="font-size: 10pt; font-family: Verdana;"><span style="font-style: italic;"></span></span><span style="font-size: 10pt; font-family: Verdana;">support the </span><span style="font-size: 10pt; font-family: Verdana;"></span><span style="font-size: 10pt; font-family: Verdana;"><span style="font-style: italic;"><span style="font-weight: bold;">STM8AF 8K </span>(STM8AF6223 and STM8AF6226)<span style="font-weight: bold;">
296299
</span></span>product family devices</span></li><ul><li class="MsoNormal" style="color: black; margin-top: 4.5pt; margin-bottom: 4.5pt;"><span style="font-size: 10pt; font-family: Verdana;">Impacted drivers are&nbsp;FLASH and&nbsp;ITC</span></li><li class="MsoNormal" style="color: black; margin-top: 4.5pt; margin-bottom: 4.5pt;"><span style="font-size: 10pt; font-family: Verdana;">Add a new driver stm8s_uart4.c/.h for the UART4 peripheral.</span></li><li class="MsoNormal" style="color: black; margin-top: 4.5pt; margin-bottom: 4.5pt;"><span style="font-size: 10pt; font-family: Verdana;">Peripheral drivers updated to </span><span style="font-size: 10pt; font-family: Verdana;"><span style="font-style: italic;"></span></span><span style="font-size: 10pt; font-family: Verdana;">support the </span><span style="font-size: 10pt; font-family: Verdana;"></span><span style="font-size: 10pt; font-family: Verdana;"><span style="font-style: italic;"><span style="font-weight: bold;">STM8AF 8K </span>(STM8AF6223 and STM8AF6226)<span style="font-weight: bold;">

sduino/hardware/sduino/stm8/STM8S_StdPeriph_Driver/compilelib.sh

Lines changed: 0 additions & 85 deletions
This file was deleted.

sduino/hardware/sduino/stm8/STM8S_StdPeriph_Driver/correct_stm8s908.patch

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)