Quantcast
Channel: Objective Development Forums
Viewing all articles
Browse latest Browse all 4524

Re: Does usbPoll() get executed before entry to the ISR?

$
0
0
It can be a good idea to simulate a device disconnect after program start to force a bus reset. This removes all ambiguity after startup.

 usbDeviceDisconnect();  /* do this while interrupts are disabled */
 _delay_ms(500); 
  usbDeviceConnect();


Otherwise you should be more clear about what you actually want to accomplish with your code. Is there an actual issue or is this a general question?

Viewing all articles
Browse latest Browse all 4524

Trending Articles