[bsp]support cvitek sdhci drvier (#8849)

support cvitek sdhci drvier
This commit is contained in:
flyingcys
2024-04-24 05:40:22 +08:00
committed by GitHub
parent 62544df564
commit 2c8c4ccc47
15 changed files with 7222 additions and 55 deletions
+19
View File
@@ -49,3 +49,22 @@ int rt_hw_tick_init(void)
return 0;
}
/**
* This function will delay for some us.
*
* @param us the delay time of us
*/
void rt_hw_us_delay(rt_uint32_t us)
{
unsigned long start_time;
unsigned long end_time;
unsigned long run_time;
start_time = get_ticks();
end_time = start_time + us * (TIMER_CLK_FREQ / 1000000);
do
{
run_time = get_ticks();
} while(run_time < end_time);
}