Skip to main content
Visitor II
January 14, 2008
Question

Software interrupt

  • January 14, 2008
  • 3 replies
  • 717 views
Posted on January 14, 2008 at 07:42

Software interrupt

    This topic has been closed for replies.

    3 replies

    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 09:49

    Look in the Keil directory for the swi example.

    Cheers

    sjo

    truf9Author
    Visitor II
    May 17, 2011
    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

    truf9Author
    Visitor II
    May 17, 2011
    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.