1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-21 10:26:06 +03:00

4405 Commits

Author SHA1 Message Date
Jon Watte
3049d48d56 Fix UDP send to not temporarily use connect() 2015-05-10 14:00:50 -07:00
ficeto
8fac77b0c3 Merge pull request #16 from esp8266/esp8266
pull latest changes
2015-05-10 18:57:05 +03:00
Markus Sattler
27f45a205a SD:
- optimize SPI usage 148% write speed (24kB/s -> 37kB/s) and 127% read speed (121kB/s -> 155kB/s) at 8MHz
 - add clock frequency as parameter for begin(csPin, frequency)
 - SD @80MHz write: 84kB/s read: 231kB/s

SPI add functions:
 - void write32(uint32_t data);
 - void write32(uint32_t data, bool msb);
 - void transferBytes(uint8_t * out, uint8_t * in, uint32_t size);

Adafruit_ILI9341:
 - code clean
2015-05-10 17:34:16 +02:00
Markus Sattler
539aa19305 Merge remote-tracking branch 'remotes/ficeto/esp8266' into esp8266 2015-05-10 09:35:14 +02:00
Markus Sattler
070f2b3a14 many speed optimizations in Adafruit_ILI9341 lib (3x times faster)
add new SPI function:

  void write(uint8_t data);
  void write16(uint16_t data);
  void write16(uint16_t data, bool msb);
  void writeBytes(uint8_t * data, uint32_t size);
  void writePattern(uint8_t * data, uint8_t size, uint32_t repeat);

Adafruit_ILI9341:
| Benchmark                 | Old (ms) | New (ms) | Speedup     |
| ------------------------- | -------- | -------- | ----------- |
| Screen fill 				| 1248369  | 278707   |  +347,91%   |
| Text 						| 86102    | 53785    |  +60,09%    |
| Lines 					| 825400   | 536374   |  +53,89%    |
| Horiz/Vert Lines 			| 101875   | 24653    |  +313,24%   |
| Rectangles (outline) 		| 65720    | 17295    |  +279,99%   |
| Rectangles (filled) 		| 2592250  | 579157   |  +347,59%   |
| Circles (filled) 			| 411475   | 179454   |  +129,29%   |
| Circles (outline) 		| 360002   | 233584   |  +54,12%    |
| Triangles (outline)		| 261772   | 170118   |  +53,88%    |
| Triangles (filled) 		| 866951   | 246237   |  +252,08%   |
| Rounded rects (outline) 	| 154131   | 81570    |  +88,96%    |
| Rounded rects (filled) 	| 2828112  | 660983   |  +327,86%   |
|                           |          |          |             |
| Total                     | 9802159  | 3061917  |  +220,13%   |
2015-05-09 16:19:32 +02:00
ficeto
7001086920 fix binary file http upload 2015-05-09 14:21:53 +03:00
Ivan Grokhotkov
5407b064b0 Merge pull request #206 from Links2004/esp8266
rework Adafruit_ILI9341 complete now work with the new SPI implementation
2015-05-08 22:45:23 +03:00
Ivan Grokhotkov
6317355049 Merge pull request #205 from ficeto/esp8266
Fix SPI Clocks for SD Library
2015-05-08 22:43:55 +03:00
Markus Sattler
dcc899a1b5 some speed optimizations 2015-05-08 15:33:48 +02:00
Markus Sattler
7c33efc3d8 fix SPI run on system clock 2015-05-08 15:30:27 +02:00
Markus Sattler
51b1daf643 add esp8266_tcp_active_close.png image 2015-05-08 15:04:45 +02:00
Markus Sattler
5cbcd1da3c rework Adafruit_ILI9341 complete now uses the new SPI implementation
tested with example graphicstest_esp8266

