From 8636e6949e802556da1588b814e454155358df90 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Wed, 11 Apr 2007 23:51:00 +0000 Subject: Moved SH1 system code to target tree. * First shot at hwcompat cleanup. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13114 a1c6a512-1295-4272-9138-f99709370657 --- apps/debug_menu.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'apps/debug_menu.c') diff --git a/apps/debug_menu.c b/apps/debug_menu.c index 682bcaf456..12d5f435b7 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c @@ -86,6 +86,7 @@ #ifdef IAUDIO_X5 #include "ds2411.h" #endif +#include "hwcompat.h" #ifndef SIMULATOR static bool dbg_list(char *title, int count, int selection_size, @@ -405,8 +406,8 @@ static bool dbg_hw_info(void) { #if CONFIG_CPU == SH7034 char buf[32]; - int bitmask = *(unsigned short*)0x20000fc; - int rom_version = *(unsigned short*)0x20000fe; + int bitmask = HW_MASK; + int rom_version = ROM_VERSION; unsigned manu, id; /* flash IDs */ bool got_id; /* flag if we managed to get the flash IDs */ unsigned rom_crc = 0xffffffff; /* CRC32 of the boot ROM */ @@ -564,7 +565,7 @@ static bool dbg_hw_info(void) char buf[32]; int button; int currval = 0; - int rom_version = *(unsigned short*)0x20000fe; + int rom_version = ROM_VERSION; unsigned manu, id; /* flash IDs */ bool got_id; /* flag if we managed to get the flash IDs */ unsigned rom_crc = 0xffffffff; /* CRC32 of the boot ROM */ -- cgit v1.2.3