mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
S5L8700: fix off-by-one error in kernel timer and fix incorrect interrupt mask in pcm driver.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21950 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
9be28179e4
commit
17b8805b49
2 changed files with 3 additions and 3 deletions
|
|
@ -44,13 +44,13 @@ void tick_start(unsigned int interval_in_ms)
|
|||
|
||||
/* configure timer for 10 kHz */
|
||||
TBCMD = (1 << 1); /* TB_CLR */
|
||||
TBPRE = 624; /* prescaler */
|
||||
TBPRE = 625 - 1; /* prescaler */
|
||||
TBCON = (0 << 13) | /* TB_INT1_EN */
|
||||
(1 << 12) | /* TB_INT0_EN */
|
||||
(0 << 11) | /* TB_START */
|
||||
(2 << 8) | /* TB_CS = PCLK / 16 */
|
||||
(0 << 4); /* TB_MODE_SEL = interval mode */
|
||||
TBDATA0 = cycles-1; /* set interval period */
|
||||
TBDATA0 = cycles; /* set interval period */
|
||||
TBCMD = (1 << 0); /* TB_EN */
|
||||
|
||||
/* enable timer interrupt */
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ void pcm_play_lock(void)
|
|||
void pcm_play_unlock(void)
|
||||
{
|
||||
if (--locked == 0) {
|
||||
INTMSK |= ~(1 << 10);
|
||||
INTMSK |= (1 << 10);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue