/* This function delays for a number of microseconds (not compiled).  */
void sha204h_start_timer(uint16_t delay, uint8_t is_blocking)
/* This function delays for a number of microseconds (not compiled).  */
void sha204h_start_timer(uint16_t delay, uint8_t is_blocking)
{
	tc_set_resolution(DELAY_COUNTER, 1000);
	uint32_t resolution = tc_get_resolution(DELAY_COUNTER);
	tc_write_period(DELAY_COUNTER, (resolution * (uint32_t) delay) / 1000);
	tc_restart(DELAY_COUNTER);
	sha204_timer_expired = false;
	if (is_blocking)
	   while (sha204_timer_expired == false);
}