summaryrefslogtreecommitdiff
path: root/tinyusb/class
diff options
context:
space:
mode:
Diffstat (limited to 'tinyusb/class')
-rw-r--r--tinyusb/class/cdc.c10
-rw-r--r--tinyusb/class/hid_host.c6
2 files changed, 10 insertions, 6 deletions
diff --git a/tinyusb/class/cdc.c b/tinyusb/class/cdc.c
index d6b0ec518..138666f45 100644
--- a/tinyusb/class/cdc.c
+++ b/tinyusb/class/cdc.c
@@ -188,12 +188,14 @@ uint16_t tusb_cdc_recv(uint8_t* buffer, uint16_t max)
return fifo_read_n(&ffRX, buffer, max);
}
+#if 0
// ROM driver bug: cannot hook this to CIC_GetRequest
// Need this to implement GetLineCode & detect
-//ErrorCode_t CDC_Control_GetRequest(USBD_HANDLE_T hUsb, USB_SETUP_PACKET *pSetup, uint8_t **pBuffer, uint16_t *length)
-//{
-// return LPC_OK;
-//}
+ErrorCode_t CDC_Control_GetRequest(USBD_HANDLE_T hUsb, USB_SETUP_PACKET *pSetup, uint8_t **pBuffer, uint16_t *length)
+{
+ return LPC_OK;
+}
+#endif
/**************************************************************************/
/*!
diff --git a/tinyusb/class/hid_host.c b/tinyusb/class/hid_host.c
index dbf19b9f9..c4ae20008 100644
--- a/tinyusb/class/hid_host.c
+++ b/tinyusb/class/hid_host.c
@@ -35,9 +35,11 @@
* This file is part of the tiny usb stack.
*/
-#include "hid_host.h"
+#include "common/common.h"
+
+#if defined TUSB_CFG_HOST && defined DEVICE_CLASS_HID
-#if defined DEVICE_CLASS_HID && defined TUSB_CFG_HOST
+#include "hid_host.h"
tusb_error_t tusbh_keyboard_get(tusb_handle_configure_t const config_hdl, tusb_keyboard_report_t * const report)
{