请教一个PIC USB编译过程中遇到的问题

2020-02-08 09:10发布

我在编译USB程序的时候,遇到下面图片中的问题,

(原文件名:2010-4-9 10-15-56.jpg)
可我认为usb_devices.h是公用的文件,在其他项目里调用这个头文件的时候是没问题的,为什么在这里就有问题了呢?请问谁能帮我分析一下这个问题?
编译指向的错误是这一句 BOOL USB_APPLICATION_EVENT_HANDLER(BYTE address, USB_EVENT event,  void *pdata, WORD size);
这个函数的说明是/*******************************************************************************
  Function:
    BOOL USB_APPLICATION_EVENT_HANDLER(BYTE address, USB_EVENT event, void *pdata, WORD size);
   
  Summary:
    This function is called whenever the USB stack wants to notify the user of
    an event.

  Description:
    This function is called whenever the USB stack wants to notify the user of
    an event.  This function should be implemented by the user.
   
    Example Usage:
  Conditions:
    None

  Input:
    BYTE address -  the address of the device when the event happened
    BYTE event   -  The event input specifies which event happened.  The
                    possible options are listed in the USB_DEVICE_STACK_EVENTS
                    enumeration.

  Return:
    None
  Remarks:
    None                                                                                                         
  ******************************************************************* **********/
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。