Tidying
This commit is contained in:
@@ -327,6 +327,9 @@ namespace DebugToolDrivers::Microchip::Protocols::Edbg::Avr
|
|||||||
*
|
*
|
||||||
* So it appears we cannot use that command for UPDI sessions. For this reason, we will just read the
|
* So it appears we cannot use that command for UPDI sessions. For this reason, we will just read the
|
||||||
* signature from memory via the signature memory segment.
|
* signature from memory via the signature memory segment.
|
||||||
|
*
|
||||||
|
* TODO: We're assuming the signature memory segment will always reside in the `data` address space, for
|
||||||
|
* UPDI targets. Review.
|
||||||
*/
|
*/
|
||||||
const auto signatureMemory = this->readMemory(
|
const auto signatureMemory = this->readMemory(
|
||||||
Avr8MemoryType::SRAM,
|
Avr8MemoryType::SRAM,
|
||||||
|
|||||||
@@ -323,11 +323,7 @@ namespace Targets::Microchip::Avr8
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
// The debug interface may have its own access restrictions for registers.
|
||||||
* The debug interface may have its own access restrictions for registers.
|
|
||||||
*
|
|
||||||
* We must amend the register descriptors with the appropriate restrictions.
|
|
||||||
*/
|
|
||||||
for (auto& [peripheralKey, peripheral] : descriptor.peripheralDescriptorsByKey) {
|
for (auto& [peripheralKey, peripheral] : descriptor.peripheralDescriptorsByKey) {
|
||||||
for (auto& [groupKey, registerGroup] : peripheral.registerGroupDescriptorsByKey) {
|
for (auto& [groupKey, registerGroup] : peripheral.registerGroupDescriptorsByKey) {
|
||||||
this->applyDebugInterfaceRegisterAccessRestrictions(
|
this->applyDebugInterfaceRegisterAccessRestrictions(
|
||||||
|
|||||||
Reference in New Issue
Block a user