/* Called on boot to increment a count stored in the EEPROM. This is used to ensure the CPU does not reset unexpectedly.  */
static void prvIncrementResetCount(void)
/* Called on boot to increment a count stored in the EEPROM. This is used to ensure the CPU does not reset unexpectedly.  */
static void prvIncrementResetCount(void)
{
unsigned char ucCount;
	eeprom_read_block( &ucCount, mainRESET_COUNT_ADDRESS, sizeof( ucCount ) );
	ucCount++;
	eeprom_write_byte( mainRESET_COUNT_ADDRESS, ucCount );
}