Microchip
直播中

刘羽扬

7年用户 201经验值
私信 关注
[问答]

可以删除OSAL吗?

骨膜可以移除吗?我的项目需要保持高优先级中断。许多来自USB和TCPIP的调用使用OLAP来关闭全局中断。许多中断禁用似乎是不必要的。类似于此:/*防止其他任务抢占该代码序列*/ItStase= OsaslCurtixEnter(OsaslCuriTyType Type高);(此端点队列E-GT;QsiZeCurrNeTePrad)+;OsallCurtIyLead(OasalCurtIyType Type,高,ItStand);它看起来像禁用USB中断将是足够的。

以上来自于百度翻译


      以下为原文

    Can the OSAL be removed?

My project needs to keep a high priority interrupt on. Many calls from USB and TCPIP use OSAL to turn off global interrupts.

A lot of the interrupt disables seem unnecessary. Like this one:

/* Prevent other tasks pre-empting this sequence of code */
IntState = OSAL_CRIT_Enter(OSAL_CRIT_TYPE_HIGH);
(thisEndpointQueueSize->qSizeCurrentEpRead)++;
OSAL_CRIT_Leave(OSAL_CRIT_TYPE_HIGH, IntState);

It looks like disabling USB interrupts would be enough.

回帖(7)

刘涛

2018-9-26 16:34:28
如果你曾经使用过RTOS,你可能不应该改变与此相关的任何事情。

以上来自于百度翻译


      以下为原文

    If you ever use an RTOS you probably shouldn't change anything to do with this.
举报

杨梅

2018-9-26 16:42:17
没有这个项目的操作系统。或任何计划的项目。

以上来自于百度翻译


      以下为原文

    No operating systems for this project. Or any planned projects.
举报

杨叶

2018-9-26 16:52:41
嗨,如果你的项目不使用任何OS,你就不应该看到任何Oracle API……检查MHCOp配置并确保OS没有被选中。或者你从一个使用FreeRTOS的现有和声例子开始?当做

以上来自于百度翻译


      以下为原文

    Hi,
If your project does not use any OS, you should not see any OSAL APis....
Check the MHCconfiguration and make sure that the OS is not selected.
Or maybe you started from an existing Harmony example which used FreeRTOS ?
Regards
举报

杨梅

2018-9-26 17:00:48
我的和声配置没有选择的RTOS选项。在USB和TCPIP栈中查看它们,它们似乎没有开关来禁用Oracle调用。无论是否使用RTOS,似乎都使用了AUL。

以上来自于百度翻译


      以下为原文

    My harmony configuration does not have the RTOS option selected. Looking around in the USB and TCPIP stacks they do not appear to have switches to disable the OSAL calls. It appears that OSAL is used whether or not an RTOS is used.
举报

更多回帖

发帖
×
20
完善资料,
赚取积分