summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBarry Wardell <rockbox@barrywardell.net>2007-03-04 16:06:54 +0000
committerBarry Wardell <rockbox@barrywardell.net>2007-03-04 16:06:54 +0000
commit38b64f7b4b159148ccd0071b18acf4e174d3693e (patch)
treeae29d0ae4cad3a1308aa1f7647809187fd567130
parent1cb5dd537deb28a94c65514e93603eced3ce6dab (diff)
downloadrockbox-38b64f7b4b159148ccd0071b18acf4e174d3693e.tar.gz
rockbox-38b64f7b4b159148ccd0071b18acf4e174d3693e.zip
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
-rw-r--r--apps/debug_menu.c10
-rw-r--r--firmware/target/arm/pcm-pp.c2
2 files changed, 6 insertions, 6 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index c939f02852..d6c5ef4d1c 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -572,7 +572,11 @@ static bool dbg_hw_info(void)
572 } 572 }
573#elif CONFIG_CPU == PP5020 573#elif CONFIG_CPU == PP5020
574 char buf[32]; 574 char buf[32];
575 575 char pp_version[] = { (PP_VER2 >> 24) & 0xff, (PP_VER2 >> 16) & 0xff,
576 (PP_VER2 >> 8) & 0xff, (PP_VER2) & 0xff,
577 (PP_VER1 >> 24) & 0xff, (PP_VER1 >> 16) & 0xff,
578 (PP_VER1 >> 8) & 0xff, (PP_VER1) & 0xff, '\0' };
579
576 lcd_setmargins(0, 0); 580 lcd_setmargins(0, 0);
577 lcd_setfont(FONT_SYSFIXED); 581 lcd_setfont(FONT_SYSFIXED);
578 lcd_clear_display(); 582 lcd_clear_display();
@@ -582,10 +586,6 @@ static bool dbg_hw_info(void)
582 snprintf(buf, sizeof(buf), "HW rev: 0x%08x", ipod_hw_rev); 586 snprintf(buf, sizeof(buf), "HW rev: 0x%08x", ipod_hw_rev);
583 lcd_puts(0, 1, buf); 587 lcd_puts(0, 1, buf);
584 588
585 char pp_version[] = { (PP_VER2 >> 24) & 0xff, (PP_VER2 >> 16) & 0xff,
586 (PP_VER2 >> 8) & 0xff, (PP_VER2) & 0xff,
587 (PP_VER1 >> 24) & 0xff, (PP_VER1 >> 16) & 0xff,
588 (PP_VER1 >> 8) & 0xff, (PP_VER1) & 0xff, '\0' };
589 snprintf(buf, sizeof(buf), "PP version: %s", pp_version); 589 snprintf(buf, sizeof(buf), "PP version: %s", pp_version);
590 lcd_puts(0, 2, buf); 590 lcd_puts(0, 2, buf);
591 lcd_update(); 591 lcd_update();
diff --git a/firmware/target/arm/pcm-pp.c b/firmware/target/arm/pcm-pp.c
index d8eecadc9b..8b2186a7ba 100644
--- a/firmware/target/arm/pcm-pp.c
+++ b/firmware/target/arm/pcm-pp.c
@@ -451,7 +451,7 @@ void pcm_rec_dma_start(void *addr, size_t size)
451 p = addr; 451 p = addr;
452 452
453 /* setup FIQ */ 453 /* setup FIQ */
454 outl(inl(0x6000402c) | I2S_MASK, 0x6000402c); 454 CPU_INT_PRIORITY |= I2S_MASK;
455 CPU_INT_EN = I2S_MASK; 455 CPU_INT_EN = I2S_MASK;
456 456
457 /* interrupt on full fifo */ 457 /* interrupt on full fifo */