Open cocus opened 3 years ago
Not sure what kind of examples you are looking for. To me, the header is just a bunch of special function registers definitions.
I also authored a few firmware of STM8s. Does any of these can serve as examples? https://github.com/midnight-wonderer/stm8s-watchdog https://github.com/midnight-wonderer/stm8s-uart1-transceiver https://github.com/midnight-wonderer/stm8s-tim4-periodic-timer
Well, to begin with, these headers have prototype functions which are NOT included, and, since this is a header definition of devices, should not have function prototypes of the StdPeriphLib. Besides that, yes, those links can be used as examples. Thank you!
Hi, and thanks for your work! I would like to see some SDCC examples using this. I'm currently migrating a project from IAR to SDCC and it's becoming quite difficult to manage the differences without a good set of "common" headers. These ones seem to do fine, but I'm not sure how to properly use them (i.e. take advantage of them fully). Do you mind adding some examples on how to use them? Thank you!