* the GNU General Public License.
*
* Copyright 2003, 2004, 2006 Develer S.r.l. (http://www.develer.com/)
- * Copyright 2000 Bernardo Innocenti <bernie@codewiz.org>
+ * Copyright 2000 Bernie Innocenti <bernie@codewiz.org>
*
* -->
*
*
* \author Giovanni Bajo <rasky@develer.com>
* \author Marco Benelli <marco@develer.com>
- * \author Bernardo Innocenti <bernie@develer.com>
+ * \author Bernie Innocenti <bernie@codewiz.org>
* \author Daniele Basile <asterix@develer.com>
*/
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, "", "",
(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 */
//Set off all dout ports.
reg_status_dout = 0;
REGISTER_CMD(rdout);
- REGISTER_CMD(doutx);
REGISTER_CMD(reset);
REGISTER_CMD(din);
REGISTER_CMD(ain);