Removed remaining use of ARCH_ defines (XUD_SERIES_SUPPORT now used)

This commit is contained in:
Ross Owen
2014-02-05 16:44:25 +00:00
parent 9f5f8080a1
commit 3f11f56de7
3 changed files with 6 additions and 21 deletions

View File

@@ -458,20 +458,11 @@ int DFUDeviceRequests(XUD_ep ep0_out, XUD_ep &?ep0_in, USB_SetupPacket_t &sp, ch
if (sp.bmRequestType.Direction == USB_BM_REQTYPE_DIRECTION_D2H && sp.wLength != 0)
{
// Device to host
#ifdef ARCH_G
XUD_DoGetRequest(ep0_out, 0, (data_buffer, unsigned char[]), return_data_len, return_data_len);
#else
XUD_DoGetRequest(ep0_out, ep0_in, (data_buffer, unsigned char[]), return_data_len, return_data_len);
#endif
}
else
{
#ifdef ARCH_G
XUD_DoSetRequestStatus(ep0_out);
#else
XUD_DoSetRequestStatus(ep0_in);
#endif
}
// If device reset requested, handle after command acknowledgement