Skip to content

Commit

Permalink
softusb-input: adjust SOF timer
Browse files Browse the repository at this point in the history
Since the core now runs with 72MHz, we have to adjust the timer value.

Signed-off-by: Michael Walle <michael@walle.cc>
  • Loading branch information
mwalle authored and Sebastien Bourdeauducq committed Apr 16, 2012
1 parent 275ff14 commit 4106553
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion softusb-input/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ int main(void)
wio8(TIMER0, 0);
while(1) {
/* wait for the next frame */
while((rio8(TIMER1) < 0xbb) || (rio8(TIMER0) < 0x70));
while((rio8(TIMER2) < 0x01) || (rio8(TIMER1) < 0xbb) || (rio8(TIMER0) < 0x70));
wio8(TIMER0, 0);

sof();
Expand Down

0 comments on commit 4106553

Please sign in to comment.