usb: filter out synchronization type for isochronous endpoints

Fix so that different isochronous synchronization modes can be used.
It filters out the synchronization mode before sending the endpoint
type to drivers.

Signed-off-by: Johan Carlsson <johan.carlsson@teenage.engineering>
This commit is contained in:
Johan Carlsson 2020-03-24 15:05:26 +01:00 committed by Carles Cufí
commit 552508506f
3 changed files with 9 additions and 13 deletions

View file

@ -22,11 +22,15 @@
/**
* USB endpoint direction and number.
*/
#define USB_EP_DIR_MASK 0x80
#define USB_EP_DIR_IN 0x80
#define USB_EP_DIR_OUT 0x00
/**
* USB endpoint Transfer Type mask.
*/
#define USB_EP_TRANSFER_TYPE_MASK 0x3
/**
* @brief USB Device Controller API
* @defgroup _usb_device_controller_api USB Device Controller API