AN6077
EP0BUF[ 0 ] = Configuration;
EP0BCH | = 0; |
|
EP0BCL | = 1; | // Handled by user code |
return(TRUE); |
}
BOOL DR_SetInterface( void )
{// Called when a Set Interface command is received AlternateSetting = SETUPDAT[ 2 ];
return( TRUE ); | // Handled by user code |
}
BOOL DR_GetInterface( void )
{// Called when a Set Interface command is received EP0BUF[ 0 ] = AlternateSetting;
EP0BCH = 0;
EP0BCL = 1; | // Handled by user code |
return( TRUE ); |
}
BOOL DR_GetStatus( void )
{
return( TRUE );
}
BOOL DR_ClearFeature( void )
{
return( TRUE );
}
BOOL DR_SetFeature( void )
{
return( TRUE );
}
BOOL DR_VendorCmnd( void )
{
return( TRUE );
}
//USB Interrupt Handlers
//The following functions are called by the USB interrupt jump table.
//Setup Data Available Interrupt Handler void ISR_Sudav( void ) interrupt 0
{
GotSUD | = TRUE; | // | Set flag |
EZUSB_IRQ_CLEAR( ); | // | Clear SUDAV IRQ | |
USBIRQ | = bmSUDAV; |
}
//Setup Token Interrupt Handler void ISR_Sutok( void ) interrupt 0
{
EZUSB_IRQ_CLEAR( ); | // Clear SUTOK IRQ |
USBIRQ = bmSUTOK; |
}
void ISR_Sof( void ) interrupt 0
{
EZUSB_IRQ_CLEAR( );
February 19, 2008 | Document No. | 20 |