Hi,
In the MSP430F5529 Echo USB Example code below (file: UsbIsr.c) the function USBHID_handleEP0SetReportDataAvailable(tSetupPacket.wIndex) is not defined in the example source code. Using the MSP430 USB Descriptor HID target to configure (VID, PID, etc) the UsbIsr.c is generated. Why isn't this function defined somewhere in the example sources? I haven't a clue what should be done in this function.
Need Help!!
BYTE OEP0InterruptHandler(VOID)
{
BYTE bWakeUp = FALSE;
USBCTL |= FRSTE; // Function Reset Connection Enable
tEndPoint0DescriptorBlock.bIEPBCNT = 0x00;
if(bStatusAction == STATUS_ACTION_DATA_OUT)
{
usbReceiveNextPacketOnOEP0();
if(bStatusAction == STATUS_ACTION_NOTHING)
{
# ifdef _CDC_
if(tSetupPacket.bRequest == USB_CDC_SET_LINE_CODING)
{
bWakeUp = Handler_SetLineCoding();
}
# endif
#ifdef _HID_
if (tSetupPacket.bRequest == USB_REQ_SET_REPORT) {
bWakeUp = USBHID_handleEP0SetReportDataAvailable(tSetupPacket.wIndex);
}
#endif
}
}
else
{
tEndPoint0DescriptorBlock.bOEPCNFG |= EPCNF_STALL; // no more data
}
return (bWakeUp);
}