Skip to content

Commit

Permalink
512Hz not MHz
Browse files Browse the repository at this point in the history
  • Loading branch information
TuxSH committed Apr 13, 2022
1 parent 25c0722 commit 9cba29c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stage2/arm9/source/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ void wait(u64 amount)
// Max 500ms
static inline u8 mcuPeriodMsToTick(u32 periodMs)
{
// 512MHz
// 512Hz
u32 res = 512u * periodMs / 1000u;
res = res < 2 ? 1 : res - 1; // res not allowed to be zero
res = res > 255 ? 255 : res; // res can't exceed 255
Expand Down

0 comments on commit 9cba29c

Please sign in to comment.