mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Add a simple cp2130 libusb driver
This adds a simple cp2130 userspace driver. Its probably unusable in the real world but its a great base to build upon. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
e0fe8762c2
commit
93ef223a31
6 changed files with 299 additions and 0 deletions
|
@ -1033,6 +1033,10 @@ const char *do_libdivecomputer_import(device_data_t *data)
|
|||
#ifdef SERIAL_FTDI
|
||||
} else if (!strcmp(data->devname, "ftdi")) {
|
||||
rc = dc_context_set_custom_serial(data->context, &serial_ftdi_ops);
|
||||
#endif
|
||||
#ifdef SERIAL_CP2130
|
||||
} else if (!strcmp(data->devname, "cp2130")) {
|
||||
rc = dc_context_set_custom_serial(data->context, &cp2130_serial_ops);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue