cancel
Showing results for 
Search instead for 
Did you mean: 

Software interrupt

truf9
Associate II
Posted on January 14, 2008 at 07:42

Software interrupt

3 REPLIES 3
sjo
Associate II
Posted on May 17, 2011 at 09:49

Look in the Keil directory for the swi example.

Cheers

sjo

truf9
Associate II
Posted on May 17, 2011 at 09:49

Hello,

I am using the Keil uVision with the STR91x.lib.

Now I want to implement a software interrupt with the SWI_Handler(void) in 91x_it.c. If I call SWI_Handler() in the main(), it's jumping to SWI_Handler(void) in 91x_it.c. But the system is in user mode.

How have I handle software interrupts??

I can't find an example with SWI_Handler from ST.

Thanks

truf9
Associate II
Posted on May 17, 2011 at 09:49

The SWI_Handler will called in supervisor-mode with following:

void __swi(0) swi_func (void);

call: swi_func();

Thanks for your help.