X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=app%2Ftriface%2Fprotocol.c;h=01a85ad50e4a5bde0a178cc2ed93791829d30769;hb=9c41a52cad9f3a8e7c7ec1c29f8722c722d4698d;hp=c84c429f13a0140f7d80a53e3f2f56012c41bc03;hpb=a9ab2dc002e9b0ff91cb3f74c3ad3aa3676b84b1;p=bertos.git diff --git a/app/triface/protocol.c b/app/triface/protocol.c index c84c429f..01a85ad5 100644 --- a/app/triface/protocol.c +++ b/app/triface/protocol.c @@ -294,15 +294,6 @@ MAKE_CMD(rdout, "", "d", 0; }), 0) -/* Doutx sperimentale....... */ -MAKE_CMD(doutx, "d", "", - ({ - sipo_putchar((uint8_t)args[1].l); - - //Store status of dout ports. - reg_status_dout = (uint8_t)args[1].l; - 0; - }), 0) /* Reset */ MAKE_CMD(reset, "", "", @@ -311,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 */ @@ -350,7 +348,6 @@ static void protocol_registerCmds(void) //Set off all dout ports. reg_status_dout = 0; REGISTER_CMD(rdout); - REGISTER_CMD(doutx); REGISTER_CMD(reset); REGISTER_CMD(din); REGISTER_CMD(ain);