Cypress技术论坛
直播中

潘务单

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

请问禁用除特定WDT之外的所有中断有更好的办法吗?

我试图禁用所有中断,除了一个这样的:
环磷酸化;/禁用所有相互作用
cysyswdtenable(cy_sys_wdt_counter2_mask);//启用这一。
有更好的办法吗?
                    
                    
以上来自于百度翻译

               
                                                                                      以下为原文
                                            I am trying to disable all interrupts except one like this:

CyGlobalIntDisable; // disable all interrutpts
CySysWdtEnable(CY_SYS_WDT_COUNTER2_MASK); // enable just this one.

is there a better way?

回帖(5)

王琳

2018-8-15 08:16:05
恐怕这行不通。
cyglobalintdisable将毛点在处理器状态登记防止中断射击(除NMI)
鲍勃
                    
                    
以上来自于百度翻译

               
                                                                                      以下为原文
                                            I am afraid that this will not work.
CyGlobalIntDisable will seta bit in the processor status register to prevent any interrupt from firing (except NMI)
 
Bob
举报

潘务单

2018-8-15 08:22:52
引用: ncmza 发表于 2018-8-15 08:16
恐怕这行不通。
cyglobalintdisable将毛点在处理器状态登记防止中断射击(除NMI)
鲍勃

谢谢!
还有其他禁用我能使用的所有中断功能吗?
                    
                    
以上来自于百度翻译

               
                                                                                      以下为原文
                                            Thanks !
Is there another disable all interrupts function i can use?
举报

王琳

2018-8-15 08:41:24
引用: qusha5668 发表于 2018-8-15 08:22
谢谢!
还有其他禁用我能使用的所有中断功能吗?
                    

不存在。肠临界区(和临界区)也一样。
当你更多地告诉你你的问题是什么时候会更好。
鲍勃
                    
                    
以上来自于百度翻译

               
                                                                                      以下为原文
                                            Afaik there isn't. EnterCriticalSection() and ExitCriticalSection do the same.
Would be better when you tell a bit more what your problem is.
 
Bob
举报

潘务单

2018-8-15 08:54:55
引用: ncmza 发表于 2018-8-15 08:41
不存在。肠临界区(和临界区)也一样。
当你更多地告诉你你的问题是什么时候会更好。
鲍勃

我想所有中断睡眠前,由只可中断和别的醒来。
                    
                    
以上来自于百度翻译

               
                                                                                      以下为原文
                                            I want to disable all interrupts before sleep, and wake up from only the WDT2 interrupt and nothing else.
举报

更多回帖

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