Target driver passthrough commands

Added `pm` commands to manage the program mode of WCH targets
This commit is contained in:
Nav
2024-12-15 17:32:58 +00:00
parent 1392cda74f
commit 40859201e4
16 changed files with 243 additions and 3 deletions

View File

@@ -335,6 +335,14 @@ namespace Targets::Microchip::Avr8
}
}
// Make RAM, FLASH and EEPROM available for inspection the Insight GUI.
descriptor.getMemorySegmentDescriptor("data", "internal_ram").inspectionEnabled = true;
descriptor.getMemorySegmentDescriptor("prog", "internal_program_memory").inspectionEnabled = true;
descriptor.getMemorySegmentDescriptor(
descriptor.getFirstAddressSpaceDescriptorContainingMemorySegment("internal_eeprom").key,
"internal_eeprom"
).inspectionEnabled = true;
return descriptor;
}
@@ -683,6 +691,11 @@ namespace Targets::Microchip::Avr8
return this->activeProgrammingSession.has_value();
}
std::optional<PassthroughResponse> Avr8::invokePassthroughCommand(const PassthroughCommand& command) {
// AVR targets do not currently support any passthrough commands
return std::nullopt;
}
std::map<TargetPadId, GpioPadDescriptor> Avr8::generateGpioPadDescriptorMapping(
const std::vector<TargetPeripheralDescriptor>& portPeripheralDescriptors
) {