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:
Anton Lundin 2016-09-18 14:56:44 +02:00 committed by Dirk Hohndel
parent e0fe8762c2
commit 93ef223a31
6 changed files with 299 additions and 0 deletions

View file

@ -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
}