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

@ -18,6 +18,12 @@ if(FTDISUPPORT)
set(SERIAL_FTDI serial_ftdi.c)
endif()
if(CP2130SUPPORT)
message(STATUS "building with cp2130 support")
add_definitions(-DSERIAL_CP2130)
set(SERIAL_CP2130 serial_cp2130.c)
endif()
if(BTSUPPORT)
add_definitions(-DBT_SUPPORT)
set(BT_SRC_FILES desktop-widgets/btdeviceselectiondialog.cpp)
@ -89,6 +95,7 @@ set(SUBSURFACE_CORE_LIB_SRCS
subsurface-qt/CylinderObjectHelper.cpp
subsurface-qt/SettingsObjectWrapper.cpp
${SERIAL_FTDI}
${SERIAL_CP2130}
${PLATFORM_SRC}
${BT_CORE_SRC_FILES}
)