usb interrupt ( answered )
usb interrupt ( answered )
I'm using an interrupt for pin-change and I wanted to disable the usb int for a short while, how can I do that without using disable all interrupts?
Last edited by ulao on Tue Aug 11, 2009 4:57 pm, edited 3 times in total.
Re: usb interrupt
Use
to disable the interrupt and
to re-enable it.
Code: Select all
USB_INTR_ENABLE &= ~_BV( USB_INTR_ENABLE_BIT ) ;
to disable the interrupt and
Code: Select all
USB_INTR_ENABLE |= _BV( USB_INTR_ENABLE_BIT ) ;
to re-enable it.
Re: usb interrupt ( answered )
Great, thx!