예제 #1
0
파일: main.c 프로젝트: fjferrer/openSoC
/**
 * 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();
}
예제 #2
0
파일: USB.cpp 프로젝트: 0x23/Smoothieware
USB::USB(uint16_t idVendor, uint16_t idProduct, uint16_t bcdFirmwareRevision) {
    USB();
    device.idVendor = idVendor;
    device.idProduct = idProduct;
    device.bcdDevice = bcdFirmwareRevision;
}