<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>C-header generator</title><link>https://community.element14.com/products/eagle/f/eagle-user-support-english/12843/c-header-generator</link><description>I think a tool (or a script, TBD) able to read .sch file and generate .c/.h file with #define will spare a lot of time. I mean something able to outputs something like (in case of a PIC): #define PORTAbits.RA3 LED If UC pin will have an option &amp;quot;input</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><lastBuildDate>Thu, 02 Dec 2010 14:18:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://community.element14.com/products/eagle/f/eagle-user-support-english/12843/c-header-generator" /><item><title>RE: C-header generator</title><link>https://community.element14.com/thread/6127?ContentTypeID=1</link><pubDate>Thu, 02 Dec 2010 14:18:12 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:df1dc5bd-a28c-49db-81f3-f5faeb921a1e</guid><dc:creator>Former Member</dc:creator><description>&lt;p style="margin:0;"&gt;I think it should be the schematic which would define the pin names.&amp;nbsp; The schematic pins should be annotated with pin directions, maybe from the IC library.&amp;nbsp; They can be in, out, i/o, or special/alternate function.&amp;nbsp; This would allow the header generator to define either specific pin names for each, or a generic name which supports all directions and special or alternate functions. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: C-header generator</title><link>https://community.element14.com/thread/2707?ContentTypeID=1</link><pubDate>Mon, 19 Jul 2010 13:29:29 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:45cc55b5-ae6d-4104-936f-695319ddc9ca</guid><dc:creator>Former Member</dc:creator><description>&lt;p style="margin:0;"&gt;Matt Collinge wrote on Mon, 19 July 2010 08:50&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;&lt;p style="margin:0;"&gt;I think a tool (or a script, TBD) able to read .sch file and generate&lt;/p&gt;&lt;p style="margin:0;"&gt;.c/.h file with #define will spare a lot of time.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;I mean something able to outputs something like (in case of a PIC):&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;#define PORTAbits.RA3 LED&lt;/p&gt;&lt;/blockquote&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;I have something like that in my PIC &lt;/span&gt;&lt;a class="jive-link-external-small" href="http://www.embedinc.com/pic" rel="nofollow ugc noopener" target="_blank"&gt;http://www.embedinc.com/pic&lt;/a&gt;&lt;span&gt; but it&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;doesn&amp;#39;t interface with Eagle.&amp;nbsp; Check out the&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a class="jive-link-external-small" href="http://www.embedinc.com/pic/prepic.txt.htm" rel="nofollow ugc noopener" target="_blank"&gt;http://www.embedinc.com/pic/prepic.txt.htm&lt;/a&gt;&lt;span&gt; commands /INBIT and /OUTBIT. &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;These allow you to define a symbolic name for each I/O line and how it is&lt;/p&gt;&lt;p style="margin:0;"&gt;used.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;I hadn&amp;#39;t thought of merging this with Eagle schematics, but that&amp;#39;s a good&lt;/p&gt;&lt;p style="margin:0;"&gt;idea.&amp;nbsp; I&amp;#39;m not sure which direction it should work in though.&amp;nbsp; If starting&lt;/p&gt;&lt;p style="margin:0;"&gt;with Eagle, the net name connected to a pin can become the pin name in the&lt;/p&gt;&lt;p style="margin:0;"&gt;PIC source code, but it won&amp;#39;t know the pin direction.&amp;nbsp; It will be tricky to&lt;/p&gt;&lt;p style="margin:0;"&gt;automate this, but it could be possible.&amp;nbsp; Going the other direction may&lt;/p&gt;&lt;p style="margin:0;"&gt;make more sense in that the source code should probably be the master&lt;/p&gt;&lt;p style="margin:0;"&gt;definition and the schematic should reflect it.&amp;nbsp; However, I don&amp;#39;t think pin&lt;/p&gt;&lt;p style="margin:0;"&gt;directions can be changed on the fly for a instance of a part in the&lt;/p&gt;&lt;p style="margin:0;"&gt;schematic.&amp;nbsp; Actually this is a problem with both methods.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;-- &lt;/p&gt;&lt;p style="margin:0;"&gt;Web access to CadSoft support forums at www.eaglecentral.ca.&amp;nbsp; Where the CadSoft EAGLE community meets.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>