Added additional check for the "NVM_FUSES" module, when locating fuses in AVR8 TDFs.

Also some tidying of peripheral register address offset extraction.
This commit is contained in:
Nav
2023-05-27 13:41:02 +01:00
parent 18e125f43f
commit b4ec41c34a
2 changed files with 98 additions and 127 deletions

View File

@@ -224,6 +224,20 @@ namespace Bloom::Targets::Microchip::Avr::Avr8Bit::TargetDescription
*/
void loadTargetRegisterDescriptors();
/**
* Gets the register address offset for a specific peripheral module.
*
* @param moduleName
* @param instanceName
* @param registerGroupName
* @return
*/
Targets::TargetMemoryAddress getPeripheralModuleRegisterAddressOffset(
const std::string& moduleName,
const std::string& instanceName,
const std::string& registerGroupName
) const;
[[nodiscard]] std::optional<FuseBitsDescriptor> getFuseBitsDescriptorByName(
const std::string& fuseBitName
) const;