Update hal_generic_bk7231.c

This commit is contained in:
openshwprojects
2025-02-15 10:34:33 +01:00
committed by GitHub
parent 82ec9c8ed6
commit e88875a458

View File

@ -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()