-
Notifications
You must be signed in to change notification settings - Fork 256
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 support for bare-metal AVR #43
Conversation
Thanks. Will look into this after the holidays. |
Hi,
Will it nor break other platforms, like teensy or other non-AVR ones which supply their own Arduino.h? |
I am thinking further: wouldn't a simpler and safer (from the compatibility perspective) way be to include a small local Arduino.h include with your changes for the bare-metal implementations? This way there is no need to change the library at all. |
Upon further thinking I went with a explicit brute force approach:
All sketches seem to compile fine. Thanks |
Updated in the testing branch. Please test. |
As a matter of fact I don't think TaskScheduler uses #ifdef _TASK_BARE_METAL
extern unsigned long micros(void);
extern unsigned long millis(void);
#endif |
Will give you a little more time to test if you wish, otherwise will close this request. |
I believe the plain ARDUINO define is also used if you want a platform independent check for the Arduino environment. |
Pushed v2.6.0 into the "testing" branch with bare metal fwd definitions. Could you please test? |
I've added some changes to support using TaskScheduler on bare-metal AVR without the Arduino support libraries. Additional minor work is needed to do the same for ESP8266 and ESP32.