1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-17 22:23:10 +03:00
Commit Graph

161 Commits

Author SHA1 Message Date
c8510edee8 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
ab80b405f1 add back SPI_CLOCK_DIVx defines may needed by some library
Note:
better use SPI.setFrequency()
2015-05-07 22:16:51 +02:00
3f5aab4718 update README
add some docu and todo
2015-05-07 20:48:59 +02:00
3b798048a6 add CPHA support for SPI
- tested with logic analyzer
2015-05-07 19:48:55 +02:00
9ef39e3128 fix use SPI.beginTransaction crash 2015-05-07 19:25:25 +02:00
5aa479fd34 fix write taking too long 2015-05-07 13:38:32 +03:00
532b0bea78 overlooked duplicate name 2015-05-07 12:40:56 +03:00
f1ffad408e add SD Card Web Server example
working fine with the latest wifi lib
2015-05-07 12:38:56 +03:00
3bdabe9604 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
09abcb42bc Merge pull request #185 from ficeto/esp8266
missing libs and definitions from SDK
2015-05-07 10:19:14 +03:00
c71f198ac2 revert some changes that were wrong 2015-05-06 20:54:56 +03:00
3419538cd2 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
4e387e4ffe Merge pull request #187 from biohazardxxx/esp8266
Mode missed
2015-05-06 15:38:03 +03:00
a20d32902a Mode missed 2015-05-06 14:28:05 +02:00
bc5f69319f Add definition for the Olimex MOD-WIFI-ESP8266(-DEV) boards 2015-05-06 14:53:29 +10:00
8dc2570c58 Merge pull request #181 from onkelfunny/esp8266
set correct flash size
2015-05-05 23:49:33 +03:00
4feb11c839 remove unused flash size 2015-05-05 18:56:52 +02:00
f4632d9426 remove unused flash size 2015-05-05 18:55:11 +02:00
907546bf15 set correct flash size 2015-05-05 18:49:33 +02:00
d0600480cb add Winbond flash chip Ids 2015-05-05 18:41:38 +02:00
edaa914203 fix HelloServer sample
close #168
2015-05-05 13:57:35 +03:00
218202241e fix Wire::pins compatibility (#167) 2015-05-05 13:27:28 +03:00
9a466e8d7d small clean up of HardwareSerial 2015-05-05 13:27:28 +03:00
236d967790 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
0db3dcf31c Merge pull request #173 from onkelfunny/esp8266
add nodemcu board
2015-05-05 09:25:08 +03:00
3c9d606a52 add nodemcu board 2015-05-04 22:31:00 +02:00
a7364b515c add SPIClass::transfer16 (needed by some display libs) 2015-05-04 18:11:46 +02:00
434c15891d add macro cli() and sei() for more AVR compatibility 2015-05-04 18:10:51 +02:00
63610b3f09 revert Wire::pins, mark as deprecated 2015-05-04 11:08:07 +08:00
748d6a60ec Merge branch 'esp8266' of https://github.com/Links2004/Arduino into Links2004-esp8266 2015-05-04 09:03:03 +08:00
0687225031 fix UART clock divider
UART clock is constant
2015-05-03 20:56:58 +03:00
d18dd0d7fd ACK is actually 0 2015-05-03 20:35:01 +03:00
8272e877f7 add EEPROM.getDataPtr()
fix all warnings in EEPROMClass
2015-05-03 18:15:54 +02:00
5d2cc7db7f increase irom0 from 0x3C000 to 0x6B000 (+192KB) space 2015-05-03 17:44:20 +02:00
f4a34e1962 dumb me 2015-05-03 18:06:46 +03:00
346ae20dd4 overflow at 160MHz 2015-05-03 17:53:24 +03:00
2e3e98beec fix UART RX PullUps and TWI 2015-05-03 17:51:06 +03:00
58c03c3472 Change UART register access methods 2015-05-03 16:44:19 +03:00
f1ae1ba267 replease digitalPinToPort, digitalPinToBitMask, portOutputRegister, portInputRegister, portModeRegister by macros 2015-05-02 15:54:45 +02:00
b475c01e1a undef __STRICT_ANSI__ to allow usage of functions like strcasecmp, strtok_r and so on 2015-05-02 13:34:35 +02:00
24879ec182 Revert "Revert "disable debug on Serial.end() if debug on this interface.""
This reverts commit b2d4169734.
2015-05-01 16:15:58 +03:00
b2d4169734 Revert "disable debug on Serial.end() if debug on this interface."
This reverts commit 28a868d6dd.
2015-05-01 16:09:46 +03:00
7ae56fe04c Merge pull request #5 from Links2004/esp8266
merging some changes
2015-05-01 16:06:18 +03:00
28a868d6dd disable debug on Serial.end() if debug on this interface. 2015-05-01 14:58:48 +02:00
9ec5d20b67 disable UART before making all pins INPUTs 2015-05-01 15:52:30 +03:00
0b14e44cfd add back pull-down support 2015-05-01 14:46:08 +02:00
209b74256f fix 160Mhz mode
add missing 0
16000000L != 160000000L
2015-05-01 14:11:09 +02:00
b72e083766 remove libg
libg is debugging version of libc,
no sense to link both at the same time!
2015-05-01 14:08:01 +02:00
37c47e25bf move digitalWrite and digitalRead to ram
if in flash it can produce uncalculated lag.

fix warning
2015-05-01 14:04:56 +02:00
48288e3d1a Merge remote-tracking branch 'remotes/esp8266/esp8266' into esp8266 2015-05-01 13:57:13 +02:00