Andes Workshop http://forum.andestech.com/ |
|
如何產生software interrupt? http://forum.andestech.com/viewtopic.php?f=16&t=230 |
Page 1 of 1 |
Author: | cindy [ Thu Feb 16, 2012 12:29 pm ] |
Post subject: | 如何產生software interrupt? |
如何產生software interrupt? You can reference demo-int under Andesight200MCU/demo/startup. In interrupt.c of demo-int, the following statement can generate an SW interrupt. Code: void gen_swi()
{ unsigned int int_pend; int_pend = __nds32__mfsr(NDS32_SR_INT_PEND); int_pend |= 0x10000; __nds32__mtsr(int_pend, NDS32_SR_INT_PEND); __nds32__dsb(); } |
Page 1 of 1 | All times are UTC + 8 hours [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |