Implemented programming mode functions for Avr8 target class

This commit is contained in:
Nav
2022-05-15 17:42:02 +01:00
parent cea43044e5
commit 89c47db1c0
2 changed files with 22 additions and 0 deletions

View File

@@ -122,6 +122,12 @@ namespace Bloom::Targets::Microchip::Avr::Avr8Bit
const TargetPinState& state
) override;
void enableProgrammingMode() override;
void disableProgrammingMode() override;
bool programmingModeEnabled() override;
protected:
DebugToolDrivers::TargetInterfaces::TargetPowerManagementInterface* targetPowerManagementInterface = nullptr;
DebugToolDrivers::TargetInterfaces::Microchip::Avr::Avr8::Avr8DebugInterface* avr8DebugInterface = nullptr;
@@ -139,6 +145,8 @@ namespace Bloom::Targets::Microchip::Avr::Avr8Bit
std::map<TargetRegisterType, TargetRegisterDescriptors> targetRegisterDescriptorsByType;
std::map<TargetMemoryType, TargetMemoryDescriptor> targetMemoryDescriptorsByType;
bool programmingModeActive = false;
/**
* Resolves the appropriate TDF for the AVR8 target and populates this->targetDescriptionFile.
*/