add missing define to SPI.h
2015-05-08 14:45:47 +02:00
ficeto
8ce762db16 increase SD Card SPI Speed 2015-05-08 13:22:49 +03:00
ficeto
85aac8af89 fix SPI clock for SD library 2015-05-08 11:44:45 +03:00
ficeto
0dc759990e Merge pull request #15 from esp8266/esp8266
pull latest changes
2015-05-08 11:19:38 +03:00
Ivan Grokhotkov
e1b8017762 Merge pull request #203 from ficeto/esp8266
add proper POST support and more methods
add proper POST support and more methods
2015-05-08 08:28:25 +03:00
Ivan Grokhotkov
7e15659c29 Merge pull request #200 from Makuna/esp8266
true noInterrupts() interrupts() support
2015-05-08 08:28:10 +03:00
Ivan Grokhotkov
5969f56f5e Merge pull request #199 from Links2004/esp8266
SPI improvement and bugfix
2015-05-08 08:27:49 +03:00
ficeto
7e0a104cb5 fix huge leak 2015-05-08 03:30:41 +03:00
ficeto
a924ba1336 add proper POST support and more methods
GET params are always added
plain POST is added to the GET arguments
Uploads are handled by separate handler
2015-05-08 02:45:03 +03:00
ficeto
e6bb6b3a0d Merge pull request #14 from esp8266/esp8266
pull latest changes
2015-05-08 02:19:52 +03:00
Markus Sattler
d7a88c3ea3 use a function to calculate best match clock register for SPI
TEST:

