avrdude-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avrdude-dev] Re: AT90PWM316 support


From: Shaun Jackman
Subject: Re: [avrdude-dev] Re: AT90PWM316 support
Date: Thu, 13 Dec 2007 14:36:33 -0700

On Dec 11, 2007 9:22 PM, Dave N6NZ <address@hidden> wrote:
> Shaun Jackman wrote:
> > I could, but it's a bit of a hack.  =)  I was hoping that the avrdude
> > part descriptions were somehow generated from the Atmel XML
> > description files, which would probably be more accurate than me
> > playing Dr. Frankenstein with the AT90PWM3B and ATmega16 parts. How
> > are the avrdude part descriptions usually generated?
>
> Isn't there a script in the part descriptions directory to convert the
> XML?  I did a couple of parts once, long enough ago that my memory is
> foggy... but I think I did them by hand and then somebody told be about
> the script so I diff'ed the output and uncovered a  subtle bug in my
> hand generated data.

Thanks for the pointer. I checked the output of get-dw-params.xsl and
get-hv-params.xsl against my Dr. Frankenstein AT90PWM316 part
description and it matched.

With xsltproc 1.1.19 I had to patch both scripts before they would
work though. The patch follows.

Cheers,
Shaun

Index: tools/get-dw-params.xsl
===================================================================
RCS file: /sources/avrdude/avrdude/tools/get-dw-params.xsl,v
retrieving revision 1.2
diff -u -p -r1.2 get-dw-params.xsl
--- tools/get-dw-params.xsl     23 Nov 2006 07:07:06 -0000      1.2
+++ tools/get-dw-params.xsl     13 Dec 2007 21:36:08 -0000
@@ -112,6 +112,7 @@
     <!-- recursively then until everything has been done -->
     <xsl:template name="format-hex">
       <xsl:param name="arg" />
+      <xsl:param name="count" />
       <xsl:choose>
         <xsl:when test="string-length($arg) &lt;= 4">
           <!-- Last element, print it, and leave template. -->
Index: tools/get-hv-params.xsl
===================================================================
RCS file: /sources/avrdude/avrdude/tools/get-hv-params.xsl,v
retrieving revision 1.2
diff -u -p -r1.2 get-hv-params.xsl
--- tools/get-hv-params.xsl     13 Aug 2006 21:57:52 -0000      1.2
+++ tools/get-hv-params.xsl     13 Dec 2007 21:36:08 -0000
@@ -219,6 +219,7 @@
     -->
     <xsl:template name="format_cstack">
         <xsl:param name="stack" />
+        <xsl:param name="count" />
         <xsl:choose>
             <xsl:when test="string-length($stack) &lt;= 4">
                 <!-- Last element, print it, and leave template. -->




reply via email to

[Prev in Thread] Current Thread [Next in Thread]