146 Commits

Author SHA1 Message Date
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
301d857988 feat(esp8266): supports "make size" and its family function
1. support "make size", "make size-files", "make size-components" and "make size-symbols"
2. add esp-idf style link file including "esp8266.ld" and "esp8266.project.ld.in"
3. add link advaced generation file to components of esp8266 and spi_flash
2019-08-05 17:20:29 +08:00
2084e8ed19 feat(esp8266): format phy_init.c 2019-06-12 10:38:33 +08:00
d04ce110f9 feat(esp8266): add set tx power via vdd33 function 2019-06-12 10:38:33 +08:00
639c64a540 feat(compatibility_upgrade): add function to get old SDK's target ap SSID and passowrd
Add error warning to check the wrong parition table.
2019-05-31 15:51:20 +08:00
37ffcbe9e6 feat(esp8266): Add feature to copy old RF parameters to new SDK partition
The old SDK's RF parameters is also kept.
2019-05-05 09:58:18 +08:00
28c49527f2 Merge branch 'feature/add_settings_for_wifi_tx_power_to_menuconfig' into 'master'
feat(esp8266): add settings for wifi tx power to menuconfig

See merge request sdk/ESP8266_RTOS_SDK!899
2019-04-18 12:17:56 +08:00
aeaa66ec08 feat(esp8266): add settings for wifi tx power to menuconfig 2019-04-18 11:37:56 +08:00
b6fd236fa0 Merge branch 'feature/errno_to_string' into 'master'
Add esp-idf error number description

See merge request sdk/ESP8266_RTOS_SDK!851
2019-04-17 15:03:05 +08:00
8aae2e5764 Merge branch 'feature/simplify_xtensa_code' into 'master'
Simplify xtensa platform code

See merge request sdk/ESP8266_RTOS_SDK!862
2019-04-16 19:56:05 +08:00
913188fdf3 feat(freertos): Simplify xtensa platform code
All normal ISRs are called by "_xt_isr_handler".
2019-04-16 19:49:06 +08:00
cdc22f273c feature(adc): add adc example 2019-04-15 12:01:11 +08:00
965fc47ff8 feat(log): add esp_log to internal wifi lib 2019-04-12 09:35:45 +08:00
c43e3c04db fix(esp8266): Fix wps leaks OSI 2019-04-04 16:43:42 +08:00
d5d34f31af feat(esp8266): add phy version log 2019-03-27 15:16:33 +08:00
c378e07232 feat(esp8266): Add option to init OS before starting it 2019-03-26 16:35:23 +08:00