45 Commits

Author SHA1 Message Date
22029d989a Merge branch 'bugfix/fix_panic_reboot_reenter' into 'master'
esp8266: fix panic reenter when reboot

See merge request sdk/ESP8266_RTOS_SDK!1209
2019-12-02 18:59:31 +08:00
8c7305f473 fix(esp8266): fix panic reenter when reboot 2019-12-02 14:24:37 +08:00
a9c34d2c77 fix(esp8266): fix backtrace does not trace ROM code 2019-12-02 10:19:52 +08:00
0cdff9dbf1 fix(esp8266): fix that WDEV time is larger than normal 2019-11-25 17:05:14 +08:00
0e39eb1038 fix(esp8266): fix CPU ticks per milli second at 160MHz
Closes https://github.com/espressif/ESP8266_RTOS_SDK/issues/762
2019-11-22 11:17:54 +08:00
4d4e1c0564 fix(esp8266): fix system and wifi sleep/wake process error 2019-09-25 14:13:47 +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
c665a71370 fix(esp8266): esp8266 flash mapping to CPU bus size only supports 1MB now
We may add support to run app which size is larger than 1MB later.
2019-08-12 15:45:26 +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
ea43a0c9a6 feat(system): Add global ISR swith 2019-04-28 10:40:50 +08:00
ae61e4dce3 Revert "Merge branch 'feature/add_global_isr_switch' into 'master'"
This reverts merge request !914
2019-04-28 10:32:35 +08:00
e7b8e9fa25 feat(system): Add global ISR swith 2019-04-24 14:40:02 +08:00
f6335d9e24 feat(spiffs): Modify for ESP8266 2019-04-22 10:35:29 +08:00
6ab1c01c53 Merge branch 'feature/spi_ram' into 'master'
feature(spi_ram): add spi ram

See merge request sdk/ESP8266_RTOS_SDK!887
2019-04-18 14:24:57 +08:00
33463b3ddf Merge branch 'feature/i2s_driver' into 'master'
feature(i2s): add i2s driver

See merge request sdk/ESP8266_RTOS_SDK!868
2019-04-18 14:24:45 +08:00
0b0d82ca19 feature(spi_ram): add spi ram 2019-04-18 11:16:53 +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
cac248c42f feature(i2s): add i2s driver 2019-04-15 20:28:25 +08:00
eef781f9b9 fix(esp8266): Fix esp8266 load RTC segment when reset from deep sleep
Now only 1MB flash is mapped to SoC bus.
2019-03-15 14:08:26 +08:00
d200ef1770 fix(ota): Fix OTA copy buffer is not align
Using globle macro "ROM_FLASH_BUF_DECLARE" to declare a block of buffer not "uint8_t".
2019-01-25 11:45:24 +08:00
11db1b0daf feat(bootloader): Support v2 firmware updates to v3 by OTA 2019-01-16 14:20:58 +08:00
d4f2388a18 refactor(hspi): Refactor hspi driver for esp8266 idf 2019-01-16 11:22:57 +08:00
7a5bf3366f refactor(i2s): Refactor i2s driver for esp8266 idf 2019-01-14 18:23:33 +08:00
e124146e2b feat(bootloader): Support to trigger test app in bootloader 2018-12-28 13:03:14 +08:00
0f728b64de feat(esp8266): Add reset reason function
The function can be disable.
2018-12-19 15:11:29 +08:00
af2ca65a02 feat(bootloader_support): Modify chip size to be spi flash configuration value 2018-11-29 09:27:40 +08:00
2329a7cf73 refactor(hw_timer): Refactor hw_timer driver for esp8266 idf 2018-11-09 16:15:24 +08:00
7bd6fc051b feat(newib): Add "usleep" and "sleep" function 2018-10-23 10:27:18 +08:00
7e8650dd65 feat(esp8266): Refactor task watch dog
1. Remove old watch dog function
2. Put WIFI NVS index table from RAM to flash
2018-09-13 15:20:33 +08:00
97335027c7 refactor(driver): Refactor uart driver for esp8266 idf 2018-08-10 13:39:53 +08:00
8fdffe47ad refactor(gpio): Refactor gpio driver for esp8266 idf 2018-08-09 10:57:00 +08:00
b32c52874d feat(esp8266): Add full icache mode
Use full 32 KB iram as icache.
2018-07-31 11:01:06 +08:00
b320815ba5 feat(esp8266): add efuse register definition 2018-06-28 19:40:04 +08:00
9d0b024433 feat(esp8266): Refactor ets system headler file 2018-06-27 11:39:50 +08:00
df9a5d6bb1 feat(spi_flash): Modify SPI flash driver 2018-06-08 18:04:38 +08:00
c8ac7cc2be fix(esp8266): Fix header files dependency in esp8266
Closes https://github.com/espressif/ESP8266_RTOS_SDK/issues/197
2018-05-31 17:30:14 +08:00
b1a92ea020 fix(esp8266): Include dependent header files in ets_sys.h
Closes https://github.com/espressif/ESP8266_RTOS_SDK/issues/200
2018-05-31 15:10:19 +08:00
e15f211d46 feat(esp8266): Add "putc" and "vprintf" of version "ets_" 2018-05-25 19:28:36 +08:00
e518650b36 feat: Don't use c_types.h in SDK 2018-05-24 20:41:29 +08:00
91f7080231 fix: Fix all files when change to use standard typedef 2018-05-24 19:27:41 +08:00
26e825b0de feat(esp8266): Add ets_printf in SDK side 2018-05-24 15:04:56 +08:00
3c560f678a feat(driver): Clean up header files dependency 2018-05-23 16:43:29 +08:00
f82e9be787 fix: Fixing lots of compilation warnings
- fix(esp8266):
  - Adding includes for missing symbols.
  - Removing unused variables.
  - Skip unsupported packing pragmas.
  - Add rom_functions.h for symbols that come from the ESP ROM. Add attributes on
ets_printf so GCC will check the syntax of the formatting string and types of
the arguments.
  - Add ETS_GPIO_INTR_EN(DIS)ABLE macro.
  - Use gpio_output_conf instead of gpio_output_set.

- fix(freertos):
  - Define functions that are useful.
  - Use correct printf symbols when printing.

- fix(lwip):
  - Ignore the warning in sntp.

- fix(mqtt):
  - `xTicksToWait` is unsigned, can't check for less than zero. Remove
unused variables.

- fix(newlib):
  - `_free_r()` returns `void`, not `void *`.
  - Adding includes for missing symbols.

- fix(ssl):
  - Make sure functions always return a value.

Merges https://github.com/espressif/ESP8266_RTOS_SDK/pull/188
2018-05-23 14:52:26 +08:00
e3cdb2dae3 feat(structure): Re-structure some include 2018-04-08 20:42:35 +08:00