161 Commits

Author SHA1 Message Date
562e183216 feat(esp_event): modify for ESP8266 to support esp_event 2020-01-15 16:29:29 +08:00
622482eb76 feat(esp_common): update esp_common
1. add Kconfig file and rename old global macro
2. move some independent files to esp_common
2020-01-15 14:56:39 +08:00
1826ff03f4 Merge branch 'bugfix/fix_compile_failed_when_CONFIG_ESP8266_WIFI_CONNECT_OPEN_ROUTER_WHEN_PWD_IS_SET_is_unset' into 'master'
fix(esp8266): fix compile failed when CONFIG_ESP8266_WIFI_CONNECT_OPEN_ROUTER_WHEN_PWD_IS_SET is unset

See merge request sdk/ESP8266_RTOS_SDK!1263
2020-01-07 14:20:50 +08:00
f7389b7ca6 fix(esp8266): fix light sleep time error when waking up 2020-01-07 11:54:13 +08:00
5866f754d0 fix(esp8266): fix compile failed when CONFIG_ESP8266_WIFI_CONNECT_OPEN_ROUTER_WHEN_PWD_IS_SET is unset 2020-01-06 18:01:24 +08:00
6873eb1d27 feat(esp8266): fix CPU light sleep process 2019-12-17 11:20:07 +08:00
3d394bd924 Merge branch 'feature/ets_printf_add_%%' into 'master'
esp8266: ets_printf supports format "%%"

See merge request sdk/ESP8266_RTOS_SDK!1204
2019-12-05 19:46:26 +08:00
c5563ef13e feat(esp8266): ets_printf supports format "%%" 2019-12-05 15:23:54 +08:00
a9c34d2c77 fix(esp8266): fix backtrace does not trace ROM code 2019-12-02 10:19:52 +08:00
95ed4d1e50 feat(wpa2): add wpa2_enterprise to esp8266 2019-11-26 16:09:38 +08:00
96c6e0fc5b Merge branch 'bugfix/fix_light_sleep_break' into 'master'
esp8266: fix that light sleep process breaks

See merge request sdk/ESP8266_RTOS_SDK!1197
2019-11-26 10:27:45 +08:00
06ba43fc9e fix(esp8266): fix that light sleep process breaks 2019-11-25 20:00:08 +08:00
0cdff9dbf1 fix(esp8266): fix that WDEV time is larger than normal 2019-11-25 17:05:14 +08:00
c0dc2e94fd feat(esp8266): add API to be compatible with esp-idf 2019-11-19 11:39:53 +08:00
5c3f1e058d feat(lib): set the connection to the open router mechanism when pwd is set 2019-11-12 16:19:23 +08:00
94d7d52248 Merge branch 'feature/update_mbedtls_from_esp_idf' into 'master'
mbedtls: bring mbedtls and openssl based on mbedtls from esp-idf

See merge request sdk/ESP8266_RTOS_SDK!1106
2019-10-12 10:16:25 +08:00
eb58df9506 feat(esp8266): add function to enable GPIO wakeup from light sleep and disable wakeup source 2019-10-10 18:12:33 +08:00
5f2b5eafcf feat(mbedtls): modify code to support ESP8266
It is that maybe less modification working on the components is better, so I just modified the platform
code of AES, SHA and so on.

ESP8266 has no real hardware AES, SHA or bignum peripheral, but some method can speed up the process of part
of upper algorithm, so I also added the platform code of AES, SHA, bignum, ARC, MD5.

ESP8266 has no platform of bignum, so users should not enable the bignum hardware at "menuconfig".
2019-10-10 13:39:08 +08:00
d6ec931ec7 Merge branch 'feature/set_cpu_sleep_mode' into 'master'
sleep: add function set CPU sleep mode

See merge request sdk/ESP8266_RTOS_SDK!1116
2019-09-30 14:45:31 +08:00
f2cb7b00ba feat(sleep): add function set CPU sleep mode 2019-09-30 13:59:08 +08:00
da99eac1d6 Merge branch 'feature/update_phy' into 'master'
phy: update phy library to 1151.0

See merge request sdk/ESP8266_RTOS_SDK!1119
2019-09-30 13:57:38 +08:00
c7ac512e99 feat(phy): update phy library to 1151.0
1. rename function from "rtc_init_2" to be "rtc_init_clk"
2. reduce time cost of openning RF
3. locate "phy_close_rf" and "i2c" from flash to IRAM
2019-09-29 18:14:51 +08:00
3e6c6696ef feat(make): add "iram_bss" to link some global varible from DRAM to IRAM 2019-09-26 17:33:22 +08:00
4d4e1c0564 fix(esp8266): fix system and wifi sleep/wake process error 2019-09-25 14:13:47 +08:00
07461409f6 Merge branch 'feature/add_sdk_ver' into 'master'
esp8266: add system version

See merge request sdk/ESP8266_RTOS_SDK!1108
2019-09-24 17:12:31 +08:00
d0f58daec1 feat(esp8266): add system version
Bootloader can get the version of application for specific section,
and then check if some features are supported.

Developers can use the macro "ESP_IDF_VERSION" to limite some function like following:

include "esp_idf_version.h"

