<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forums.obdev.at/app.php/feed/topic/6523" />

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2012-03-21T12:13:09+02:00</updated>

	<author><name><![CDATA[Objective Development Forums]]></name></author>
	<id>https://forums.obdev.at/app.php/feed/topic/6523</id>

		<entry>
		<author><name><![CDATA[xwhatsit]]></name></author>
		<updated>2012-03-21T12:13:09+02:00</updated>

		<published>2012-03-21T12:13:09+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6523&amp;p=21196#p21196</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6523&amp;p=21196#p21196"/>
		<title type="html"><![CDATA[Detecting if USB interrupt was called]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6523&amp;p=21196#p21196"><![CDATA[
Hi there,<br /><br />Is there any way to check if the USB interrupt was run? Some kind of counter? Is USB_COUNT_SOF directly correlated with the usb interrupt being called?<br /><br />The reason I want to check this is that I run some highly time-dependent code that shouldn't really be interrupted. If it is, then I want to abort and try again (rather than waiting forever for something to happen and timing out).<br /><br />It's possible I can do the timing-dependent stuff within 25 cycles (as mentioned in usbdrv.h -- although I am running at 20Mhz so have more than that) and switch off interrupts for that period, but I want to constantly run that code and not have to worry about switching on interrupts to let the USB stuff run its course.<br /><br />Cheers,<br /><br />-Tom<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=6519">xwhatsit</a> — Wed Mar 21, 2012 12:13 pm</p><hr />
]]></content>
	</entry>
	</feed>
