mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2025-04-21 12:27:27 +03:00
tools/lib/atusb.c: eliminated global variable to allow for multiple sessions
- atusb.c: introduced descriptor structure, replacing direct USB device handle - atusb.c (error): moved global variable into descriptor - driver.h (atusb_dev_handle), atusb.c (atusb_dev_handle), atrf.c (atrf_usb_handle): call driver to perform the no longer trivial translation
This commit is contained in:
@@ -46,5 +46,6 @@ int atrf_set_clkm_generic(
|
||||
void *handle, int mhz);
|
||||
|
||||
void *atben_regs(void *dsc); /* hack for atrf-xtal */
|
||||
void *atusb_dev_handle(void *dsc); /* hack for atrf-id */
|
||||
|
||||
#endif /* !DRIVER_H */
|
||||
|
||||
Reference in New Issue
Block a user