Hi all,
now that Erich has provided the Python source I've taken time to
investigate generating the device control files.

Microchip have made changes to the device files between Studio 6.2 and 7.0.

In 6.2:
- filename is <device>.xml
- schema version 0.3
- no support for AVR-Dx parts

In 7.0
- filename is <device>.atdf
- inconsistent schema versions 0.3 (old parts), 4.4 (new parts)
- module names change e.g. ANALOG_COMPARATOR becomes AC (mega128)
- xml module element nesting changes e.g. USART0/USART1 now nested under
USART (mega128)

I should be able to tweak the existing python scripts to generate the
required device.asm, device.py and .frt code but the module and register
name changes are likely to cause a great deal of inconsistency between the
AVR-Dx parts and the earlier AVR models.

An alternative option would be to regenerate the entire avr8/devices tree.
A lot of work and a lot of potential breakage. It would however mean that
the new style register and module names would be applied consistently to
all devices.

I imagine there are other options.

Regards,
S

_______________________________________________
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel

Reply via email to