gicking / STM8-SPL_SDCC_patch

Patch for STM8 Standard Peripherals Libraries
Apache License 2.0
89 stars 13 forks source link

Patch for STM8 Standard Peripherals Library

with the great support by the SDCC community I provide here a patch for SDCC of the available Standard Peripheral Libraries from the STM homepage. For the respective device type, just search for:

Technical status:

Open points / questions to you:

Update legal status (2017-11-19):

Update legal status (2017-08-03):

For apply the patch: 1) download the respective STM8 Standard Peripheral Library from the STM homepage as described above 2) unzip compressed SPL file 3) download respective patch file and script "apply_patch.sh" from here 4) copy both files to same level as SPL directory 5) set correct patchfile in "apply_patch.sh" 6) run script "apply_patch.sh"

Please let me know if you experience problems with the patch process or the changes to the SPL.

My impression of the SPL is quite mixed. It seems much more complicated than e.g. Wiring for Arduino. However, as said before the STM8 SPL is very similar to the STM32 SPL. And for the latter with 100x registers, a standard HW-lib is almost mandatory. In addition STM provides a lot of example programs on their homepage, which are all based on the SPL. So I guess it’s worth digging into… Let me know what you think!?

Any feedback and/or support on the above open points is highly welcome!

Regards, Georg Icking-Konert