atsam-rs/atsam4-hal

Add decoder for CHIPID registers

Closed this issue · 0 comments

haata commented

It can be useful to determine the MCU part number at runtime (especially if the same firmware runs on multiple versions of the same MCU with different flash, sram sizes, or pin counts).

C implementation: https://github.com/kiibohd/controller/blob/master/Lib/chip_version.h#L170