1
0
Fork 0
forked from len0rd/rockbox

Get rid of C99 style variable declaration. Also, add one more use of #define instead of inl/outl that I missed last time.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12591 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Barry Wardell 2007-03-04 16:06:54 +00:00
parent 1cb5dd537d
commit 38b64f7b4b
2 changed files with 6 additions and 6 deletions

View file

@ -572,7 +572,11 @@ static bool dbg_hw_info(void)
} }
#elif CONFIG_CPU == PP5020 #elif CONFIG_CPU == PP5020
char buf[32]; char buf[32];
char pp_version[] = { (PP_VER2 >> 24) & 0xff, (PP_VER2 >> 16) & 0xff,
(PP_VER2 >> 8) & 0xff, (PP_VER2) & 0xff,
(PP_VER1 >> 24) & 0xff, (PP_VER1 >> 16) & 0xff,
(PP_VER1 >> 8) & 0xff, (PP_VER1) & 0xff, '\0' };
lcd_setmargins(0, 0); lcd_setmargins(0, 0);
lcd_setfont(FONT_SYSFIXED); lcd_setfont(FONT_SYSFIXED);
lcd_clear_display(); lcd_clear_display();
@ -582,10 +586,6 @@ static bool dbg_hw_info(void)
snprintf(buf, sizeof(buf), "HW rev: 0x%08x", ipod_hw_rev); snprintf(buf, sizeof(buf), "HW rev: 0x%08x", ipod_hw_rev);
lcd_puts(0, 1, buf); lcd_puts(0, 1, buf);
char pp_version[] = { (PP_VER2 >> 24) & 0xff, (PP_VER2 >> 16) & 0xff,
(PP_VER2 >> 8) & 0xff, (PP_VER2) & 0xff,
(PP_VER1 >> 24) & 0xff, (PP_VER1 >> 16) & 0xff,
(PP_VER1 >> 8) & 0xff, (PP_VER1) & 0xff, '\0' };
snprintf(buf, sizeof(buf), "PP version: %s", pp_version); snprintf(buf, sizeof(buf), "PP version: %s", pp_version);
lcd_puts(0, 2, buf); lcd_puts(0, 2, buf);
lcd_update(); lcd_update();

View file

@ -451,7 +451,7 @@ void pcm_rec_dma_start(void *addr, size_t size)
p = addr; p = addr;
/* setup FIQ */ /* setup FIQ */
outl(inl(0x6000402c) | I2S_MASK, 0x6000402c); CPU_INT_PRIORITY |= I2S_MASK;
CPU_INT_EN = I2S_MASK; CPU_INT_EN = I2S_MASK;
/* interrupt on full fifo */ /* interrupt on full fifo */