Massive refactor to accommodate RISC-V targets
- Refactored entire codebase (excluding the Insight component) to accommodate multiple target architectures (no longer specific to AVR) - Deleted 'generate SVD' GDB monitor command - I will eventually move this functionality to the Bloom website - Added unit size property to address spaces - Many other changes which I couldn't be bothered to describe here
This commit is contained in:
59
src/Targets/Microchip/AVR8/Avr8TargetConfig.cpp
Normal file
59
src/Targets/Microchip/AVR8/Avr8TargetConfig.cpp
Normal file
@@ -0,0 +1,59 @@
|
||||
#include "Avr8TargetConfig.hpp"
|
||||
|
||||
namespace Targets::Microchip::Avr8
|
||||
{
|
||||
Avr8TargetConfig::Avr8TargetConfig(const TargetConfig& targetConfig)
|
||||
: TargetConfig(targetConfig)
|
||||
{
|
||||
const auto& targetNode = targetConfig.targetNode;
|
||||
|
||||
// The 'manageDwenFuseBit' param used to be 'updateDwenFuseBit' - we still support the old, for now.
|
||||
if (targetNode["updateDwenFuseBit"]) {
|
||||
this->manageDwenFuseBit = targetNode["updateDwenFuseBit"].as<bool>(
|
||||
this->manageDwenFuseBit
|
||||
);
|
||||
}
|
||||
|
||||
if (targetNode["manageDwenFuseBit"]) {
|
||||
this->manageDwenFuseBit = targetNode["manageDwenFuseBit"].as<bool>(
|
||||
this->manageDwenFuseBit
|
||||
);
|
||||
}
|
||||
|
||||
if (targetNode["cycleTargetPowerPostDwenUpdate"]) {
|
||||
this->cycleTargetPowerPostDwenUpdate = targetNode["cycleTargetPowerPostDwenUpdate"].as<bool>(
|
||||
this->cycleTargetPowerPostDwenUpdate
|
||||
);
|
||||
}
|
||||
|
||||
if (targetNode["disableDebugWirePreDisconnect"]) {
|
||||
this->disableDebugWireOnDeactivate = targetNode["disableDebugWirePreDisconnect"].as<bool>(
|
||||
this->disableDebugWireOnDeactivate
|
||||
);
|
||||
}
|
||||
|
||||
if (targetNode["targetPowerCycleDelay"]) {
|
||||
this->targetPowerCycleDelay = std::chrono::milliseconds{targetNode["targetPowerCycleDelay"].as<int>(
|
||||
this->targetPowerCycleDelay.count()
|
||||
)};
|
||||
}
|
||||
|
||||
if (targetNode["manageOcdenFuseBit"]) {
|
||||
this->manageOcdenFuseBit = targetNode["manageOcdenFuseBit"].as<bool>(
|
||||
this->manageOcdenFuseBit
|
||||
);
|
||||
}
|
||||
|
||||
if (targetNode["preserveEeprom"]) {
|
||||
this->preserveEeprom = targetNode["preserveEeprom"].as<bool>(
|
||||
this->preserveEeprom
|
||||
);
|
||||
}
|
||||
|
||||
if (targetNode["reserveSteppingBreakpoint"]) {
|
||||
this->reserveSteppingBreakpoint = targetNode["reserveSteppingBreakpoint"].as<bool>(
|
||||
this->reserveSteppingBreakpoint
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user