iosen
b1f7a0493f
sntp: calibrate to the ntp times rather than the system function.
...
The system sdk_system_rtc_clock_cali_proc() is rather noisy, so
this patch calibrates the RTC count to the NTP time responses.
An average of many calls to sdk_system_rtc_clock_cali_proc() is used
for initialization.
The system calibration value is used to limit the calibration value
computed via the ntp times, to 1/16 either way.
A 64 bit RTC counter is implemented, and used in the calculations, but
might be of some use on its own.
The ratio of the ntp time differences and the RTC count differences is
filtered a little to keep the changes relatively stable and to filter
the jitter.
2016-07-02 01:38:51 +10:00
Angus Gratton
587c867d4b
queue.h: Re-add the BSD Copyright notice to queue.h from Espressif's SDK.
...
Thanks @pfalcon for the heads-up on this:
https://groups.google.com/forum/#!topic/esp8266-re/I4iO3fM0mmA
2016-06-28 10:24:43 +10:00
Sven
c63b1cfa66
Set correct base address for register HOST_INF_SEL
2016-05-31 21:10:14 +02:00
Angus Gratton
b9f8e8a648
spi_flash.h: Add note that pointers need to be word-aligned
2016-05-28 11:27:10 +10:00
Angus Gratton
b61d06e940
Wrap structure around phy_info PHY initialisation settings
...
Add notes based on testing some of the values found there.
2016-05-15 22:21:10 +10:00
Alex Stewart
5b16aa5ba4
Change #warning to #error in ssid_config.h
2016-04-06 11:42:58 -07:00
UncleRus
c1f086579e
Removed sdk_system_get_vdd()
2016-02-29 12:58:45 +05:00
UncleRus
b18f2947ee
Added definition of SDK functions
2016-02-29 01:55:51 +05:00
Angus Gratton
a32d1099fa
espressif/spi_flash.h: Add comments and more appropriate argument types
2016-02-26 16:10:51 +11:00
Jeff Kent
c427784c5d
fix sdk_bss_info STAILQ_ENTRY
2016-02-24 14:03:30 -06:00
Angus Gratton
ed8470631f
Consolidate interrupt management in core as esp/interrupts.h & esp_interrupts.c
2015-09-28 22:15:40 +10:00
Angus Gratton
fff17627d9
Merge branch 'master' into feature/c++
2015-08-26 10:46:48 +10:00
Angus Gratton
491bf900c4
espressif/esp_wifi.h: Add prereq includes
2015-08-13 17:12:02 +10:00
Michael Jacobsen
da6b5f74bb
Mostly updated header files for use in C++
2015-08-10 15:31:03 +10:00
Johan Kanflo
64a1e5598b
Correct prototype for sdk_uart_rx_one_char, kudos to @foogod
2015-08-07 13:26:06 +02:00
Johan Kanflo
0e521a74a9
WiFi credentials
...
Changed local.h to include/ssid_config.h and added instructions on how
to keep your WiFi credentials safe from Github.
2015-08-07 13:26:06 +02:00
Angus Gratton
1cb2de5b96
spi_flash.h: Correct comment regarding flashchip structure
...
From ed0a079d9b
2015-08-07 18:19:09 +10:00
Angus Gratton
e7460de0a1
esp_system.h: Fix return type of sdk_system_get_rst_info
2015-08-06 16:35:20 +10:00
Angus Gratton
ed0a079d9b
Expose SDK flashchip parameter
...
More thanks due to @foogod's RE work for this.
2015-08-06 11:40:44 +10:00
Angus Gratton
6bbd6736a4
Add SDK set_sleep_type/get_sleep_time functions (undocumented in 0.9.9, may not workas expected)
2015-08-03 12:52:42 +10:00
Angus Gratton
ed7ba52c9a
Add exception vectors & low-level handlers
...
At the moment these are almost bit-for-bit copies of the vector
behaviour in the RTOS SDK, but hopefully that will start to change.
Progress towards #2
2015-07-28 11:01:57 +10:00
Angus Gratton
86188c01fd
Merge branch 'newlib'
2015-07-15 16:01:18 +10:00
Angus Gratton
4217a1029e
xtensa_interrupts: Add _xt_disable_interrupts/_xt_restore_interrupts inline functions
2015-06-18 11:30:13 +10:00
Angus Gratton
5151ccc3b2
xtensa_interrupts: Add esync after writing intenable/intclear, add comment about non-interrupt-safe mask/unmask
2015-06-18 09:04:45 +10:00
Angus Gratton
aaef4b0644
Replace all binary SDK libc functions with newlib
...
Adds a new build step to remove the SDK object files listed in
<libname>.remove.
Closes #1 .
2015-06-16 14:21:24 +10:00
Angus Gratton
822533fd92
Interrupt support refactor
...
Write inline versions for SDK-based interrupt convenience functions.
2015-06-08 18:20:29 +10:00
Angus Gratton
2c46be9825
Basic support for GPIOs 0-15.
...
Start new 'core' component for low-level parts
Progress towards #8
2015-06-08 12:09:34 +10:00
Angus Gratton
70cec6c3b7
Rename the sdk_prototypes header to sdk_private
2015-06-02 17:15:00 +10:00
Angus Gratton
c126fa6430
Add README, 'make help', header comments, Copyright notices
2015-06-02 17:12:20 +10:00
Angus Gratton
3fcec6106f
Swap binary axTLS libssl for direct compiled version
2015-06-02 17:12:20 +10:00
Angus Gratton
e743d03a78
Preprocess all binary SDK symbols to add an sdk_ prefix
...
* This fixes the problem of axTLS symbols hmac_md5/hmac_sha1 having same
name as symbols in libwpa (which have incompatible signatures)
* Also allows for easier identification and piece-by-piece removal of
binary functions.
* Some libc symbols are not renamed, list is in lib/symbols_norename.txt
2015-06-02 15:08:35 +10:00
Angus Gratton
05019cb0ee
Remove cJSON blob (can re-add later from source)
2015-06-02 15:08:35 +10:00
Angus Gratton
7c982da48f
Add function prototypes for LWIP SDK functions, allow compilng with -Werror again
2015-06-02 15:08:35 +10:00
Angus Gratton
dc4ca6861f
Remove udhcp (DHCP server support) as it's a GPL violation :(
2015-06-02 15:08:35 +10:00
Angus Gratton
806962d5c7
Replace lwip SDK blob with lwip 1.4.1 upstream source
...
Compiles but won't work yet
2015-06-02 15:08:26 +10:00
Angus Gratton
1ffbc303ff
Working variant of esp_iot_rtos_sdk (files from commit ec75c85f9ef53)
2015-05-07 14:22:25 +10:00