Added beginnings of a new AVRISP-MKII clone project.
Added new Endpoint_SetEndpointDirection() macro to set the current endpoint direction for bidirectional endpoints. Renamed internal USB_INT_ENDPOINT_SETUP macro to USB_INT_RXSTPI to fit in with the rest of the interrupt vector macros.
This commit is contained in:
parent
09bedd6555
commit
ecd82778cf
18 changed files with 2939 additions and 7 deletions
|
@ -148,7 +148,7 @@ ISR(USB_GEN_vect, ISR_BLOCK)
|
|||
ENDPOINT_BANK_SINGLE);
|
||||
|
||||
#if defined(INTERRUPT_CONTROL_ENDPOINT)
|
||||
USB_INT_Enable(USB_INT_ENDPOINT_SETUP);
|
||||
USB_INT_Enable(USB_INT_RXSTPI);
|
||||
#endif
|
||||
|
||||
EVENT_USB_Device_Reset();
|
||||
|
@ -236,7 +236,7 @@ ISR(USB_COM_vect, ISR_BLOCK)
|
|||
|
||||
USB_USBTask();
|
||||
|
||||
USB_INT_Clear(USB_INT_ENDPOINT_SETUP);
|
||||
USB_INT_Clear(USB_INT_RXSTPI);
|
||||
|
||||
Endpoint_SelectEndpoint(PrevSelectedEndpoint);
|
||||
}
|
||||
|
|
|
@ -72,7 +72,7 @@
|
|||
#define USB_INT_HSOFI UHIEN, (1 << HSOFE) , UHINT , (1 << HSOFI)
|
||||
#define USB_INT_RSTI UHIEN , (1 << RSTE) , UHINT , (1 << RSTI)
|
||||
#define USB_INT_SRPI OTGIEN, (1 << SRPE) , OTGINT, (1 << SRPI)
|
||||
#define USB_INT_ENDPOINT_SETUP UEIENX, (1 << RXSTPE) , UEINTX, (1 << RXSTPI)
|
||||
#define USB_INT_RXSTPI UEIENX, (1 << RXSTPE) , UEINTX, (1 << RXSTPI)
|
||||
|
||||
/* Function Prototypes: */
|
||||
void USB_INT_ClearAllInterrupts(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue