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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

960 Views
Ming
Contributor III
I read the user op manual, couln't find anything.
Labels (1)
0 Kudos
1 Reply

278 Views
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 Kudos