Skip to content

building external library fails with yield not implemented errors #40

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

Closed
DhruvaG2000 opened this issue Aug 29, 2022 · 0 comments · Fixed by #41
Closed

building external library fails with yield not implemented errors #40

DhruvaG2000 opened this issue Aug 29, 2022 · 0 comments · Fixed by #41

Comments

@DhruvaG2000
Copy link
Collaborator

Fix is to just:

diff --git a/cores/arduino/zephyrCommon.cpp b/cores/arduino/zephyrCommon.cpp
index a9c053b..7e47fcc 100644
--- a/cores/arduino/zephyrCommon.cpp
+++ b/cores/arduino/zephyrCommon.cpp
@@ -6,6 +6,9 @@

 #include "Arduino.h"

+void yield(void) {}
+//empty
+
 /*
  *  The ACTIVE_HIGH flag is set so that A low physical
  *  level on the pin will be interpreted as value 0.
@beriberikix beriberikix changed the title building external library fails with yeild not implemented errors building external library fails with yield not implemented errors Aug 29, 2022
DhruvaG2000 added a commit that referenced this issue Aug 31, 2022
* Fixes #40
* yield(): causes the current thread to yield execution to another thread of the same or higher priority.
If there are no other ready threads of the same or higher priority, the routine returns immediately.
* Also replace include Arduino "" with <>.

Signed-off-by: Dhruva Gole <[email protected]>
DhruvaG2000 added a commit that referenced this issue Sep 1, 2022
* Fixes #40
* yield(): causes the current thread to yield execution to another thread of the same or higher priority.
If there are no other ready threads of the same or higher priority, the routine returns immediately.
* Also replace include Arduino "" with <>.

Signed-off-by: Dhruva Gole <[email protected]>
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

Successfully merging a pull request may close this issue.

1 participant