From 234489a449e13d99b76daff61ff7774226d21a5b Mon Sep 17 00:00:00 2001 From: Jean-Philippe Bernardy Date: Fri, 25 Feb 2005 09:19:44 +0000 Subject: gmini: updated to new interface for ddma git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6055 a1c6a512-1295-4272-9138-f99709370657 --- apps/debug_menu.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'apps') diff --git a/apps/debug_menu.c b/apps/debug_menu.c index 63630b2ba9..18b081df76 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c @@ -238,7 +238,6 @@ unsigned short crc_16(const unsigned char* buf, unsigned len) #if CONFIG_CPU == TCC730 -extern int idatastart __attribute__ ((section(".idata"))); static unsigned flash_word_temp __attribute__ ((section (".idata"))); static void flash_write_word(unsigned addr, unsigned value) __attribute__ ((section(".icode"))); @@ -246,13 +245,13 @@ static void flash_write_word(unsigned addr, unsigned value) { flash_word_temp = value; long extAddr = (long)addr << 1; - ddma_transfer(1, 1, (char*)&flash_word_temp - (char*)&idatastart, extAddr, 2); + ddma_transfer(1, 1, &flash_word_temp, extAddr, 2); } static unsigned flash_read_word(unsigned addr) __attribute__ ((section(".icode"))); static unsigned flash_read_word(unsigned addr) { long extAddr = (long)addr << 1; - ddma_transfer(1, 1, (char*)&flash_word_temp - (char*)&idatastart, extAddr, 2); + ddma_transfer(1, 1, &flash_word_temp, extAddr, 2); return flash_word_temp; } -- cgit v1.2.3