www.pudn.com > swiomap.rar > main.c
#include "c5410_swicfg.h"
Uns mailbox;
void prd_550()
{
SWI_or(&SWI0,1);
}
void prd_1350()
{
SWI_or(&SWI0,2);
}
void my_swi()
{
mailbox=SWI_getmbox();
if(mailbox == 1)
LOG_printf(&LOG_msg,"The current SWI is post by PRD_550 !\n");
if(mailbox == 2)
LOG_printf(&LOG_msg,"The current SWI is post by PRD_1350 !\n");
}
main()
{
}