More porting of the USB core to the AVR32.
This commit is contained in:
parent
0e6d5cf5b4
commit
3702ba1fb3
20 changed files with 409 additions and 205 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue