enable AVR write in shared mode; disable smc_id in db creation (speedup)
This commit is contained in:
@@ -163,13 +163,13 @@ uint16_t scan_dir(char* path, char mkdb, uint32_t this_dir_tgt) {
|
||||
uint16_t pathlen = strlen(path);
|
||||
switch(type) {
|
||||
case TYPE_SMC:
|
||||
file_open_by_filinfo(&fno);
|
||||
if(file_res){
|
||||
dprintf("ZOMG NOOOO %d\n", file_res);
|
||||
_delay_ms(30);
|
||||
}
|
||||
smc_id(&romprops);
|
||||
file_close();
|
||||
// XXX file_open_by_filinfo(&fno);
|
||||
// XXX if(file_res){
|
||||
// XXX dprintf("ZOMG NOOOO %d\n", file_res);
|
||||
// XXX _delay_ms(30);
|
||||
// XXX }
|
||||
// XXX smc_id(&romprops);
|
||||
// XXX file_close();
|
||||
// _delay_ms(30);
|
||||
// write element pointer to current dir structure
|
||||
// dprintf("d=%d Saving %lX to Address %lX [file]\n", depth, db_tgt, dir_tgt);
|
||||
|
||||
@@ -278,6 +278,8 @@ restart:
|
||||
uart_puts_P(PSTR("SNES GO!\r\n"));
|
||||
snes_reset(0);
|
||||
|
||||
|
||||
|
||||
uint8_t cmd = 0;
|
||||
|
||||
while(!sram_reliable());
|
||||
@@ -316,6 +318,7 @@ restart:
|
||||
cmd=0;
|
||||
uint8_t snes_reset_prev=0, snes_reset_now=0, snes_reset_state=0;
|
||||
uint16_t reset_count=0;
|
||||
// /* XXX */ writetest();
|
||||
while(fpga_test() == FPGA_TEST_TOKEN) {
|
||||
snes_reset_now=get_snes_reset();
|
||||
if(snes_reset_now) {
|
||||
|
||||
Reference in New Issue
Block a user