mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-02-04 18:55:44 +00:00
Update hal_generic_bk7231.c
This commit is contained in:
@ -15,7 +15,12 @@ void HAL_Delay_us(int delay)
|
||||
{
|
||||
float adj = 1;
|
||||
if(g_powersave) adj = 1.5;
|
||||
#if PLATFORM_BK7238
|
||||
// current n/t are for 120mhz, BK7238 freq is 160mhz
|
||||
usleep((23 * delay * adj) / 10); // "1" is to fast and "2" to slow, 1.7 seems better than 1.5 (only from observing readings, no scope involved)
|
||||
#else
|
||||
usleep((17 * delay * adj) / 10); // "1" is to fast and "2" to slow, 1.7 seems better than 1.5 (only from observing readings, no scope involved)
|
||||
#endif
|
||||
}
|
||||
|
||||
void HAL_Configure_WDT()
|
||||
|
||||
Reference in New Issue
Block a user