zephyrproject-rtos / gsoc-2022-arduino-core

Arduino Core Zephyr Module (GSoC 2022 Project)
Apache License 2.0
44 stars 11 forks source link

building external library fails with yield not implemented errors #40

Closed DhruvaG2000 closed 2 years ago

DhruvaG2000 commented 2 years ago

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.