1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-07 16:23:38 +03:00

50 Commits

Author SHA1 Message Date
Ivan Grokhotkov
85c05e9454 Merge pull request #647 from Links2004/esp8266
add parameter names to Arduino.h
2015-08-05 08:05:20 -04:00
Makuna
dfeed84ecb make compatible with existing interrupt lock class
Support both the normal auto lock at all levels, and the lock at a
specific level requiring different syntax
2015-08-03 19:55:56 -07:00
Makuna
57642c10b6 Interrupt cleanup
Fixes issue of reentrant calls to nointerrupts()
exposed functional replacements to cli sei and SREG when dealing with
interrupts
InterruptLock class to auto stop and restore interrupt level
Fix user ISR calls to be like Arduino with interrupts disabled fully.
2015-08-03 19:35:17 -07:00
Markus Sattler
5465eb1755 add parameter names to Arduino.h 2015-08-03 17:12:46 +02:00
Ivan Grokhotkov
e5d2ba5db8 Pass timeout to optimistic_yield, add cont_can_yield check 2015-07-20 15:48:25 +03:00
Makuna
17de2d7a4e define in header
remove extern from cpp files
2015-07-15 16:32:49 -07:00
Markus Sattler
ddf03fc92b Pulldown only possible for in 16. ( see #478 )
rename define to INPUT_PULLDOWN_16 to make it clear
2015-07-07 18:07:51 +03:00
John Doe
6f2069deac New Update library, example, upload and more
Proper error handling in the uploading python script
Much faster OTA example sketch with better results
New Update class that simplifies updating the firmware from any source
Updated Esp.updateSketch() to use the new class
2015-07-06 12:31:24 +03:00
Ivan Grokhotkov
fc83952685 Merge pull request #438 from Links2004/esp8266
update SDK to esp_iot_sdk_v1.1.2_15_06_16_p1
2015-06-26 20:33:02 +03:00
Makuna
28a5a4c97e correct sync use
rsil doesn't require a sync,
isync  needed for processor state register
esync needed to get special register
2015-06-26 20:27:13 +03:00
Markus Sattler
1f1497264b disable WiFi DEBUG_WIFI_MULTI
add _min and _max define as workaround
2015-06-20 20:55:08 +02:00
Markus Sattler
af4f2d5e28 sync with arduino avr src 2015-06-19 10:53:35 +02:00
Duality
533b6c184b added NOT_ON_TIMER and digitalPinToTimer defines to make a liquidcrystal library workd (that uses i2c) 2015-06-11 12:37:17 +03:00
John Doe
6ae438b035 add PWM Range control
setting freq to 50, range to 20000 and writing between 700 and 2200
gives servo control for example
2015-06-02 01:11:08 +03:00
Me No Dev
1d185d0391 Merge pull request #1 from Makuna/Servo
Servo
2015-05-30 15:31:02 +03:00
Makuna
3c3bc0f523 Timer0 and Servo library support
This exposes the Timer0
This provides a Servo library support compatible with Arduino Servo
library but only supports the two timers the esp8266 has available
2015-05-29 13:30:15 -07:00
Ivan Grokhotkov
6387005c7f Add wakeup pullup and pulldown pin modes 2015-05-29 21:26:23 +03:00
Markus Sattler
f18bb28813 fix bug #343
add __attribute__ to printf functions for better compiler warning handling.
remove ICACHE_FLASH_ATTR, all cpp files are automatic in FLASH (ld script)
2015-05-28 18:58:09 +02:00
Ivan Grokhotkov
db1e033186 Remove SPIFFS wrapper 2015-05-23 10:13:59 +03:00
Ivan Grokhotkov
d4d4beb0d5 Fix issue with min/max
fix #263
2015-05-18 22:52:14 +03:00
Ivan Grokhotkov
1db2c8aa89 Support for multiple FileSystem instances 2015-05-18 13:45:34 +03:00
ficeto
b902e86cb1 disable all interrupts when reading from spiffs
this fixes any possible resets caused by interrupt routines trying to
read the flash while there is an ongoing spiffs operation
2015-05-16 21:01:51 +03:00
ficeto
0897f9e2e3 fix reading bytes from incoming POST upload
proper error and premature connection loss should be implemented to
handle weird cases where we might not get the whole post content
2015-05-15 02:22:00 +03:00
ficeto
cde17ac259 Merge pull request #19 from esp8266/esp8266
pull latest changes
2015-05-14 11:48:36 +03:00
Ivan Grokhotkov
eb37830238 move hexdump declaration to debug.h 2015-05-14 02:48:30 +03:00
Markus Sattler
a17aded8d6 add hexdump function for easy debugging.
Output:
[HEXDUMP] Address: 0x3FFF5188 len: 0x200 (512)
[0x3FFF5188] 0x00000000: E6 D1 E6 D1 E6 D1 E6 D1 E6 D1 E6 D1 E6 D1 E6 D1
[0x3FFF5198] 0x00000010: E6 D1 E6 D1 E6 D1 E6 D1 E6 D1 E6 D1 E6 D1 E6 D1
[0x3FFF51A8] 0x00000020: E6 D1 E6 D1 E6 D1 E6 D1 E6 D1 E6 D1 E6 D1 E6 D1
[0x3FFF51B8] 0x00000030: E6 D1 E6 D1 E6 D1 E6 D1 E6 D1 E6 D1 E6 D1 E6 D1
[0x3FFF51C8] 0x00000040: E6 D1 E6 D1 E6 D1 E6 D1 E6 D1 E6 D1 E6 D1 E6 D1
[0x3FFF51D8] 0x00000050: E6 D1 E6 D1 E6 D1 E6 D1 E6 D1 E6 D1 E6 D1 E6 D1
[0x3FFF51E8] 0x00000060: E6 D1 E6 D1 E6 D1 E6 D1 E6 D1 E6 D1 E6 D1 E6 D1
....
2015-05-13 22:54:09 +02:00
ficeto
3ff7641329 Add SPIFFS Support 2015-05-13 19:50:31 +03:00
ficeto
3ff208c3e9 add pwm freq adjustment 2015-05-11 14:28:37 +03:00
Makuna
367962d89e refactored xt_disable_intterupts to accept level
due to the rsil requirement that the level be a constant, the method was
moved into a macro
2015-05-07 12:29:37 -07:00
Makuna
c328452651 true interrupt enable and disable
plus expose cycle count for bit bang timing
2015-05-06 08:42:38 -07:00
ficeto
4e41c2399b add OUTPUT_OPEN_DRAIN
disabling pulls on pinMode is not needed, since they are cleared 2
lines above.
2015-05-05 13:07:48 +03:00
ficeto
3d0dafcbc0 fix UART RX PullUps and TWI 2015-05-03 17:51:06 +03:00
Markus Sattler
851f07cdf5 replease digitalPinToPort, digitalPinToBitMask, portOutputRegister, portInputRegister, portModeRegister by macros 2015-05-02 15:54:45 +02:00
ficeto
fbec557ddb Importing my changes 2015-04-30 20:48:50 +03:00
Ivan Grokhotkov
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
Markus Sattler
3d25914302 fix c&p fail 2015-04-30 11:34:44 +02:00
Markus Sattler
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
Markus Sattler
22f063b913 add _bv macro from avr
see #125
2015-04-29 07:01:34 +08:00
Markus Sattler
7f6a588773 include stdlib_noniso.h in Arduino.h see #110 2015-04-25 10:43:10 +02:00
Markus Sattler
69734ed239 add INPUT_PULLDOWN support 2015-04-21 19:46:23 +02:00
Markus Sattler
b6ea1e45af add includes for <stddef.h> <stdarg.h> <stdio.h> to Arduino.h
add strtok
2015-04-17 12:19:58 +02:00
Ivan Grokhotkov
5c94d333c5 Add watchdog and deep sleep APIs
requested in #34
2015-04-11 10:58:57 +08:00
Markus Sattler
f165a0afcd use Eclipse auto Format to get rip auf the tab, space and code style inconsistency 2015-04-06 19:33:50 +02:00
Ivan Grokhotkov
811031cbd6 Add functions for direct IO register access 2015-01-26 02:08:26 +03:00
Ivan Grokhotkov
4942ceef37 Add pgmspace stubs to improve compatibility with AVR libraries 2015-01-07 01:55:27 +03:00
Ivan Grokhotkov
f51f18fb0a Implement interrupts/noInterrupts 2014-12-23 12:31:26 +03:00
Ivan Grokhotkov
43b9dd9edf Clean up unused stuff 2014-12-19 01:39:27 +03:00
Ivan Grokhotkov
31a8539763 Open-drain output mode 2014-12-05 00:05:01 +03:00
Ivan Grokhotkov
15b434f5e2 Fix build errors 2014-11-21 12:15:50 +03:00
Ivan Grokhotkov
04fe8e8b58 Basic support for esp8266 platform
This includes empty stubs for most core Arduino functions.
Need to actually implement all those digital reads writes whatever.
Need to prebuild toolchains (xtensa-elf-lx106) for 3 platforms and put them on some download server.
Need to do the same with esptool.
Need to fix 0x40000 binary generation and add correct upload commands.
Maybe even implement uploads over WiFi.
2014-11-15 10:45:08 +03:00