Frequency: 1000000  -> [0x009C1001] EQU: 0	 Pre: 39     N: 1	 H: 0	 L: 1	 - Back Calculated Frequency: 1000000
Frequency: 4000000  -> [0x00001001] EQU: 0	 Pre: 0	     N: 1	 H: 0	 L: 1	 - Back Calculated Frequency: 40000000
Frequency: 2000000  -> [0x00041001] EQU: 0	 Pre: 1	     N: 1	 H: 0	 L: 1	 - Back Calculated Frequency: 20000000
Frequency: 1600000  -> [0x00004002] EQU: 0	 Pre: 0	     N: 4	 H: 0	 L: 2	 - Back Calculated Frequency: 16000000
Frequency: 1610000  -> [0x00004002] EQU: 0	 Pre: 0	     N: 4	 H: 0	 L: 2	 - Back Calculated Frequency: 16000000
Frequency: 1000000  -> [0x000C1001] EQU: 0	 Pre: 3	     N: 1	 H: 0	 L: 1	 - Back Calculated Frequency: 10000000
Frequency: 8000000  -> [0x00101001] EQU: 0	 Pre: 4	     N: 1	 H: 0	 L: 1	 - Back Calculated Frequency: 8000000
Frequency: 5000000  -> [0x001C1001] EQU: 0	 Pre: 7	     N: 1	 H: 0	 L: 1	 - Back Calculated Frequency: 5000000
Frequency: 4000000  -> [0x00241001] EQU: 0	 Pre: 9	     N: 1	 H: 0	 L: 1	 - Back Calculated Frequency: 4000000
Frequency: 2000000  -> [0x004C1001] EQU: 0	 Pre: 19	 N: 1	 H: 0	 L: 1	 - Back Calculated Frequency: 2000000
Frequency: 1000000  -> [0x009C1001] EQU: 0	 Pre: 39	 N: 1	 H: 0	 L: 1	 - Back Calculated Frequency: 1000000
Frequency: 500000   -> [0x013C1001] EQU: 0	 Pre: 79	 N: 1	 H: 0	 L: 1	 - Back Calculated Frequency: 500000
Frequency: 250000   -> [0x027C1001] EQU: 0	 Pre: 159	 N: 1	 H: 0	 L: 1	 - Back Calculated Frequency: 250000
Frequency: 125000   -> [0x04FC1001] EQU: 0	 Pre: 319	 N: 1	 H: 0	 L: 1	 - Back Calculated Frequency: 125000
Frequency: 6666666  -> [0x00141001] EQU: 0	 Pre: 5	 	 N: 1	 H: 0	 L: 1	 - Back Calculated Frequency: 6666666
Frequency: 6000000  -> [0x00181001] EQU: 0	 Pre: 6	 	 N: 1	 H: 0	 L: 1	 - Back Calculated Frequency: 5714285
Frequency: 3000000  -> [0x00202001] EQU: 0	 Pre: 8	 	 N: 2	 H: 0	 L: 1	 - Back Calculated Frequency: 2962962
Frequency: 100	    -> [0x7FFFF020] EQU: 0	 Pre: 8191	 N: 63	 H: 0	 L: 32	 - Back Calculated Frequency: 152
Frequency: 125000   -> [0x04FC1001] EQU: 0	 Pre: 319	 N: 1	 H: 0	 L: 1	 - Back Calculated Frequency: 125000
Frequency: 16457    -> [0x25F81001] EQU: 0	 Pre: 2430	 N: 1	 H: 0	 L: 1	 - Back Calculated Frequency: 16454
2015-05-08 00:48:08 +02:00
Markus Sattler
49fc1980fe add back SPI_CLOCK_DIVx defines may needed by some library
Note:
better use SPI.setFrequency()
2015-05-07 22:16:51 +02:00
Ivan Grokhotkov
938c440998 Merge pull request #198 from ficeto/esp8266
fixes for sd server example
2015-05-07 23:13:30 +03:00
Michael Miller
9977276ba9 Merge pull request #1 from esp8266/esp8266
Get latest
2015-05-07 12:53:52 -07: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
Markus Sattler
7f4a10062b update README
add some docu and todo
2015-05-07 20:48:59 +02:00
Markus Sattler
ee5def9c8c add CPHA support for SPI
- tested with logic analyzer
2015-05-07 19:48:55 +02:00
Markus Sattler
163858dc44 fix use SPI.beginTransaction crash 2015-05-07 19:25:25 +02:00
ficeto
1cb920f713 fixes for sd server example 2015-05-07 16:42:10 +03:00
Ivan Grokhotkov
8b114a551e Merge pull request #197 from ficeto/esp8266
fix write taking too long
2015-05-07 13:43:52 +03:00
ficeto
8819c1e91c fix write taking too long 2015-05-07 13:38:32 +03:00
Ivan Grokhotkov
786df293c0 Merge pull request #196 from ficeto/esp8266
add SD Card Web Server example
2015-05-07 12:47:34 +03:00
ficeto
7be8c1d270 overlooked duplicate name 2015-05-07 12:40:56 +03:00
ficeto
ecfac7cd6c add SD Card Web Server example
working fine with the latest wifi lib
2015-05-07 12:38:56 +03:00
Ivan Grokhotkov
cb65e2d5b3 Merge pull request #193 from ficeto/esp8266
bool redeclaration error and warnings
2015-05-07 12:07:14 +03:00
ficeto
8ed520205c Merge pull request #13 from esp8266/esp8266
pull latest changes
2015-05-07 11:54:21 +03:00
Ivan Grokhotkov
ba45bee55c Merge pull request #190 from Links2004/esp8266
add Patch for station+softAP issue based on SDK_v1.0.1 from espressif
2015-05-07 10:20:17 +03:00
Ivan Grokhotkov
465e74f0bc Merge pull request #183 from Imroy/esp8266
Add definition for the Olimex MOD-WIFI-ESP8266(-DEV) boards
2015-05-07 10:19:57 +03:00
Ivan Grokhotkov
73c8bfcc96 Merge pull request #185 from ficeto/esp8266
missing libs and definitions from SDK
2015-05-07 10:19:14 +03:00
ficeto
a689d6715b revert some changes that were wrong 2015-05-06 20:54:56 +03:00
Markus Sattler
5ba283cb32 add note for only bootloading 2015-05-06 19:17:13 +02:00
Markus Sattler
46adca04e8 add Minimal hardware Setup for Bootloading and usage to README.md 2015-05-06 18:58:23 +02:00
Makuna
b094b50e18 xt disable and enable functions 2015-05-06 09:02:14 -07:00
Markus Sattler
be32f801c3 add 64Bit build note 2015-05-06 17:51:37 +02:00
Makuna
c328452651 true interrupt enable and disable
plus expose cycle count for bit bang timing
2015-05-06 08:42:38 -07:00
Ian Tester
482162bdb2 No need to have a separate variant for the Olimex MOD-WIFI-ESP8266, nor a menu entry for the flash size 2015-05-07 01:37:16 +10:00
Ivan Grokhotkov
7defe70d55 Merge pull request #187 from biohazardxxx/esp8266
Mode missed
2015-05-06 15:38:03 +03:00
biohazardxxx
e707fe5781 Mode missed 2015-05-06 14:28:05 +02:00
ficeto
5daf774c5b Merge pull request #12 from esp8266/esp8266
pull latest changes
2015-05-06 11:47:26 +03:00