1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-23 19:21:59 +03:00

define in header

remove extern from cpp files
This commit is contained in:
Makuna
2015-07-15 16:32:49 -07:00
parent 0b2fb8d3ee
commit 17de2d7a4e
7 changed files with 2 additions and 11 deletions

View File

@ -39,6 +39,7 @@ extern "C" {
#include "twi.h"
void yield(void);
void optimistic_yield(void);
#define HIGH 0x1
#define LOW 0x0

View File

@ -551,8 +551,6 @@ bool HardwareSerial::isRxEnabled(void) {
return _uart->rxEnabled;
}
extern "C" void optimistic_yield();
int HardwareSerial::available(void) {
int result = 0;

View File

@ -87,7 +87,7 @@ extern "C" void __yield() {
}
extern "C" void yield(void) __attribute__ ((weak, alias("__yield")));
extern "C" void optimistic_yield() {
extern "C" void optimistic_yield(void) {
if (!ETS_INTR_WITHINISR() &&
(system_get_time() - g_micros_at_last_task_yield) > OPTIMISTIC_YIELD_TIME_US)
{