Thread 中讨论的其他器件:SYSBIOS
工具/软件:TI-RTOS
您好!
是否有人知道如何在 SYSBIOS 中配置 Task_hooks.length。 在我的应用程序中、它设置为1 (通过打印值来验证)、但我需要使其成为更大的值。
Jakub
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
工具/软件:TI-RTOS
您好!
是否有人知道如何在 SYSBIOS 中配置 Task_hooks.length。 在我的应用程序中、它设置为1 (通过打印值来验证)、但我需要使其成为更大的值。
Jakub
您好 Todd、
这不是我需要的。 我在 Jacinto 6 SoC 上使用 TI 的 NDK。 套接字层要求函数:
ndk_hookInit(ndkHookId);
NDK_hookCreate (TaskSelf ());
在使用套接字之前调用。
NDK_hookCreate()函数为:
空 NDK_hookCreate (Task_handle h)
{
挂钩= 1;
if (hookId!= 0xffffffff){
Task_setHookContext (h、(int) hookId、0);
/*自动打开文件描述符会话(如果配置为)*/
TI_NDK_CONFIG_GLOBAL_taskCreateHook (h);
}
}
首先通过调用 NDK_hookInit()来设置 hookId。
在任务挂钩上下文中、我需要一个空闲时隙来存储 NDK 特定上下文、而不是任务挂钩函数。
是否有办法实现这一点?
在应用程序的调试变体中,当我调用 NDK_hookCreate()时,我会崩溃。 当我注释掉此调用或使用版本变体时、不会发生崩溃。
谢谢、
Jakub