File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 55#include "espnet.h"
66#include "freertos/FreeRTOS.h"
77#include "freertos/semphr.h"
8+ #include "freertos/task.h"
89
910// Stub functions, to know which functions need to be implemented for OS
1011// functionality.
@@ -158,10 +159,6 @@ static int32_t _task_ms_to_tick(uint32_t ms) {
158159 P (_task_ms_to_tick )
159160 return 0 ;
160161}
161- static void * _task_get_current_task (void ) {
162- P (_task_get_current_task )
163- return NULL ;
164- }
165162static int32_t _task_get_max_priority () {
166163 P (_task_get_max_priority )
167164 return 0 ;
@@ -466,7 +463,7 @@ wifi_osi_funcs_t g_wifi_osi_funcs = {
466463 ._task_delete = _task_delete ,
467464 ._task_delay = _task_delay ,
468465 ._task_ms_to_tick = _task_ms_to_tick ,
469- ._task_get_current_task = _task_get_current_task ,
466+ ._task_get_current_task = ( void * ( * )( void )) xTaskGetCurrentTaskHandle ,
470467 ._task_get_max_priority = _task_get_max_priority ,
471468 ._malloc = malloc ,
472469 ._free = free ,
You can’t perform that action at this time.
0 commit comments