How to write Interrupt/Exception Handler?
Posted: Fri Apr 27, 2012 8:02 am
hi:
Do somebody write interrupt/exception handler?
Or Is the interrupt/exception not available for users?
By the way, I see UART code in http://github.xcore.com/sc_uart/generic.html
In the uart_rx_impl.xc, there is a function
static inline void trap()
{
asm("ecallf %0" : : "r"(0));
}
how do trap() work?
Thanks for hacker!
Do somebody write interrupt/exception handler?
Or Is the interrupt/exception not available for users?
By the way, I see UART code in http://github.xcore.com/sc_uart/generic.html
In the uart_rx_impl.xc, there is a function
static inline void trap()
{
asm("ecallf %0" : : "r"(0));
}
how do trap() work?
Thanks for hacker!