Jeroen Domburg
6f96b23989
Merge in master updates
2016-10-26 11:04:42 +08:00
Jeroen Domburg
89f7752cdd
Make CPU1 int wdt / idle task wdt configurable, panic now properly disables other cpu, tick handler now also is called on cpu1, task wdt prints currently running tasks.
2016-10-25 18:08:55 +08:00
Jeroen Domburg
75a11589a1
Disable brown-out WDT, fix thread WDT, add panic reason indication to _xt_panic()
2016-10-25 17:05:13 +08:00
Jeroen Domburg
0aab006bb7
Add Trax-support to esp-idf
2016-10-17 12:18:17 +08:00
Jeroen Domburg
df31bb8dfc
Rename include, use spaces instead of tabs
2016-10-09 15:32:08 +08:00
Jeroen Domburg
0383bc8599
Merge branch 'workaround/pin_noaffinity_task_to_core_when_fpu_used' into 'master'
...
Workaround: Automatically pin no-cpu-affinity task to a core when FPU is used
FPU status at the moment does not migrate cleanly between cores, so tasks without affinity that happen to migrate across FPUs will run into problems. As a workaround, this modification will automatically pin the task to the current CPU when FPU activity is detected. If anything, it's better than getting all kinds of weird and wonderful FPU corruption issues...
See merge request !124
2016-09-29 11:16:41 +08:00
Jeroen Domburg
4daa768e3c
Define xcoreid offset, add warning in tcb struct wrt the need to also change that define when struct changes
2016-09-29 11:07:18 +08:00
Jeroen Domburg
b3309a03a3
Automatically pin no-cpu-affinity task to a core when FPU is used
2016-09-28 17:02:44 +08:00
Jeroen Domburg
fc53bb6ed5
Add UNTESTED_FUNCTION() call to untested functions, make Kconfig option to enable that to map to assert()
2016-09-27 11:36:30 +08:00
Jeroen Domburg
b8bfa9fa35
Spinlocks already come initialized. Remove the code that would essentially re-initialize them at runtime
2016-09-23 17:46:16 +08:00
Ivan Grokhotkov
e8ae38024d
components/freertos: override per-task __cleanup handler to close stdin, stdout, stderr
...
Default _cleanup_r doesn't do that, which leaks these three file descriptors.
2016-09-19 19:28:36 +08:00
Jeroen Domburg
174a0e3f8b
Fix bug where nesting vTaskEnterCritical calls would not re-enable interrupts after vTaskExitCritical sections.
2016-09-13 11:47:22 +08:00
Ivan Grokhotkov
1c6859573b
freertos: protect calls to prvAddTaskToReadyList with xTaskQueueMutex
2016-09-09 17:59:37 +08:00
Jeroen Domburg
9664de6867
Add working portASSERT_IF_IN_ISR function, fix enter_critical thing even better.
2016-09-09 17:15:50 +08:00
Jeroen Domburg
128bb77c5a
Fix prev code to not crash horribly when scheduler is not running yet
2016-09-09 17:15:49 +08:00
Jeroen Domburg
08ec33c6a2
Make vTaskEnterCritical callable from ISR
2016-09-09 17:15:12 +08:00
liuzhifu
91135da190
impact components: lwip/freertos
...
1. Remove xTaskGetPerTaskData
2. Implement lwip per thread semaphore with vTaskSetThreadLocalStoragePointer
and pvTaskGetThreadLocalStoragePointer
3. Add sys_thread_sem_get/sys_thread_sem_init/sys_thread_sem_deinit
2016-08-26 19:03:50 +08:00
liuzhifu
6f122928f0
fix socket compile error
2016-08-26 19:03:50 +08:00
Angus Gratton
00ea21f736
FreeRTOS: Convert portMUX_DEBUG to a configuration item
2016-08-25 16:43:59 +08:00
Jeroen Domburg
bdf4b27e38
Add symbol needed for OpenOCD to detect FreeRTOS, add feature to break execution when the scheduler is initially started.
2016-08-24 17:32:20 +08:00
Jeroen Domburg
29c2e58c75
'Merge branch 'thread_local_storage_delete_callbacks' into 'master'
...
The thread-local-storage feature in FreeRTOS attaches an application-usable array of pointers to a thread control block. These pointers usually point to a structure the thread allocates. When a thread gets (voluntarily or involuntarily) destroyed, this memory can leak. This merge adds a matching second array of user-settable pointers to destructor routines. As soon as the task gets cleaned up (which happens in the idle thread), the destructors get called and the memory can be freed.
See merge request !19
2016-08-24 13:30:30 +08:00
Jeroen Domburg
925fbb587e
Add static initializers for muxes, add mutex init to vPortCPUAcquireMutex
2016-08-22 17:36:32 +08:00
Ivan Grokhotkov
bd6ea4393c
Initial public version
2016-08-17 23:08:22 +08:00