Use the UE_GET_XFERTYPE macro.
This commit is contained in:
parent
12b1cc8f72
commit
6a69a08a22
@ -688,13 +688,13 @@ USB_ATTACH(aue)
|
||||
USB_ATTACH_ERROR_RETURN;
|
||||
}
|
||||
if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN &&
|
||||
(ed->bmAttributes & UE_XFERTYPE) == UE_BULK) {
|
||||
UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) {
|
||||
sc->aue_ed[AUE_ENDPT_RX] = ed->bEndpointAddress;
|
||||
} else if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_OUT &&
|
||||
(ed->bmAttributes & UE_XFERTYPE) == UE_BULK) {
|
||||
UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) {
|
||||
sc->aue_ed[AUE_ENDPT_TX] = ed->bEndpointAddress;
|
||||
} else if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN &&
|
||||
(ed->bmAttributes & UE_XFERTYPE) == UE_INTERRUPT) {
|
||||
UE_GET_XFERTYPE(ed->bmAttributes) == UE_INTERRUPT) {
|
||||
sc->aue_ed[AUE_ENDPT_INTR] = ed->bEndpointAddress;
|
||||
}
|
||||
}
|
||||
|
@ -480,13 +480,13 @@ USB_ATTACH(cue)
|
||||
USB_ATTACH_ERROR_RETURN;
|
||||
}
|
||||
if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN &&
|
||||
(ed->bmAttributes & UE_XFERTYPE) == UE_BULK) {
|
||||
UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) {
|
||||
sc->cue_ed[CUE_ENDPT_RX] = ed->bEndpointAddress;
|
||||
} else if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_OUT &&
|
||||
(ed->bmAttributes & UE_XFERTYPE) == UE_BULK) {
|
||||
UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) {
|
||||
sc->cue_ed[CUE_ENDPT_TX] = ed->bEndpointAddress;
|
||||
} else if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN &&
|
||||
(ed->bmAttributes & UE_XFERTYPE) == UE_INTERRUPT) {
|
||||
UE_GET_XFERTYPE(ed->bmAttributes) == UE_INTERRUPT) {
|
||||
sc->cue_ed[CUE_ENDPT_INTR] = ed->bEndpointAddress;
|
||||
}
|
||||
}
|
||||
|
@ -430,13 +430,13 @@ USB_ATTACH(kue)
|
||||
USB_ATTACH_ERROR_RETURN;
|
||||
}
|
||||
if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN &&
|
||||
(ed->bmAttributes & UE_XFERTYPE) == UE_BULK) {
|
||||
UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) {
|
||||
sc->kue_ed[KUE_ENDPT_RX] = ed->bEndpointAddress;
|
||||
} else if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_OUT &&
|
||||
(ed->bmAttributes & UE_XFERTYPE) == UE_BULK) {
|
||||
UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) {
|
||||
sc->kue_ed[KUE_ENDPT_TX] = ed->bEndpointAddress;
|
||||
} else if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN &&
|
||||
(ed->bmAttributes & UE_XFERTYPE) == UE_INTERRUPT) {
|
||||
UE_GET_XFERTYPE(ed->bmAttributes) == UE_INTERRUPT) {
|
||||
sc->kue_ed[KUE_ENDPT_INTR] = ed->bEndpointAddress;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user