Project

General

Profile

Revision 45

Added by Chris Mar over 16 years ago

added and compiled math and reset to the library. doxygen to come next.

View differences:

dragonfly_lib.c
78 78
	_delay_ms(1);
79 79
}
80 80

  
81
/**
82
 * Resets the AVR when called.  Sets the watchdog timer and lets it overflow
83
 * to reset the AVR.  The reset clears all memory and resets all registers
84
 * with the exception of the Watchdog Reset Flag (WDRF) in the MCU Control
85
 * and Status Register (MCUCSR).
86
*/
87
void reset(void)
88
{
89
    WDTCR &= 0xF8;
90
    WDTCR |= 0x08;
91
    _delay_ms(15);
92
}
93 81

  
94

  
95 82
/** @} **/ //end defgroup
96 83

  

Also available in: Unified diff