EttusResearch / uhd

The USRP™ Hardware Driver Repository
http://uhd.ettus.com
Other
942 stars 645 forks source link

TwinRx GPIO Init Sleep Too Short? #682

Closed johnwstanford closed 12 months ago

johnwstanford commented 1 year ago

If the underlying function rounds to microsecond precision, wouldn't 166ns round down to zero? In which case the sleep call would do nothing?

https://github.com/EttusResearch/uhd/blob/0e50a37b5ec6039ed4e8947421dd333047e24408/host/lib/usrp/dboard/twinrx/twinrx_io.hpp#L123

mbr0wn commented 12 months ago

No, because we have a minimum sleep duration of 1us:

https://github.com/EttusResearch/uhd/blob/master/host/lib/usrp/dboard_iface.cpp#L24-L30