Angus Gratton
1638905f00
freertos: Add addition overflow check for stream buffer
...
Patch from upstream commit d05b9c123f2bf9090bce386a244fc934ae44db5b
2021-05-13 20:00:52 +08:00
Angus Gratton
b70127c420
freertos: Add queue init overflow check
...
Based on FreeRTOS kernel patch 47338393 but modified
to work without assertions.
2021-05-13 20:00:40 +08:00
Zhang Jun Hao
547378a329
fix(freertos): disable other task before disable nmi
2020-11-25 14:14:30 +08:00
Dong Heng
c32ba77cbd
fix(xtensa): Fix NMI reenter when multi enable MAC interrupt
2020-07-08 14:52:24 +08:00
Dong Heng
89141b5375
feat(esp8266): Panic uses hardware restart instead of software restart
2020-05-19 15:22:11 +08:00
Dong Heng
8c7305f473
fix(esp8266): fix panic reenter when reboot
2019-12-02 14:24:37 +08:00
Dong Heng
9041579f4a
Merge branch 'feature/add_option_to_link_freertos_to_iram' into 'master'
...
freertos: add option to link freertos to IRAM
See merge request sdk/ESP8266_RTOS_SDK!1171
2019-11-08 19:11:05 +08:00
Dong Heng
d0099b214b
feat(freertos): add option to link freertos to IRAM
2019-11-08 15:18:00 +08:00
Dong Heng
70331b25ff
fix(freertos): fix extended system ticks error when it increases by a large value
2019-11-07 15:28:48 +08:00
dongheng
63b5c1969b
fix(freertos): fix link bss data to IRAM causing crash
...
Global data of port.c, xtensa_context.S and xtensa_vectors.S should not be linked into IRAM now.
2019-10-09 15:33:58 +08:00
dongheng
3e6c6696ef
feat(make): add "iram_bss" to link some global varible from DRAM to IRAM
2019-09-26 17:33:22 +08:00
dongheng
4d4e1c0564
fix(esp8266): fix system and wifi sleep/wake process error
2019-09-25 14:13:47 +08:00
dongheng
643b15aaaa
feat(freertos): enable timer pending functions
2019-09-24 10:21:42 +08:00
Dong Heng
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
dongheng
aa965627d1
feat(esp8266): add new power management method
2019-08-30 20:58:32 +08:00
Dong Heng
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
dongheng
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
dongheng
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
dongheng
767d995466
feat(esp8266): refactor ESP8266(xtensa lx106) panic backtrace function
2019-08-26 16:55:20 +08:00
dongheng
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
dongheng
114d2b5b86
feature(script): update compiling script for new make and cmake
2019-08-02 14:02:45 +08:00
dongheng
9c19b1eedb
feat(factory_test): add factory test and document
2019-06-04 15:38:35 +08:00
dongheng
cca13e0f99
feat(make): Sync code from esp-idf and modify for ESP8266
...
Commit ID: f6bfe13e
2019-05-16 16:22:11 +08:00
dongheng
ea43a0c9a6
feat(system): Add global ISR swith
2019-04-28 10:40:50 +08:00
Dong Heng
ae61e4dce3
Revert "Merge branch 'feature/add_global_isr_switch' into 'master'"
...
This reverts merge request !914
2019-04-28 10:32:35 +08:00
dongheng
e7b8e9fa25
feat(system): Add global ISR swith
2019-04-24 14:40:02 +08:00
dongheng
581935b68b
feat(freertos): Add option for panic
2019-04-23 14:57:58 +08:00
dongheng
f071399ade
feat(freertos): Add CPU wait to save power
2019-04-22 17:48:40 +08:00
Dong Heng
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
dongheng
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
Dong Heng
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
dongheng
913188fdf3
feat(freertos): Simplify xtensa platform code
...
All normal ISRs are called by "_xt_isr_handler".
2019-04-16 19:49:06 +08:00
Zhang Jun Hao
965fc47ff8
feat(log): add esp_log to internal wifi lib
2019-04-12 09:35:45 +08:00
dongheng
0ce7b87da6
chore(esp_ringbuf): Divide ringbuf as a independent component from freertos
...
Other OSes platform also can use ringbuf without freertos.
2019-04-04 15:31:34 +08:00
Dong Heng
bc01a1d39c
Merge branch 'feature/update_unit_test_app' into 'master'
...
Update unit-test-app
See merge request sdk/ESP8266_RTOS_SDK!845
2019-04-01 10:40:46 +08:00
dongheng
68e990c99f
feat(freertos): Clean up unused or unsupported code for ESP8266
...
Make it easy for other OS platform to use these code.
If users want to add other OSes, they only should add 3 files:
1. "port.c": init task stack and switch task function
2. "osi.c": wrapper APIs to FreeRTOS from other OSes
3. "heap.c": wrapper APIs for other OSes' heap APIs
2019-03-27 11:45:57 +08:00
dongheng
050fb6a63f
feat(esp8266): Add esp-idf error number description
...
Commit ID: f49e2afe
2019-03-22 17:41:48 +08:00
dongheng
7e25156286
feat(freertos): Reduce close NMI time
2019-03-22 11:36:12 +08:00
dongheng
b522e9a0e1
tools(unit-test-app): Modify for ESP8266
...
1. Remove unused or unsupported unit test
2. Add extra header file to pass compiling
3. Remove unsupported functions
2019-03-18 14:07:39 +08:00
Dong Heng
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
dongheng
7fbb68f4ea
feat(esp8266): Add API to get microseconds
2019-03-12 09:39:07 +08:00
Wu Jian Gang
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
dongheng
228853728f
feat(freertos): Add function to get CPU usage
2019-03-05 14:56:27 +08:00
Wu Jian Gang
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
dongheng
d9b9e9e6a3
feat(freertos): Add option to disable FreeRTOS
2019-02-28 16:51:57 +08:00
dongheng
723faf08d9
feat(freertos): Add option to FreeRTOS sleep module
2019-02-28 15:51:05 +08:00
Dong Heng
3a30f08a0b
Merge branch 'feature/reduce_stack_info_of_panic' into 'master'
...
Remove unnecessary stack panic information
See merge request sdk/ESP8266_RTOS_SDK!774
2019-02-18 20:25:56 +08:00
Dong Heng
a822e6bcc9
feat(freertos): Remove unnecessary stack panic information
...
Using "0x......" instead of origin "......" to represent hexadecimal data of stack and idf_monitor will
show its corresponding function if the address is located at a function of the project.
2019-02-14 15:38:35 +08:00
Dong Heng
4373adbc2a
feat(freertos): Add option to enable queue sets
2019-02-14 10:58:13 +08:00
Dong Heng
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