if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(3, 4, 0) && ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(4, 0, 0) // 3.4 <= ver < 4.0
    do_xxx_process();
endif
2019-09-23 20:06:51 +08:00
c053cd2a32 feat(sleep): udpate WDEV time when wake up from light sleep 2019-09-23 11:39:54 +08:00
827e7478fa fix(sleep): fix enter light sleep mode error 2019-09-23 10:53:49 +08:00
c533188b1a fix(esp8266): fix get MAC address from efuse output information error 2019-09-18 10:43:27 +08:00
d501ebaf69 Merge branch 'feature/set_phy_cal_option_according_to_cal_data_check' into 'master'
feat(esp8266): set phy cal option according to cal data check

See merge request sdk/ESP8266_RTOS_SDK!1096
2019-09-17 10:44:01 +08:00
e7cfc98413 Merge branch 'bugfix/fix_uart_output_error_when_startup' into 'master'
esp8266: fix UART output error when start up

See merge request sdk/ESP8266_RTOS_SDK!1094
2019-09-17 10:37:30 +08:00
f1cd394290 Merge branch 'feature/relink_phy_ets_printf' into 'master'
phy: relink ets_printf of libphy.a to phy_printf

See merge request sdk/ESP8266_RTOS_SDK!1095
2019-09-17 10:36:46 +08:00
2dadceb827 Merge branch 'bugfix/fix_timer_call_delete_when_proc' into 'master'
esp_timer: fix delete timer and timer processs later

See merge request sdk/ESP8266_RTOS_SDK!1097
2019-09-17 10:36:04 +08:00
0f4a396e04 feat(esp8266): set phy cal option according to cal data check 2019-09-16 17:21:29 +08:00
205817ea2e fix(esp_timer): fix delete timer and timer processs later
Make sure that FreeRTOS deletes timer firstly and then API "esp_timer_delete" free the source.
2019-09-16 16:25:45 +08:00
6b7c87189d feat(phy): relink ets_printf of libphy.a to phy_printf
"phy_printf" has no output.
2019-09-16 15:47:50 +08:00
96e5df4ebd fix(esp8266): fix UART output error when start up
Add UART system API to flush UART and wait until all characters are sent.
2019-09-16 15:21:42 +08:00
431e94031e Merge branch 'feature/add_phy_partial_calibration' into 'master'
feat(phy): add phy partial calibration in phy init

See merge request sdk/ESP8266_RTOS_SDK!1083
2019-09-16 11:02:45 +08:00
e3c73f339c feat(phy): add phy partial calibration in phy init 2019-09-16 10:49:08 +08:00
6995f4a586 Merge branch 'feature/refactor_wifi_power_save' into 'master'
feat(lib): refactor wifi power save

See merge request sdk/ESP8266_RTOS_SDK!1075
2019-09-09 10:24:26 +08:00
9fd4951863 feat(wifi): refactor wifi power save 2019-09-06 15:20:46 +08:00
020a17d350 feat(pm): flush UART when enter light sleep
If FRC2 is not used, pm will not calculate its sleep time.
2019-09-06 14:44:06 +08:00
4473846f4f feat(esp8266): power management update frc2 ccount after sleep wake up
1. link function from IRAM to Flash
2. using sleep early ticks instead time to avoid temperature drift or zero drift of RC oscillator
2019-09-03 17:49:57 +08:00
aa965627d1 feat(esp8266): add new power management method 2019-08-30 20:58:32 +08:00
bb6fc942ee Merge branch 'feature/refactor_and_add_more_wifi_feature_for_11n_certificate' into 'master'
feat(wifi): refactor and add more wifi feature for 11n certificate

See merge request sdk/ESP8266_RTOS_SDK!1044
2019-08-30 20:13:58 +08:00
53813599e9 feat(wifi): refactor and add more wifi feature for 11n certificate 2019-08-30 14:19:16 +08:00
36ee2c36ca Merge branch 'bugfix/fix_vfs_uart_noinit_by_using_fnano_newlib' into 'master'
newlib: fix some initialization function is not done when using float nano newlib

See merge request sdk/ESP8266_RTOS_SDK!1070
2019-08-29 11:40:22 +08:00
3986202ee9 fix(newlib): fix some initialization function is not done when using float-nano newlib and VFS
Using option "NEWLIB_LIBRARY_CUSTOMER" instead of "NEWLIB_ENABLE".
2019-08-28 11:28:58 +08:00
767d995466 feat(esp8266): refactor ESP8266(xtensa lx106) panic backtrace function 2019-08-26 16:55:20 +08:00
b061230056 feat(esp8266): refactor CCOMPARE timer and system time by microseconds
old: CCOMPARE timer triggers when CCOUNT increase to equal to CCOMPARE, then ISR will increase integer of "_xt_tick_divisor"
     to CCOMPARE and wait for next interrupt triggering

now: CCOMPARE timer triggers when CCOUNT increase to equal to CCOMPARE, then ISR will reset CCOUNT to be 0 and reset CCOMPARE
     to be integer of "_xt_tick_divisor", then wait for next interrupt triggering

Using the new method, we may get the CCOUNT value without considing if it has overflowed.
System running microseconds = g_os_ticks * microseconds per tick + CCOUNT.
2019-08-19 14:03:20 +08:00