找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 1862|回复: 0
收起左侧

求助undefined reference to `usbInterruptIsReady'编译错误

[复制链接]
ID:487476 发表于 2019-3-9 16:45 | 显示全部楼层 |阅读模式
求助undefined reference to `usbInterruptIsReady'编译错误
在man函数里
if(usbInterruptIsReady()){
            /* called after every poll of the interrupt endpoint */
            advanceCircleByFixedAngle();
            DBG1(0x03, 0, 0);   /* debug output: interrupt report prepared */
            usbSetInterrupt((void *)&reportBuffer, sizeof(reportBuffer));
        }

在头文件<usbdrv.h>里有

#if USB_CFG_HAVE_INTRIN_ENDPOINT
        USB_PUBLIC void usbSetInterrupt(uchar *data, uchar len);//////////////////////////////
       #define usbInterruptIsReady()   (usbTxLen1 & 0x10)//////////////////////////////////////////
#endif /* USB_CFG_HAVE_INTRIN_ENDPOINT */

编译时出错
undefined reference to `usbInterruptIsReady'
undefined reference to `usbSetInterrupt'
请问是哪里的问题

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|51黑电子论坛 |51黑电子论坛6群 QQ 管理员QQ:125739409;技术交流QQ群281945664

Powered by 单片机教程网

快速回复 返回顶部 返回列表