on MCF5213, how to setup reentrant interrupt calls within an ISR

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

on MCF5213, how to setup reentrant interrupt calls within an ISR

1,349 次查看
Ming
Contributor III
I read the user op manual, couln't find anything.
标签 (1)
0 项奖励
回复
1 回复

667 次查看
PaoloRenzo
Contributor V

Ming wrote:
I read the user op manual, couln't find anything.



Maybe this could give you some light in this issue:

Note the "interrupt:0x2400" line and read about Core interrupt level stored in SR (status register).

/*
* sw1ISR: IRQ4 Interrupt Service Routine
*
* Parameters: None
*
* Return : None.
*/
__declspec(interrupt:0x2400) void sw1ISR(void)
{
/* reading pin irq4 state */
while (!(MCF_EPORT_EPPDR & MCF_EPORT_EPPDR_EPPD4))
; /* Wait for the switch to deassert */

/* show value to EVB LEDs */
LEDshow(0x03,150);

/* Clear the interrupt event */
MCF_EPORT_EPFR = MCF_EPORT_EPFR_EPF4;

return;
}

Good luck!
0 项奖励
回复