Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples #2

Open
cocus opened this issue Mar 2, 2021 · 2 comments
Open

Examples #2

cocus opened this issue Mar 2, 2021 · 2 comments

Comments

@cocus
Copy link

cocus commented Mar 2, 2021

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!

@midnight-wonderer
Copy link
Member

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

@cocus
Copy link
Author

cocus commented Mar 4, 2021

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants