单片中断源 及各自的优先级,改变中断优先级如何设置
1个回答
2016-06-15
展开全部
使用voidIntPrioritySet(uint32_tui32Interrupt,uint8_tui8Priority)函数来设置。Thisfunctionisusedtosetthepriorityofaninterrupt.Theui32InterruptparametermustbeoneofthevalidINT_valueslistedinPeripheralDriverLibraryUser’sGuideanddefinedintheinc/hw_ints.hheaderfile.Theui8Priorityparameterspecifiestheinterruptshardwarepriorityleveloftheinterruptintheinterruptcontroller.Whenmultipleinterruptsareassertedsimultaneously,theoneswiththehighestpriorityareprocessedbeforethelowerpriorityinterrupts.Smallernumberscorrespondtohigherinterruptpriorities;priority0isthehighestinterruptpriority.////SettheUART0interruptprioritytothelowestpriority.//IntPrioritySet(INT_UART0,0xE0);////SettheUSB0interruptprioritytothehighestpriority.//IntPrioritySet(INT_USB0,0);
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询