1- if (ZEPHYR_BASE)
2- if (NOT CONFIG_C2USB_CPP)
3- message ("Zephyr build without c2usb" )
4- return ()
5- endif ()
1+ if (NOT CONFIG_C2USB)
2+ message ("build without c2usb" )
3+ return ()
64endif ()
75
86add_library (c2usb )
@@ -39,18 +37,12 @@ CPMAddPackage("gh:Neargye/magic_enum@0.9.3")
3937include (../cmake/get_cpm.cmake )
4038if (ZEPHYR_HID_RP_MODULE_DIR OR MCUX_HID_RP_MODULE_DIR)
4139else ()
42- CPMAddPackage ("gh:IntergatedCircuits/hid-rp#ceb9a63678114790e58ad884fe79998b952968c8 " )
40+ CPMAddPackage ("gh:IntergatedCircuits/hid-rp#84b98bd8e0dbfe237c316a62331bc35e6188bd1b " )
4341endif ()
4442
4543if (ZEPHYR_ETL_MODULE_DIR OR MCUX_ETL_MODULE_DIR)
46- # make etl available in any case
47- if (NOT DEFINED CONFIG_ETL)
48- include (FetchContent )
49- FetchContent_Declare (etl SOURCE_DIR ${ZEPHYR_ETL_MODULE_DIR} )
50- FetchContent_MakeAvailable (etl)
51- endif ()
5244else ()
53- CPMAddPackage ("gh:ETLCPP/etl#20.36.1 " )
45+ CPMAddPackage ("gh:ETLCPP/etl#20.46.2 " )
5446endif ()
5547
5648target_link_libraries (c2usb
@@ -66,41 +58,6 @@ target_include_directories(c2usb
6658)
6759
6860target_sources (c2usb
69- PUBLIC
70- hid/application.hpp
71- i2c/hid/device.hpp
72- i2c/hid/standard.hpp
73- i2c/base.hpp
74- i2c/slave.hpp
75- usb/class/hid.hpp
76- usb/df/class/cdc.hpp
77- usb/df/class/cdc_acm.hpp
78- usb/df/class/hid.hpp
79- usb/df/vendor/microsoft/os_extension.hpp
80- usb/df/vendor/microsoft/xinput.hpp
81- usb/df/config.hpp
82- usb/df/device.hpp
83- usb/df/ep_flags.hpp
84- usb/df/function.hpp
85- usb/df/mac.hpp
86- usb/df/message.hpp
87- usb/df/transfer.hpp
88- usb/standard/descriptors.hpp
89- usb/standard/requests.hpp
90- usb/vendor/microsoft_os.hpp
91- usb/vendor/microsoft_xusb.hpp
92- usb/base.hpp
93- usb/control.hpp
94- usb/endpoint.hpp
95- usb/product_info.hpp
96- usb/speeds.hpp
97- usb/version.hpp
98- c2usb.hpp
99- compatibility_helper.hpp
100- raw_to_hex_string.hpp
101- reference_array_view.hpp
102- single_elem_queue.hpp
103- uninit_store.hpp
10461 PRIVATE
10562 i2c/hid/device.cpp
10663 usb/df/class/cdc.cpp
0 commit comments