Hallo everyone,
i am trying to accomplish the same as in the referred thread.
As soon as the host pc open the port to the MSP i want to send some data.
I can't get the code from Reto Truninger to work. How to proceed?
In USBCdc.c i have this function.
void usbSetControlLineState (void)
{
USBCDC_handleSetControlLineState((uint8_t)tSetupPacket.wIndex,
(uint8_t)tSetupPacket.wValue);
usbSendZeroLengthPacketOnIEP0(); //Send ZLP for status stage
}
so i have to set a variable depending of tSetupPacket.wValue & 0x01; in this function?
and call this function in the main usbSetControlLineState()?
after that i can send data in an if with the variable as condition?
Thank you in advance
