mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-11 14:12:26 -05:00
regtools: update v2 specification, library and tools
A v2 register description file can now include register variants and instances addresses can now be a list (previously it could only be a stride or a formula). Update the library to deal with that. The convert option of swiss_knife was updated and one incompatible change was introduce: if a v1 device has several addresses, those are converted to a single v2 instance with list (instead of several single instances). This should have been the behaviour from the start. Swiss_knife can now also convert regdumps, in which case it needs to be given both the dump and register description file. Also introduce two register descriptions files (vsoc1000 and vsoc2000) which give more complicated examples of v2 register description files. Change-Id: Id9415b8363269ffaf9216abfc6dd1bd1adbfcf8d
This commit is contained in:
parent
16c915ec18
commit
0f701a64be
9 changed files with 1491 additions and 211 deletions
|
|
@ -214,7 +214,7 @@ bool parse_xml(const std::string& filename, soc_t& soc);
|
|||
/** Write a SoC description to a XML file, overwriting it. A file can contain
|
||||
* multiple Soc descriptions */
|
||||
bool produce_xml(const std::string& filename, const soc_t& soc);
|
||||
/** Normalise a soc description by reordering elemnts so that:
|
||||
/** Normalise a soc description by reordering elements so that:
|
||||
* - devices are sorted by first name
|
||||
* - registers are sorted by first address
|
||||
* - fields are sorted by last bit
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue