adamgreig / stm32ral

Register access layer in Rust for all STM32 microcontrollers
Apache License 2.0
34 stars 7 forks source link

enumeratedValues with derivedFrom may derive from wrong place if names are non-unique #11

Open adamgreig opened 4 years ago

adamgreig commented 4 years ago

At present derivedFrom in an enumeratedValues searches for the first matching enumeratedValues by name in the entire SVD. It should probably try searching in the same register at first, and ideally should respect the more qualified names [[peripheral.]register.]field if specified.