Skip to content

Commit 3c3427b

Browse files
author
oclyke
committed
implement yield
1 parent b83289b commit 3c3427b

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

core-extend/ArduinoAPI.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@
88

99
#include "core-extend/Common.h"
1010
#include "core-extend/HardwareSerial.h"
11+
#include "core-extend/Yield.h"
1112

1213
#endif // _ARDUINO_MBED_BRIDGE_CORE_EXTEND_ARDUINOAPI_H_

core-extend/Yield.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/*
2+
// This file is subject to the terms and conditions defined in
3+
// file 'LICENSE.md', which is part of this source code package.
4+
*/
5+
6+
#ifndef _ARDUINO_MBED_BRIDGE_CORE_EXTEND_ARDUINOAPI_H_
7+
#define _ARDUINO_MBED_BRIDGE_CORE_EXTEND_ARDUINOAPI_H_
8+
9+
void yield( void );
10+
11+
#endif // _ARDUINO_MBED_BRIDGE_CORE_EXTEND_ARDUINOAPI_H_

core-implement/Yield.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/*
2+
// This file is subject to the terms and conditions defined in
3+
// file 'LICENSE.md', which is part of this source code package.
4+
*/
5+
6+
#include "core-extend/Yield.h"
7+
8+
void yield( void ){
9+
// do nothing
10+
}

0 commit comments

Comments
 (0)