43 Commits

Author SHA1 Message Date
77c8452d69 Merge branch 'feature/update_pthread_from_esp_idf' into 'master'
pthread: update pthread from esp-idf

See merge request sdk/ESP8266_RTOS_SDK!1072
2019-09-10 17:15:27 +08:00
aa965627d1 feat(esp8266): add new power management method 2019-08-30 20:58:32 +08:00
24e53102bf feat(pthread): modify for ESP8266
1. remove "IRAM_ATTR" from pthread function
2. modify "critical" function
3. remove SMP function
4. add platform support
2019-08-28 11:30:12 +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
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
b3658b4eb1 feat(freertos): Add option for idle task stack size
Modify min size from 768 to 1024 bytes.
2019-04-17 10:13:38 +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
965fc47ff8 feat(log): add esp_log to internal wifi lib 2019-04-12 09:35:45 +08:00
7e25156286 feat(freertos): Reduce close NMI time 2019-03-22 11:36:12 +08:00
93e3a3f542 Merge branch 'feature/add_esp_get_time_int64' into 'master'
Add API to get microseconds

See merge request sdk/ESP8266_RTOS_SDK!826
2019-03-12 14:25:05 +08:00
7fbb68f4ea feat(esp8266): Add API to get microseconds 2019-03-12 09:39:07 +08:00
b6ea4eab21 feat(freertos): Cleanup tick/idle hook functionality
Closes https://github.com/espressif/ESP8266_RTOS_SDK/issues/500
2019-03-07 11:42:50 +08:00
228853728f feat(freertos): Add function to get CPU usage 2019-03-05 14:56:27 +08:00
08a2035f54 feat(freertos): Make trace facility configurable
This commit makes configUSE_TRACE_FACILITY and configUSE_STATS_FORMATTING_FUNCTIONS
configurable in kconfig.

Closes https://github.com/espressif/ESP8266_RTOS_SDK/issues/495
2019-03-04 09:44:34 +08:00
4373adbc2a feat(freertos): Add option to enable queue sets 2019-02-14 10:58:13 +08:00
6fd342dd0f feat(freertos): Add configuration to speed up task switch
The global heap is 74332 bytes when connect to AP and get IP by DHCP.
2018-11-29 09:47:33 +08:00
ec77c9711b bugfix/freertos_timer_stack_config: Added config option for Timer stack.
Added configuration option for Timer Stack size in FreeRTOS.
2018-10-22 14:34:18 +05:30
89e902e168 feat(freertos): Add stdlib.h header file declare to base header file to make it match esp-idf 2018-10-18 15:26:13 +08:00
056ef5f27e Merge branch 'docs/modify_freertos_license_from_gpl_to_mit' into 'master'
Modify some FreeRTOS port files license from GPL to MIT

See merge request sdk/ESP8266_RTOS_SDK!536
2018-10-11 15:02:57 +08:00
8c2f1c7616 docs(freertos): Modify some files license from GPL to MIT
Closes https://github.com/espressif/ESP8266_RTOS_SDK/issues/321
2018-10-11 15:01:21 +08:00
486da348bf feat(freertos): API compatible with esp-idf 2018-10-11 13:54:35 +08:00
1b63208046 fix(freertos): Fix entering first stack cover wrong memory 2018-09-28 11:40:14 +08:00
54cd3f4b61 feat(sdk): Midify "__FILE__" to "__ESP_FILE__" for some components 2018-09-21 13:04:59 +08:00
1fc474b8c9 feat(pthread): Modify for ESP8266 2018-09-13 15:34:54 +08:00
580fa88ad0 feat(freertos): Add port to get freertos rate hz 2018-09-13 15:29:46 +08:00
a4369522b9 feat(heap): Remove old heap and modify old heap API 2018-09-12 11:12:30 +08:00
1904c02b66 Merge branch 'bugfix/fix_timer_freq_error_when_switch_cpu_freq' into 'master'
Fix timer frequency error when switch CPU frequncy

See merge request sdk/ESP8266_RTOS_SDK!416
2018-08-22 17:52:56 +08:00
8633994744 feat(FreeRTOS): Modify for ESP8266 2018-08-22 14:05:59 +08:00
56e89a4372 feat(FreeRTOS): Bring os hook from esp-idf
Commit ID: 4eb28b9a
2018-08-22 11:00:20 +08:00
0f2d83b24f fix(freertos): Fix timer frequency error when switch CPU frequncy 2018-08-21 17:48:51 +08:00
f5196d26a6 feat(esp8266): Modify header file relationship for app using BITx 2018-08-09 19:53:44 +08:00
bbdb7737fb Merge branch 'feature/add_freertos_hz_config' into 'master'
feat: configurate FreeRTOS HZ

See merge request sdk/ESP8266_RTOS_SDK!337
2018-08-01 09:58:33 +08:00
8e50ff353a fix(newlib): Fix application disable intterupt then call newlib internal mutex function 2018-07-30 19:58:11 +08:00
610e6a11ef feat: configurate FreeRTOS HZ 2018-07-26 16:50:04 +08:00
48a173e358 feat(freertos): Add memory mark to trace heap over call levels 2018-07-18 16:03:06 +08:00
1ba1e5ccbd feat(task): Change all tasks size 4 times the original 2018-07-09 20:11:41 +08:00
0a0db61155 feat(freertos): Change task stack unit from "unsigned long" to "unsigned char" 2018-07-09 19:35:00 +08:00
4268f9c971 feat(freertos): Add panic for task stack 2018-07-03 17:50:59 +08:00
91f7080231 fix: Fix all files when change to use standard typedef 2018-05-24 19:27:41 +08:00
29f5577ac6 feat(esp8266): Don't use ICACHE_FLASH_ATTR in SDK side 2018-05-24 12:38:06 +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
ba4dfbed74 feat(freertos): Restructure freertos folder to support different platform 2018-05-20 21:29:56 +08:00