summaryrefslogtreecommitdiffstats
path: root/core/libdivecomputer.c
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2016-09-18 14:56:44 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-09-18 07:12:16 -0700
commit93ef223a3131db838abc7c390ddce3fae8be5f7c (patch)
treed3ae2499bccb1f6b477059207a1d57c4ecafd576 /core/libdivecomputer.c
parente0fe8762c2e76ab6739cc10bba73f66a26fedaf8 (diff)
downloadsubsurface-93ef223a3131db838abc7c390ddce3fae8be5f7c.tar.gz
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>
Diffstat (limited to 'core/libdivecomputer.c')
-rw-r--r--core/libdivecomputer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/libdivecomputer.c b/core/libdivecomputer.c
index cd1b69bde..f76a654d4 100644
--- a/core/libdivecomputer.c
+++ b/core/libdivecomputer.c
@@ -1034,6 +1034,10 @@ const char *do_libdivecomputer_import(device_data_t *data)
} 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
}
if (rc != DC_STATUS_SUCCESS) {