Skip to content

Instantly share code, notes, and snippets.

@rnestler
Last active December 28, 2017 01:45
Show Gist options
  • Save rnestler/b72161a67230241f0012c7e71cb05851 to your computer and use it in GitHub Desktop.
Save rnestler/b72161a67230241f0012c7e71cb05851 to your computer and use it in GitHub Desktop.
Broken svd file
error[E0428]: the name `AUTO_ADDRESS_DETECT_` is defined multiple times
--> src/lib.rs:10323:13
|
10321 | AUTO_ADDRESS_DETECT_,
| -------------------- previous definition of the type `AUTO_ADDRESS_DETECT_` here
10322 | #[doc = "Auto Address Detect (AAD) is enabled."]
10323 | AUTO_ADDRESS_DETECT_,
| ^^^^^^^^^^^^^^^^^^^^ `AUTO_ADDRESS_DETECT_` redefined here
|
= note: `AUTO_ADDRESS_DETECT_` must be defined only once in the type namespace of this enum
error[E0428]: the name `COUNTER_MODE_TC_IS_` is defined multiple times
--> src/lib.rs:16482:13
|
16480 | COUNTER_MODE_TC_IS_,
| ------------------- previous definition of the type `COUNTER_MODE_TC_IS_` here
16481 | #[doc = "Counter Mode: TC is incremented on falling edges on the CAP input selected by bits 3:2."]
16482 | COUNTER_MODE_TC_IS_,
| ^^^^^^^^^^^^^^^^^^^ `COUNTER_MODE_TC_IS_` redefined here
|
= note: `COUNTER_MODE_TC_IS_` must be defined only once in the type namespace of this enum
<field>
<name>AADEN</name>
<description>AAD enable.</description>
<bitRange>[2:2]</bitRange>
<enumeratedValues>
<name>ENUM</name>
<enumeratedValue>
<name>AUTO_ADDRESS_DETECT_</name>
<description>Auto Address Detect (AAD) is disabled.</description>
<value>0</value>
</enumeratedValue>
<enumeratedValue>
<name>AUTO_ADDRESS_DETECT_</name>
<description>Auto Address Detect (AAD) is enabled.</description>
<value>1</value>
</enumeratedValue>
</enumeratedValues>
</field>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment