Jerome Lambourg 3158fc918f If fields are numbered in decreasing order, then we do not generate an array
Ada arrays have indices in increasing order, so this might lead to confusion.

As an example:

            <field>
              <name>EWUP2</name>
              <description>Enable WKUP2 pin</description>
              <bitOffset>7</bitOffset>
              <bitWidth>1</bitWidth>
              <access>read-write</access>
            </field>
            <field>
              <name>EWUP</name>
              <description>Enable WKUP pin</description>
              <bitOffset>8</bitOffset>
              <bitWidth>1</bitWidth>
              <access>read-write</access>
            </field>

Would generate otherwise

   --  CSR_EWUP array
   type CSR_EWUP_Field_Array is array (1 .. 2) of CSR_EWUP_Element
     with Component_Size => 1, Size => 2;

...

      EWUP           : CSR_EWUP_Field_Array (others => 16#0#);

Which is incorrect as EWUP (1) would reference EWUP2, and EWUP (2) would
reference EWUP.

Better fix for issue #38
2017-03-20 10:25:53 +01:00
2017-03-02 21:39:08 -06:00
2015-11-25 10:03:37 +01:00
2015-12-26 09:30:40 +01:00

svd2ada

SVD2Ada is an Ada binding generator from CMSIS-SVD descriptions for ARM Cortex-M devices. It is meant to ease, strengthen and speed up driver development for those platforms.

Description
No description provided
Readme GPL-3.0 2.7 MiB
Languages
Ada 97.2%
HTML 2.6%
Makefile 0.2%