完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
骨膜可以移除吗?我的项目需要保持高优先级中断。许多来自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个回答
|
|
如果你曾经使用过RTOS,你可能不应该改变与此相关的任何事情。
以上来自于百度翻译 以下为原文 If you ever use an RTOS you probably shouldn't change anything to do with this. |
|
|
|
没有这个项目的操作系统。或任何计划的项目。
以上来自于百度翻译 以下为原文 No operating systems for this project. Or any planned projects. |
|
|
|
嗨,如果你的项目不使用任何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 |
|
|
|
我的和声配置没有选择的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. |
|
|
|
为什么不写自己的Oracle调用,重写和声呢?这样,你可以做一个自定义的实现,只留下你的ISR。如果没有一些研究,我就不能确定这些书架需要某种形式。
以上来自于百度翻译 以下为原文 Why not write your own OSAL calls and override the harmony ones? That way you could do a custom implementation that would leave your ISR alone. Without some study I wouldn't be sure that some form of it is needed for those stacks. |
|
|
|
我不知道PIC32中可能会出错,但是如果中断高于最高RTOS级别,并且不使用SFR的另一个端口可能具有非原子使用的端口,那么它应该是可行的。:)
以上来自于百度翻译 以下为原文 I don't know what could go wrong in PIC32, specifically, but if the interrupts are higher than the highest RTOS level AND you do not use any ports of SFR's that another function may have non-atomic use of, then it should be workable. That said, thread and safe often form a programmers worst oxymoron :) |
|
|
|
所有OSalxxxx调用都是宏。如果你跟随他们,他们都不会导致代码。Nick
以上来自于百度翻译 以下为原文 All OSAL_xxx calls are macros. If you follow them, they all should result in no code. Nick |
|
|
|
只有小组成员才能发言,加入小组>>
5362 浏览 9 评论
2094 浏览 8 评论
1996 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3274 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2306 浏览 5 评论
870浏览 1评论
758浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
699浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
750浏览 0评论
644浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-2-25 05:23 , Processed in 1.231007 second(s), Total 89, Slave 73 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191