> >+ > >+ while (((nes_read32(nesdev->regs+NES_SOFTWARE_RESET) > >+ & 0x00000040) != 0x00000040) && (i++ < 5000)) { > >+ } > > Is there a better way to wait for the read?
Typically, the reset is pretty quick and is complete within a few loops. The i++ counter is there to prevent a driver hang in case the reset fails for some reason. Thanks, Glenn. > > - Sean > _______________________________________________ > ewg mailing list > ewg@lists.openfabrics.org > http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ewg > _______________________________________________ ewg mailing list ewg@lists.openfabrics.org http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ewg