summaryrefslogtreecommitdiff
path: root/libusb
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-11-11 10:22:26 -0700
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-11-11 10:22:26 -0700
commitced8ab50af1429d9ba7651da1b3b78014fd76e79 (patch)
tree4f0975a2594c4bfa97ebaa6b263e712858d2e8a4 /libusb
parentd84daf84d2ced072782ef3c61e5088b06d950939 (diff)
libmisc: Write my own assert.h
Diffstat (limited to 'libusb')
-rw-r--r--libusb/CMakeLists.txt1
-rw-r--r--libusb/usb_common.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/libusb/CMakeLists.txt b/libusb/CMakeLists.txt
index f5d6ae2..c23f30e 100644
--- a/libusb/CMakeLists.txt
+++ b/libusb/CMakeLists.txt
@@ -14,4 +14,5 @@ target_link_libraries(libusb INTERFACE
tinyusb_board
libcr_ipc
+ libmisc
)
diff --git a/libusb/usb_common.c b/libusb/usb_common.c
index ceabad3..17dba0a 100644
--- a/libusb/usb_common.c
+++ b/libusb/usb_common.c
@@ -7,11 +7,12 @@
#include <stdint.h> /* for uint{n}_t types */
#include <stddef.h> /* for size_t */
#include <string.h> /* memcpy(newlib) */
-#include <assert.h> /* for assert(newlib) */
#include <stdlib.h> /* for malloc(pico_malloc), realloc(pico_malloc), reallocarray(pico_malloc) */
#include "bsp/board_api.h" /* for board_init(), board_init_after_usb(), board_usb_get_serial(TinyUSB) */
#include "tusb.h" /* for various tusb_*_t types */
+#include <libmisc/assert.h>
+
#include <libusb/tusb_helpers.h> /* for LANGID_*, TU_UTF16() */
#include <libusb/usb_common.h>