<?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/9255" />

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2014-08-19T08:27:36+02:00</updated>

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

		<entry>
		<author><name><![CDATA[Ross_ValuSoft]]></name></author>
		<updated>2014-08-19T08:27:36+02:00</updated>

		<published>2014-08-19T08:27:36+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=9255&amp;p=27963#p27963</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=9255&amp;p=27963#p27963"/>
		<title type="html"><![CDATA[USB_CFG_PULLUP_IOPORTNAME]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=9255&amp;p=27963#p27963"><![CDATA[
Hi folks,<br /><br />The following text can be found in the usbconfig.h file.<br /><br /><blockquote class="uncited"><div>/* ----------------------- Optional Hardware Config ------------------------ */<br /><br />/* #define USB_CFG_PULLUP_IOPORTNAME   D */<br />/* If you connect the 1.5k pullup resistor from D- to a port pin instead of<br /> * V+, you can connect and disconnect the device from firmware by calling<br /> * the macros usbDeviceConnect() and usbDeviceDisconnect() (see usbdrv.h).<br /> * This constant defines the port on which the pullup resistor is connected.<br /> */<br />/* #define USB_CFG_PULLUP_BIT          4 */<br />/* This constant defines the bit number in USB_CFG_PULLUP_IOPORT (defined<br /> * above) where the 1.5k pullup resistor is connected. See description<br /> * above for details.<br /> */<br /><br /></div></blockquote><br /><br />A search on &quot;USB_CFG_PULLUP_IOPORTNAME&quot; does not find any discussion about the practical use of this &quot;feature&quot;. I am wondering if anyone has actually used it and can give some guidance.<br /><br />What I would like to do, if it is actually possible, is to have a Tiny85 powered up without usb being initiated yet and monitoring a particular pin. When the pin goes high, I want to then set the &quot;USB_CFG_PULLUP_BIT&quot; high which, if I have read correctly, should then cause usbDeviceConnect() to be actioned. Is that how it should work? Like a &quot;conditional keyboard&quot;.<br /><br />I haven't found this in any of the example projects yet.<br /><br />Thanks for your help.<br /><br />Cheers,<br /><br />Ross<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=7724">Ross_ValuSoft</a> — Tue Aug 19, 2014 8:27 am</p><hr />
]]></content>
	</entry>
	</feed>
