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
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
7f4a10062b
update README
...
add some docu and todo
2015-05-07 20:48:59 +02:00
ee5def9c8c
add CPHA support for SPI
...
- tested with logic analyzer
2015-05-07 19:48:55 +02:00
163858dc44
fix use SPI.beginTransaction crash
2015-05-07 19:25:25 +02:00
8819c1e91c
fix write taking too long
2015-05-07 13:38:32 +03:00
7be8c1d270
overlooked duplicate name
2015-05-07 12:40:56 +03:00
ecfac7cd6c
add SD Card Web Server example
...
working fine with the latest wifi lib
2015-05-07 12:38:56 +03:00
e707fe5781
Mode missed
2015-05-06 14:28:05 +02:00
95832b0e2f
fix HelloServer sample
...
close #168
2015-05-05 13:57:35 +03:00
65eeac16e8
fix Wire::pins compatibility ( #167 )
2015-05-05 13:27:28 +03:00
6599a9f52a
add SPIClass::transfer16 (needed by some display libs)
2015-05-04 18:11:46 +02:00
63d0748135
OneWire set up as INPUT_PULLUP
2015-05-04 18:08:16 +02:00
f008806118
revert Wire::pins, mark as deprecated
2015-05-04 11:08:07 +08:00
48ddce71c6
add EEPROM.getDataPtr()
...
fix all warnings in EEPROMClass
2015-05-03 18:15:54 +02:00
3406b47949
increase irom0 from 0x3C000 to 0x6B000 (+192KB) space
2015-05-03 17:44:20 +02:00
915eb45366
dumb me
2015-05-03 18:06:46 +03:00
8bc63d2bf5
fix bug #159 (broken Onewire)
...
thx to support from ficeto
2015-05-02 15:57:31 +02:00
3a7846a574
missed led and fixed output to make more sense
2015-05-01 13:00:17 +03:00
d6ae950c26
Add led to WebServer example
...
This reverts commit 43be35c4de
.
2015-05-01 12:32:37 +03:00
435f59f771
ESP8266WebServer code review, fix indentation, add keywords
2015-05-01 11:17:45 +08:00
dbbd047980
Updated HelloServer with mDNS and NotFound catcher with custom page
...
the not found handler should be used in conjunction with other means of
getting data, like SD card
2015-05-01 02:51:59 +03:00
81af3a061e
adding extra finctionaity the the web server
...
void onNotFound(bool(void)) handler routes and errors not in the
defined handlers
int args() returns nubmer of currentarguments
String arg(int i) returns the "i" argument value
String argName(int i) returns the "i" argument name(key)
bool hasArg(const char * name) looks up if an argument exist by
seraching for it's key
2015-05-01 02:43:51 +03:00
fbec557ddb
Importing my changes
2015-04-30 20:48:50 +03:00
a4536d5935
Minor code style changes
2015-04-30 18:54:16 +08:00
483533ac4c
add back SmartConfig
2015-04-30 11:44:26 +02:00
70ade65582
Describe multicast APIs in readme, update keywords.
2015-04-29 07:04:39 +08:00
021b8b61e7
ESP8266WiFi: made connected() return true if data is available
...
WiFiClient::connected() should return true if the connection is disconnected, but there is still data available. This is specified in the Arduino docs: http://www.arduino.cc/en/Reference/WiFiClientConnected
2015-04-29 07:02:19 +08:00
5354464a01
Add destinationIP method to WiFiUDP
...
Might be useful to distinguish between normal and multicast packets arriving at the same port (#105 )
2015-04-29 07:01:54 +08:00
727c61efe2
UDP multicast APIs fix
...
fix #74 , fix #7
2015-04-29 07:01:46 +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
4cc06c2100
Add method to configure softAP IP address
...
fix #76
2015-04-21 20:52:02 +08:00
5a4c4c3427
Use memcpy instead of loop
2015-04-18 22:48:04 +07:00
2adda59b6d
Add get and put functions to EEPROM
...
As available in http://www.arduino.cc/en/Reference/EEPROM
2015-04-18 16:08:36 +07:00
8ac5d70b70
Add get and put functions to EEPROM
...
As available in http://www.arduino.cc/en/Reference/EEPROM
2015-04-18 15:33:45 +07:00
da88852693
Fix resource leaks in UDP library
...
Reference counts were not incremented after creation of UdpContext, so pbufs and pcbs were not freed.
2015-04-14 01:34:52 +08:00
b026daf43b
Fix UdpClient semantics, add NTPClient example
...
UdpClient used to create a new socket for each begin/beginPacket call. This made bidirectional communication impossible.
Fix #64 , fix #53 .
2015-04-12 01:09:45 +08:00
91d5fe73c0
Merge pull request #63 from romanmashta/esp8266
...
Fix slashes in Adafruit_ILI9341 library
2015-04-11 09:43:59 +08:00
e372850a35
Fix slashes in Adafruit_ILI9341 library
2015-04-10 22:35:44 +03: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
3c7eaafeaf
force tcp close in error
2015-04-06 18:55:21 +02:00
ea7a4e522a
add null prt check to _pcb in flush
2015-04-06 18:49:57 +02:00
96ec8e480b
add size check to write
...
some more debug output
2015-04-06 18:41:44 +02:00
dc5ee0003c
Port of extended Adafruit ILI9341 lib to ESP8266
2015-04-04 10:37:51 +03:00
a1f0c6feb9
remove NO_PORT_BIND
2015-04-03 14:26:41 +02:00
156696a15e
Merge remote-tracking branch 'remotes/esp8266/esp8266' into esp8266
2015-04-03 11:09:14 +02:00
dfbc499627
Fix slashes in SPI library
2015-04-03 08:18:23 +03:00