1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-10 14:42:08 +03:00
Commit Graph

108 Commits

Author SHA1 Message Date
344eb6e8db move digitalWrite and digitalRead to ram
if in flash it can produce uncalculated lag.

fix warning
2015-05-01 14:04:56 +02:00
9e4594dc3e Merge remote-tracking branch 'remotes/esp8266/esp8266' into esp8266 2015-05-01 13:57:13 +02:00
9fd686b853 wiring_digital: fix interrupts, initialize pins to INPUT on startup 2015-05-01 09:53:19 +08:00
fbec557ddb Importing my changes 2015-04-30 20:48:50 +03:00
1d2d8f8dd2 add function to get flash size based of flash Chip id 2015-04-30 16:06:01 +02:00
55b2d88d07 in Arduino.h make some errors by compiling in some cases moved to Esp.cpp 2015-04-30 15:19:36 +02:00
fab5104cff use User-defined literals for kHz, MHz, GHz, kBit, MBit, GBit, kB, MB and GB
see #145
2015-04-30 15:04:10 +02:00
cf9da93b61 Remove some definitions from global namespace
Names like kB, MB and kHz are likely to collide with variable names in user sketches.
Nowadays this should be implemented using c++14 user-defined literals (http://en.cppreference.com/w/cpp/language/user_literal)
2015-04-30 19:06:11 +08:00
a4536d5935 Minor code style changes 2015-04-30 18:54:16 +08:00
3d25914302 fix c&p fail 2015-04-30 11:34:44 +02:00
724baf7910 add functions to read out the flash config
Serial.print(F("Flash Chip Size: "));
Serial.println(ESP.getFlashChipSize());

Serial.print(F("Flash Chip Speed: "));
Serial.println(ESP.getFlashChipSpeed());

Serial.print(F("Flash Chip Mode: 0x"));
Serial.println(ESP.getFlashChipMode(), HEX);
2015-04-30 10:42:17 +02:00
8cb330eadf add ESP.getFlashChipId() 2015-04-29 22:33:15 +02:00
22f063b913 add _bv macro from avr
see #125
2015-04-29 07:01:34 +08:00
2472970933 fix some warnings
warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=]
warning: defined but not used [-Wunused-variable]
warning: declared 'static' but never defined [-Wunused-function]
warning: suggest parentheses around '&&' within '||' [-Wparentheses}
2015-04-29 07:01:28 +08:00
2b3302c714 add new macro for force function to ram
move uart_interrupt_handler in ram
2015-04-29 07:01:19 +08:00
a8658c8f1c Merge pull request #107 from Makuna/StrNAdditions
missing strn program space wrappers
2015-04-26 17:42:22 +08:00
468dff5e73 Merge pull request #108 from Makuna/strnlen
strnlen implementation
2015-04-26 17:41:38 +08:00
be5f1f83c1 HardwareSerial: add other configs than 8N1 2015-04-26 00:20:39 +02:00
7f6a588773 include stdlib_noniso.h in Arduino.h see #110 2015-04-25 10:43:10 +02:00
ca4c361a58 strnlen implementation
since there is no ets_strnlen, provide an implementation
2015-04-24 15:59:34 -07:00
b2fa3d5b1f missing strn program space wrappers 2015-04-24 15:46:02 -07:00
1d6fc00fdb uart_interrupt_handler is now in ram 2015-04-24 21:15:41 +02:00
021ca1972b fix bug #98 2015-04-22 16:44:30 +02:00
69734ed239 add INPUT_PULLDOWN support 2015-04-21 19:46:23 +02:00
f033fe8e6e Merge remote-tracking branch 'remotes/esp8266/esp8266' into esp8266 2015-04-21 19:25:23 +02:00
554233f4d3 add prototypes for ets_vsnprintf and ets_vprintf
fix some compiler warnings
2015-04-21 18:34:23 +02:00
d6bb217a56 Fix for undefined reference to strtok_r 2015-04-20 01:10:00 -05:00
7ceff75e33 test for #86 2015-04-19 10:25:25 +02:00
6bcb8198b8 add to ESP class:
getChipId
getSDKversion
getBootVersion
getBootMode
getCPUfreqMHz

add some defines for AVR like WDT control
2015-04-19 10:20:33 +02:00
8aa93b6bf6 add EspClass::getFreeHeap see #81 2015-04-19 09:50:58 +02:00
b6ea1e45af add includes for <stddef.h> <stdarg.h> <stdio.h> to Arduino.h
add strtok
2015-04-17 12:19:58 +02:00
6cf87708c5 add void restart(void) and uint16_t getVCC(void) to Esp class 2015-04-17 11:05:02 +02:00
4d3d818944 Merge remote-tracking branch 'remotes/esp8266/esp8266' into esp8266 2015-04-12 15:31:59 +02:00
6b593a7978 Add ESP.reset() method 2015-04-12 02:07:56 +08:00
56641b462f Merge remote-tracking branch 'remotes/esp8266/esp8266' into esp8266 2015-04-11 10:16:19 +02:00
273ee1a3b7 fix possible null ptrs in HardwareSerial.cpp 2015-04-11 10:14:38 +02:00
1866ef0c98 Move some functions to .irom0.text 2015-04-11 10:59:36 +08:00
5c94d333c5 Add watchdog and deep sleep APIs
requested in #34
2015-04-11 10:58:57 +08:00
0bd2ea1948 remove some warnings 2015-04-06 19:54:01 +02:00
f165a0afcd use Eclipse auto Format to get rip auf the tab, space and code style inconsistency 2015-04-06 19:33:50 +02:00
78ee754677 Merge remote-tracking branch 'remotes/esp8266/esp8266' into esp8266
Conflicts:
	hardware/esp8266com/esp8266/cores/esp8266/core_esp8266_noniso.c
2015-04-06 19:20:25 +02:00
3bb2de4a85 add flush() to unref() see #50 2015-04-06 19:17:19 +02:00
0276148613 fix printf corrupts Serial.print 2015-04-06 19:15:10 +02:00
be6b8f8a2d add more libc functions
add missing ICACHE_RODATA_ATTR define in #else case
2015-04-06 18:41:03 +02:00
ef75292d24 Definition of F() macro 2015-04-04 10:32:19 +03:00
5550792d7d add __ieee754 functions 2015-04-03 22:56:46 +02:00
b21ff941b2 Merge branch 'esp8266' of https://github.com/Links2004/Arduino into Links2004-esp8266
Conflicts:
	hardware/esp8266com/esp8266/cores/esp8266/core_esp8266_noniso.c
2015-04-03 18:51:13 +03:00
3b839f8907 add macro for vsnprintf_P and snprintf_P 2015-04-03 14:27:21 +02:00
0efbe3a0c8 remove completed libc 2015-04-03 13:41:29 +02:00
18effc3f9e fix sign handling in atof
fix #40
2015-04-03 12:50:09 +03:00