Exemplo n.º 1
0
/**
 * ProcessIO(void) -    Process IO requests
 *
 * This function just checks if a IO has been requested and calls
 * USB() if so.
 **/
void ProcessIO(void)
{
  if ((deviceState < CONFIGURED) || (UCONbits.SUSPND == 1))
    return;
  USB();
}
Exemplo n.º 2
0
USB::USB(uint16_t idVendor, uint16_t idProduct, uint16_t bcdFirmwareRevision) {
    USB();
    device.idVendor = idVendor;
    device.idProduct = idProduct;
    device.bcdDevice = bcdFirmwareRevision;
}