asm "jump" in codeRed

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

asm "jump" in codeRed

641 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by leluno on Wed Apr 22 01:37:15 MST 2015
with a watchdog-timer the code first should go to the beginnin of the while(1)-loop, second to reset.
on AVR it works like this:
if(zl_sec_wdg==25){asm("jmp label");}
if(zl_sec_wdg>50){asm("jmp 0");}


jmp 0 equals NVIC_SystemReset()
how can I make asm("jmp label" in codeRed?

thanks for helping
Labels (1)
0 Kudos
Reply
1 Reply

623 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by whitecoe on Wed Apr 22 02:09:50 MST 2015
Sounds like you want the standard C "continue" statement, described in any book on C or on lots of webpages, for example:

http://www.codingunit.com/c-tutorial-for-loop-while-loop-break-and-continue

HTH!
0 Kudos
Reply