/** * 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(); }
USB::USB(uint16_t idVendor, uint16_t idProduct, uint16_t bcdFirmwareRevision) { USB(); device.idVendor = idVendor; device.idProduct = idProduct; device.bcdDevice = bcdFirmwareRevision; }