static void prepare_fpga_for_configuration(gpio &prog, gpio &)//init) { prog.set_value(true); prog.set_value(false); prog.set_value(true); #if 0 bool ready_to_program(false); unsigned int count(0); do { ready_to_program = init.get_value(); count++; sleep(1); } while (count < 10 && !ready_to_program); if (count == 10) { throw uhd::os_error("FPGA not ready for programming."); } #endif }
static void prepare_fpga_for_configuration(gpio &prog, gpio &init) { prog.set_value(true); prog.set_value(false); prog.set_value(true); #if 0 bool ready_to_program(false); unsigned int count(0); do { ready_to_program = init.get_value(); count++; sleep(1); } while (count < 10 && !ready_to_program); if (count == 10) { std::cout << "FPGA not ready for programming." << std::endl; exit(-1); } #endif }