nrf-rs / nrf-pacs

Peripheral Access Crates (PACs) for nRF microcontrollers
BSD Zero Clause License
27 stars 12 forks source link

NVMC.ERASEPAGE missing #4

Closed Dirbaio closed 3 years ago

Dirbaio commented 3 years ago

NVMC.ERASEPAGE (offset 0x508) is missing. It's shown as _reserved_3_erasepage for some reason.

https://github.com/nrf-rs/nrf52840-pac/blob/9558a3ed032b2aec7e57c2f42330f1dee0000a04/src/nvmc.rs#L13

Dirbaio commented 3 years ago

Turns out this is because there's both erasepcr1 and erasepage at that offset, so svd2rust generates erasepcr1() and erasepage() functions instead of fields. Seems this is intended behavior, though confusing :shrug: