/* Delay number of tick Systicks (happens every 1 ms).  */
static void mdelay(uint32_t dw_dly_ticks)
/* Delay number of tick Systicks (happens every 1 ms).  */
static void mdelay(uint32_t dw_dly_ticks)
{
	uint32_t dw_cur_ticks;
	dw_cur_ticks = dw_ms_ticks;
	while ((dw_ms_ticks - dw_cur_ticks) < dw_dly_ticks) {
	}
}