You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After generating and compiling the code generated from the enclosed SVD file, the Ada compiler flagged an error because two of the names in an enumeration had the same value. I worked around the error by deleting the name from the enum and returning it from a function as an alias to the other name with the same value.
On 28-Feb-22 1:09 PM, Joebeazelman wrote:
After generating and compiling the code generated from the enclosed SVD
file, the Ada compiler flagged an error because two of the names in an
enumeration had the same value. I worked around the error by deleting
the name from the enum and returning it from a function as an alias to
the other name with the same value.
Enum names can have the same value in other languages, but not in Ada. It would be a bug in the file if the SVD specification forbids it. The code generator should implement a workaround like the alias hack.
After generating and compiling the code generated from the enclosed SVD file, the Ada compiler flagged an error because two of the names in an enumeration had the same value. I worked around the error by deleting the name from the enum and returning it from a function as an alias to the other name with the same value.
LPC176x - 5x SVD.zip
The text was updated successfully, but these errors were encountered: