1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2025-04-21 12:27:27 +03:00

tools/lib/: added driver selection and driver-specific parameters to backend

- atrf.c (atrf_open, select_driver, do_atrf_open): added infrastructure
  for passing the driver name and further parameters to atrf_open
- atrf.c (struct atrf_dsc): made "driver" constant
- driver.h (struct atrf_driver), atben.c (atben_open), atusb.c
  (atusb_open): added string argument to the "open" function
- atusb.c (atusb_driver): corrected unterminated comment
This commit is contained in:
Werner Almesberger
2011-04-09 21:00:48 -03:00
parent bc6bce9923
commit c18d3e58d2
4 changed files with 66 additions and 15 deletions

View File

@@ -50,7 +50,7 @@ static int atusb_clear_error(void *dsc)
/* ----- open/close -------------------------------------------------------- */
static void *atusb_open(void)
static void *atusb_open(const char *arg)
{
usb_dev_handle *dev;
@@ -281,7 +281,7 @@ struct atrf_driver atusb_driver = {
.reset = atusb_reset,
.reset_rf = atusb_reset_rf,
.test_mode = atusb_test_mode,
.slp_tr = NULL, /* @@@ not yet *
.slp_tr = NULL, /* @@@ not yet */
.set_clkm = atusb_set_clkm,
.reg_write = atusb_reg_write,
.reg_read = atusb_reg_read,