freemyipod r411 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r410‎ | r411 | r412 >
Date:15:38, 7 January 2011
Author:theseven
Status:new
Tags:
Comment:
S5L8702: Adjust tick timer prescaler (still not 100% accurate, but much closer than before)
Modified paths:
  • /embios/trunk/target/ipodnano3g/timer.c (modified) (history)

Diff [purge]

Index: embios/trunk/target/ipodnano3g/timer.c
@@ -39,7 +39,7 @@
4040 THCMD = (1 << 1); /* TH_CLR */
4141
4242 /* configure timer for 10 kHz */
43 - TBPRE = 208 - 1; /* prescaler */
 43+ TBPRE = 337 - 1; /* prescaler */
4444 TBCON = (0 << 13) | /* TB_INT1_EN */
4545 (1 << 12) | /* TB_INT0_EN */
4646 (0 << 11) | /* TB_START */