/* Store the high speed device framework address and length in the project structure. */
_ux_system_slave -> ux_system_slave_device_framework_high_speed = device_framework_high_speed;
结案,久了没弄,犯糊涂了,变量只是个指针,需要别的地方赋值,由于宏定义不对,所以相应的代码没执行。自己修改下就对了。
/* Defined, this value will only enable the host side of usbx. */
//#define UX_HOST_SIDE_ONLY
/* Defined, this value will only enable the device side of usbx. */
#define UX_DEVICE_SIDE_ONLY
/* Defined, this value will include the OTG polling thread. OTG can only be active if both host/device are present.
*/
#ifndef UX_HOST_SIDE_ONLY
#ifndef UX_DEVICE_SIDE_ONLY
#define UX_OTG_SUPPORT
#endif
#endif
结案,久了没弄,犯糊涂了,变量只是个指针,需要别的地方赋值,由于宏定义不对,所以相应的代码没执行。自己修改下就对了。
/* Defined, this value will only enable the host side of usbx. */
//#define UX_HOST_SIDE_ONLY
/* Defined, this value will only enable the device side of usbx. */
#define UX_DEVICE_SIDE_ONLY
/* Defined, this value will include the OTG polling thread. OTG can only be active if both host/device are present.
*/
#ifndef UX_HOST_SIDE_ONLY
#ifndef UX_DEVICE_SIDE_ONLY
#define UX_OTG_SUPPORT
#endif
#endif