More porting of the USB core to the AVR32.

This commit is contained in:
Dean Camera 2010-02-23 14:46:11 +00:00
parent 0e6d5cf5b4
commit 3702ba1fb3
20 changed files with 409 additions and 205 deletions

View file

@ -39,6 +39,10 @@ volatile uint8_t USB_CurrentMode = USB_MODE_NONE;
volatile uint8_t USB_Options;
#endif
#if defined(__AVR32__) && !defined(CONTROL_ONLY_DEVICE)
uint8_t USB_SelectedEPNumber;
#endif
void USB_Init(
#if defined(USB_CAN_BE_BOTH)
const uint8_t Mode
@ -55,6 +59,10 @@ void USB_Init(
#endif
)
{
#if defined(__AVR32__)
USB_SelectedEPNumber = 0;
#endif
#if defined(USB_CAN_BE_BOTH)
USB_CurrentMode = Mode;
#endif