RedBearLab / nRF51822-Arduino

Moved to https://github.com/redbear/nRF5x
252 stars 109 forks source link

Add yield() API #58

Open AdySan opened 8 years ago

AdySan commented 8 years ago

This Arduino core seems to be missing yield() function. Arduino added this "optional" api, important for all the 32bit chips due to core requirements. Even most AVRs use it.

Reference: https://www.arduino.cc/en/Reference/Scheduler https://www.arduino.cc/en/Reference/APIStyleGuide

rogerclarkmelbourne commented 8 years ago

Which version of the Arduino IDE supports the "Scheduler"

I have IDE 1.6.9 with SAM and SAMD installed and tried their example code by selecting the Due, and it doesnt compile as Scheduler.h doesnt exist.

Even the documentation here https://www.arduino.cc/en/Reference/Scheduler says this is experimental

So its rather premature to ask for it, when even Arduino.cc have not posted code to do it