Add clear of MCU status registers at initialization.

This commit is contained in:
skarg
2010-09-24 19:38:32 +00:00
parent 6826688777
commit d5822ac53a
5 changed files with 7 additions and 5 deletions
+3 -1
View File
@@ -30,7 +30,9 @@
void init(
void)
{
/* Initialize the Clock Prescaler for ATmega48/88/168 */
/* clear the MCU Status Register */
MCUSR = 0;
/* Initialize the Clock Prescaler */
/* The default CLKPSx bits are factory set to 0011 */
/* Enbable the Clock Prescaler */
CLKPR = _BV(CLKPCE);