Fix compile errors when both Host and Device modes are enabled.

This commit is contained in:
Dean Camera 2011-06-09 04:32:52 +00:00
parent 1191da7b7b
commit e5e34f91fa
5 changed files with 5 additions and 6 deletions

View file

@ -330,7 +330,7 @@
static inline uint8_t Pipe_GetBoundEndpointAddress(void)
{
return (((UPCFG0X >> PEPNUM0) & PIPE_EPNUM_MASK) |
((Pipe_GetPipeToken() == PIPE_TOKEN_IN) ? ENDPOINT_DESCRIPTOR_DIR_IN : 0));
((Pipe_GetPipeToken() == PIPE_TOKEN_IN) ? PIPE_EPDIR_MASK : 0));
}
/** Sets the period between interrupts for an INTERRUPT type pipe to a specified number of milliseconds.

View file

@ -84,7 +84,7 @@
/* Includes: */
#include "../../../Common/Common.h"
#include "USBMode.h"
#include "USBMode.h"
/* Preprocessor Checks: */
#if !defined(__INCLUDE_FROM_USB_DRIVER)

View file

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