/* Wait for the given number of milliseconds (using the dwTimeStamp generated by the SAM microcontrollers' system tick).  */
static void mdelay(uint32_t ul_dly_ticks)
/* Wait for the given number of milliseconds (using the dwTimeStamp generated by the SAM microcontrollers' system tick).  */
static void mdelay(uint32_t ul_dly_ticks)
{
	uint32_t ul_cur_ticks;
	ul_cur_ticks = ul_ms_ticks;
	while ((ul_ms_ticks - ul_cur_ticks) < ul_dly_ticks);
}