Skip to content

Commit

Permalink
timer: Fix TimerBusClock2USec
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziemas committed Nov 25, 2023
1 parent 6b656d1 commit 1261444
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ee/kernel/include/timer_alarm.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ static inline u64 Sec2TimerBusClock(u64 sec) {
static inline void TimerBusClock2USec (u64 ulClock, u32 *pSec, u32 *pUsec) {
u64 sec = ulClock/kBUSCLK;
*pSec = (u32)sec;
*pUsec = ulClock - (sec * kBUSCLK);
*pUsec = (1000000 * (ulClock - (sec * kBUSCLK))) / kBUSCLK;
}

static inline u64 TimerUSec2BusClock (u32 sec, u32 usec) {
Expand Down

0 comments on commit 1261444

Please sign in to comment.