fixed building errors with device example
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
|
||||
#include "hid.h"
|
||||
|
||||
#ifdef CLASS_HID
|
||||
#ifdef TUSB_CLASS_HID
|
||||
|
||||
#ifdef CFG_CLASS_HID_KEYBOARD
|
||||
USB_HID_KeyboardReport_t hid_keyboard_report;
|
||||
|
@@ -67,6 +67,7 @@
|
||||
#include "compiler/compiler.h"
|
||||
#include "errors.h"
|
||||
#include "core/tusb_types.h"
|
||||
#include "core/std_descriptors.h"
|
||||
|
||||
/// min value
|
||||
#ifndef MIN
|
||||
|
@@ -53,7 +53,7 @@
|
||||
|
||||
#if defined(__GNUC__)
|
||||
#include "compiler_gcc.h"
|
||||
#elif deinfed __ICCARM__ // IAR compiler
|
||||
#elif defined __ICCARM__ // IAR compiler
|
||||
#include "compiler_iar.h"
|
||||
#endif
|
||||
|
||||
|
@@ -59,7 +59,7 @@ ErrorCode_t USB_Configure_Event (USBD_HANDLE_T hUsb)
|
||||
USB_CORE_CTRL_T* pCtrl = (USB_CORE_CTRL_T*)hUsb;
|
||||
if (pCtrl->config_value)
|
||||
{
|
||||
#if defined(CLASS_HID)
|
||||
#if defined(TUSB_CLASS_HID)
|
||||
ASSERT( tERROR_NONE == tusb_hid_configured(hUsb), ERR_FAILED );
|
||||
#endif
|
||||
|
||||
|
@@ -68,10 +68,10 @@
|
||||
|
||||
TUSB_Error_t hcd_init(uint8_t hostid) ATTR_WARN_UNUSED_RESULT;
|
||||
|
||||
TUSB_Error_t hcd_pipe_open(
|
||||
uint8_t hostid, uint8_t device_address,
|
||||
|
||||
)ATTR_WARN_UNUSED_RESULT;
|
||||
//TUSB_Error_t hcd_pipe_open(
|
||||
// uint8_t hostid, uint8_t device_address,
|
||||
//
|
||||
// )ATTR_WARN_UNUSED_RESULT;
|
||||
TUSB_Error_t hcd_pipe_close()ATTR_WARN_UNUSED_RESULT;
|
||||
TUSB_Error_t hcd_pipe_transfer()ATTR_WARN_UNUSED_RESULT;
|
||||
TUSB_Error_t hcd_pipe_cancel()ATTR_WARN_UNUSED_RESULT;
|
||||
|
@@ -58,7 +58,7 @@
|
||||
#include "device/dcd.h"
|
||||
#endif
|
||||
|
||||
#if CLASS_HID
|
||||
#if TUSB_CLASS_HID
|
||||
#include "class/hid.h"
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user