sim/usbdev: Add string table as it is needed when USBTRACE is turned on
nuttx/drivers/usbdev/usbdev_trprintf.c:418: undefined reference to `g_usb_trace_strings_intdecode' /usr/bin/ld: nuttx/drivers/usbdev/usbdev_trprintf.c:496: undefined reference to `g_usb_trace_strings_deverror' Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
parent
ddc2c62aa8
commit
d89e0996f5
@ -219,6 +219,55 @@ static const struct usbdev_ops_s g_devops =
|
|||||||
.wakeup = sim_usbdev_wakeup,
|
.wakeup = sim_usbdev_wakeup,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* Device error strings that may be enabled for more descriptive USB trace
|
||||||
|
* output.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifdef CONFIG_USBDEV_TRACE_STRINGS
|
||||||
|
const struct trace_msg_t g_usb_trace_strings_deverror[] =
|
||||||
|
{
|
||||||
|
TRACE_STR(SIM_TRACEERR_ALLOCFAIL),
|
||||||
|
TRACE_STR(SIM_TRACEERR_BADCLEARFEATURE),
|
||||||
|
TRACE_STR(SIM_TRACEERR_BADDEVGETSTATUS),
|
||||||
|
TRACE_STR(SIM_TRACEERR_BADEPGETSTATUS),
|
||||||
|
TRACE_STR(SIM_TRACEERR_BADEPNO),
|
||||||
|
TRACE_STR(SIM_TRACEERR_BADEPTYPE),
|
||||||
|
TRACE_STR(SIM_TRACEERR_BADGETCONFIG),
|
||||||
|
TRACE_STR(SIM_TRACEERR_BADGETSETDESC),
|
||||||
|
TRACE_STR(SIM_TRACEERR_BADGETSTATUS),
|
||||||
|
TRACE_STR(SIM_TRACEERR_BADSETADDRESS),
|
||||||
|
TRACE_STR(SIM_TRACEERR_BADSETCONFIG),
|
||||||
|
TRACE_STR(SIM_TRACEERR_BADSETFEATURE),
|
||||||
|
TRACE_STR(SIM_TRACEERR_BINDFAILED),
|
||||||
|
TRACE_STR(SIM_TRACEERR_DISPATCHSTALL),
|
||||||
|
TRACE_STR(SIM_TRACEERR_DRIVER),
|
||||||
|
TRACE_STR(SIM_TRACEERR_DRIVERREGISTERED),
|
||||||
|
TRACE_STR(SIM_TRACEERR_EP0BADCTR),
|
||||||
|
TRACE_STR(SIM_TRACEERR_EP0SETUPSTALLED),
|
||||||
|
TRACE_STR(SIM_TRACEERR_EPBUFFER),
|
||||||
|
TRACE_STR(SIM_TRACEERR_EPDISABLED),
|
||||||
|
TRACE_STR(SIM_TRACEERR_EPOUTNULLPACKET),
|
||||||
|
TRACE_STR(SIM_TRACEERR_EPRESERVE),
|
||||||
|
TRACE_STR(SIM_TRACEERR_INVALIDCTRLREQ),
|
||||||
|
TRACE_STR(SIM_TRACEERR_INVALIDPARMS),
|
||||||
|
TRACE_STR(SIM_TRACEERR_IRQREGISTRATION),
|
||||||
|
TRACE_STR(SIM_TRACEERR_NOTCONFIGURED),
|
||||||
|
TRACE_STR(SIM_TRACEERR_REQABORTED),
|
||||||
|
TRACE_STR_END
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Interrupt event strings that may be enabled for more descriptive USB trace
|
||||||
|
* output.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifdef CONFIG_USBDEV_TRACE_STRINGS
|
||||||
|
const struct trace_msg_t g_usb_trace_strings_intdecode[] =
|
||||||
|
{
|
||||||
|
TRACE_STR_END
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Private Functions
|
* Private Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
Loading…
Reference in New Issue
Block a user