greatscottgadgets / apollo

microcontroller-based FPGA / JTAG programmer
BSD 3-Clause "New" or "Revised" License
61 stars 29 forks source link

apollo_fpga: Add optional timeout to `ApolloDebugger._find_device` #106

Closed mndza closed 1 month ago

mndza commented 2 months ago

As PyUSB does not provide a way to wait for a device, we simulate it with periodic sleeps. If we move to libusb1 at some point we can get rid of this.

Fixes greatscottgadgets/cynthion#142.