make crc check optional

This commit is contained in:
optixx 2009-09-17 19:57:25 +02:00 committed by Jannis (jix) Harder
parent fa27d73167
commit 5451aeb39b
2 changed files with 8 additions and 1 deletions

View File

@ -47,4 +47,6 @@
#define HW_VERSION "2.6"
#define SW_VERSION "1.0"
#define DO_CRC_CHECK 1
#endif

View File

@ -278,7 +278,7 @@ void boot_startup_rom(uint16_t init_delay)
rle_decode(&_rom, ROM_BUFFER_SIZE, 0x000000);
info_P(PSTR("\n"));
#if 0
#if DO_CRC_CHECK
dump_memory(0x010000 - 0x100, 0x010000);
uint16_t crc;
crc = crc_check_bulk_memory((uint32_t)0x000000,0x010000, 0x010000);
@ -356,6 +356,11 @@ int main(void)
shared_memory_scratchpad_region_rx_restore();
#endif
#if DO_CRC_CHECK
info_P(PSTR("-->CRC Checkn"));
crc_check_bulk_memory(0x000000, req_addr, req_bank_size);
#endif
info_P(PSTR("-->Switch TO SNES\n"));
set_rom_mode();
snes_wr_disable();