Skip to content

Commit 6e56fd0

Browse files
committed
zephyrCommon: Implement yield()
* 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]>
1 parent dcfa045 commit 6e56fd0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cores/arduino/zephyrCommon.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
#include "Arduino.h"
7+
#include <Arduino.h>
8+
9+
void yield(void) {
10+
k_yield();
11+
}
812

913
/*
1014
* The ACTIVE_HIGH flag is set so that A low physical

0 commit comments

Comments
 (0)