Skip to content

Commit

Permalink
Update hal_generic_bk7231.c
Browse files Browse the repository at this point in the history
  • Loading branch information
openshwprojects authored Feb 15, 2025
1 parent 82ec9c8 commit e88875a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/hal/bk7231/hal_generic_bk7231.c
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit e88875a

Please sign in to comment.