static inline uint8_t Pipe_GetBoundEndpointAddress(void)\r
{\r
return ((&AVR32_USBB.UPCFG0)[USB_SelectedPipe].pepnum |\r
- ((Pipe_GetPipeToken() == PIPE_TOKEN_IN) ? ENDPOINT_DESCRIPTOR_DIR_IN : 0));\r
+ ((Pipe_GetPipeToken() == PIPE_TOKEN_IN) ? PIPE_EPDIR_MASK : 0));\r
}\r
\r
/** Sets the period between interrupts for an INTERRUPT type pipe to a specified number of milliseconds.\r