Lots of tidying

- Removed generic `avr8` target
- Simplified AVR8 target construction
- Introduced register descriptor IDs
- Simplified GDB register mappings
- Simplified target interface contract
- Other bits of tidying
This commit is contained in:
Nav
2023-05-21 21:08:25 +01:00
parent 5f8242a87a
commit ba03833325
62 changed files with 1304 additions and 1577 deletions

View File

@@ -159,9 +159,11 @@ namespace Bloom::Services
);
}
TargetRegisters TargetControllerService::readRegisters(const TargetRegisterDescriptors& descriptors) const {
TargetRegisters TargetControllerService::readRegisters(
const Targets::TargetRegisterDescriptorIds& descriptorIds
) const {
return this->commandManager.sendCommandAndWaitForResponse(
std::make_unique<ReadTargetRegisters>(descriptors),
std::make_unique<ReadTargetRegisters>(descriptorIds),
this->defaultTimeout
)->registers;
}

View File

@@ -98,12 +98,12 @@ namespace Bloom::Services
/**
* Requests the TargetController to read register values from the target.
*
* @param descriptors
* Descriptors of the registers to read.
* @param descriptorIds
* Descriptor IDs of the registers to read.
*
* @return
*/
Targets::TargetRegisters readRegisters(const Targets::TargetRegisterDescriptors& descriptors) const;
Targets::TargetRegisters readRegisters(const Targets::TargetRegisterDescriptorIds& descriptorIds) const;
/**
* Requests the TargetController to write register values to the target.