[gnoduino] Revert "Backported 'yield()' hook from 1.5.x"



commit d056681b531168102db52859c2696663179d1c77
Author: Lucian Langa <lucilanga gnome org>
Date:   Mon Apr 27 20:19:22 2015 +0200

    Revert "Backported 'yield()' hook from 1.5.x"
    
    This reverts commit 7595d48113dcfb39ef61d593a337143d1220ee6f.

 hardware/arduino/cores/arduino/Arduino.h |    2 -
 hardware/arduino/cores/arduino/hooks.c   |   31 ------------------------------
 hardware/arduino/cores/arduino/wiring.c  |    1 -
 3 files changed, 0 insertions(+), 34 deletions(-)
---
diff --git a/hardware/arduino/cores/arduino/Arduino.h b/hardware/arduino/cores/arduino/Arduino.h
index cc1759d..2e69019 100755
--- a/hardware/arduino/cores/arduino/Arduino.h
+++ b/hardware/arduino/cores/arduino/Arduino.h
@@ -34,8 +34,6 @@
 extern "C"{
 #endif
 
-void yield(void);
-
 #define HIGH 0x1
 #define LOW  0x0
 
diff --git a/hardware/arduino/cores/arduino/wiring.c b/hardware/arduino/cores/arduino/wiring.c
index 75077b9..bea99d1 100644
--- a/hardware/arduino/cores/arduino/wiring.c
+++ b/hardware/arduino/cores/arduino/wiring.c
@@ -111,7 +111,6 @@ void delay(unsigned long ms)
        uint16_t start = (uint16_t)micros();
 
        while (ms > 0) {
-               yield();
                if (((uint16_t)micros() - start) >= 1000) {
                        ms--;
                        start += 1000;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]