mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-17 22:23:10 +03:00
@ -8,6 +8,9 @@ ARDUINO 1.5.6 BETA
|
|||||||
* TFT: warning messages in PImage class and strings inside examples now stored in flash to save RAM.
|
* TFT: warning messages in PImage class and strings inside examples now stored in flash to save RAM.
|
||||||
* Ethernet: added operator == for EthernetClient class (Norbert Truchsess)
|
* Ethernet: added operator == for EthernetClient class (Norbert Truchsess)
|
||||||
|
|
||||||
|
[core]
|
||||||
|
* sam: Fixed wrap-around bug in delay() (Mark Tillotson)
|
||||||
|
|
||||||
ARDUINO 1.5.5 BETA 2013.11.28
|
ARDUINO 1.5.5 BETA 2013.11.28
|
||||||
|
|
||||||
NOTICE:
|
NOTICE:
|
||||||
|
@ -74,9 +74,12 @@ uint32_t micros( void )
|
|||||||
|
|
||||||
void delay( uint32_t ms )
|
void delay( uint32_t ms )
|
||||||
{
|
{
|
||||||
uint32_t end = GetTickCount() + ms;
|
if (ms == 0)
|
||||||
while (GetTickCount() < end)
|
return;
|
||||||
|
uint32_t start = GetTickCount();
|
||||||
|
do {
|
||||||
yield();
|
yield();
|
||||||
|
} while (GetTickCount() - start < ms);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined ( __ICCARM__ ) /* IAR Ewarm 5.41+ */
|
#if defined ( __ICCARM__ ) /* IAR Ewarm 5.41+ */
|
||||||
|
Reference in New Issue
Block a user