X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=app%2Ftriface%2Fprotocol.c;h=fa4c0bad9741bf18a8eed63e01a9a159773b45b1;hb=b4aea3cdf30cbc54bf5d1efcc909c83b559446dd;hp=23f4612e3b8cde5fb1b64cd1c5be76cf5341d9d8;hpb=d712898666587cc12539e58fc93fcdeb5ec355cc;p=bertos.git diff --git a/app/triface/protocol.c b/app/triface/protocol.c index 23f4612e..fa4c0bad 100644 --- a/app/triface/protocol.c +++ b/app/triface/protocol.c @@ -27,7 +27,7 @@ * the GNU General Public License. * * Copyright 2003, 2004, 2006 Develer S.r.l. (http://www.develer.com/) - * Copyright 2000 Bernardo Innocenti + * Copyright 2000 Bernie Innocenti * * --> * @@ -38,7 +38,7 @@ * * \author Giovanni Bajo * \author Marco Benelli - * \author Bernardo Innocenti + * \author Bernie Innocenti * \author Daniele Basile */ @@ -302,7 +302,14 @@ MAKE_CMD(reset, "", "", (void)args; wdt_init(7); wdt_start(); + + /*We want to have an infinite loop that lock access on watchdog timer. + This piece of code it's equivalent to a while(true), but we have done this because + gcc generate a warning message that suggest to use "noreturn" parameter in function reset.*/ + ASSERT(args); + while(args); 0; + }), 0) /* Din */