Isr

Coding and general discussion relating to the compiler

Moderators: David Barker, Jerry Messina

Post Reply
Twim
Posts: 15
Joined: Sun Jul 27, 2008 6:28 am

Isr

Post by Twim » Sun Jun 20, 2010 8:38 pm

Hello,
Im working with usb for the first time and I wonder if anyone knows why 'Service' - the name of a routine which performs usb housekeeping functions- is saved by the interrupt service routine
ie. save(FSR0, FSR1, Service) what exactly does 'service' save?

thanks.

Code: Select all


***************************************************************************
* Name    : OnService (PRIVATE)                                            *
* Purpose : USB service event handler                                      *
****************************************************************************
}
#if USB_SERVICE
interrupt OnService(PriorityLevel)
   PIR2Bits.USBIF = 0
   save(FSR0, FSR1, Service)
      Service
   restore 
end interrupt
#endif

 

[/code]

Post Reply