-
Notifications
You must be signed in to change notification settings - Fork 26
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
Add native-blink example #46
Conversation
Adds a native blink example using only one C file and the device header file for comfort from https://github.com/gicking/STM8_headers The MIT license is FOSS and a copy of the license is included per license requirements.
Looks great! I'm wondering though whether it makes sense to wrap the https://github.com/gicking/STM8_headers repo into a header-only library, so we won't need to sync that native example each time when the headers update. |
I've actually done so at gicking/STM8_headers#5 to make the repo a PlatformIO compatible library, but it hasn't been merged yet. My original repo https://github.com/maxgerhardt/stm8-headers-pio had a copy of that library (with the If it gets merged we should be able to just point at
(or at its name in the library repository if it gets uploaded) For just "getting it to work" I copy-pasted the three files for the three specified environments in here and copied the license file. |
hi, I just merged the PR gicking/STM8_headers#5. Sorry for the delay! |
Hi @maxgerhardt ! Any chance you could refactor this example to use STM8_headers as a library? |
Sadly there's no tag that I can reference, and I don't want to assume everyone has git installed to reference a commit, so I use a referenze to the ZIP file of the master branch.
I've rebased the example to use
and without the local copy of the files. Sadly there's no tag / stable release I can reference (without assuming all people have a git client installed), and no safe backup copy is in the PIO library registry. Is this okay or should we do it another way? |
Thanks again for the PR! I think it's good enough to pull a zip from the master branch so as you mentioned it will work for users without Git installed. |
just created a tag v1.0 of the FOSS STM8_headers, see https://github.com/gicking/STM8_headers/releases/tag/v1.0 |
Adds a native blink example using only one C file and the device header file for comfort from https://github.com/gicking/STM8_headers from @gicking. Analogue to https://github.com/platformio/platform-atmelavr/tree/develop/examples/native-blink.
The STM8_header's MIT license is FOSS and a copy of the license is included per license requirements as the
LICENSE_STM8_HEADERS
file.Also, a small project description is added in the README file.
This project is debuggable in all cases and doesn't trigger any of the two SDCC bugs currently plaguing SPL and Arduino.