- Refactored AVR8 constructor, moving TDF construction to the TargetControllerComponent

- The `TargetControllerComponent` now resolves the target via the new generated mapping approach
- Added `TargetDescriptionFile` derived class
- Removed obsolete JSON map processing code
- Other bits of refactoring and tidying
This commit is contained in:
Nav
2023-12-17 18:12:53 +00:00
parent 866cdbdcc5
commit 66cbd89051
14 changed files with 161 additions and 119 deletions

View File

@@ -246,12 +246,14 @@ namespace TargetController
std::map<std::string, std::function<std::unique_ptr<DebugTool>()>> getSupportedDebugTools();
/**
* Constructs a mapping of supported target names to lambdas. The lambdas should instantiate and return an
* instance to the appropriate Target class.
* Constructs a Target instance from a BriefTargetDescriptor object.
*
* @param targetBrief
* @return
*/
std::map<std::string, std::function<std::unique_ptr<Targets::Target>(const TargetConfig&)>> getSupportedTargets();
std::unique_ptr<Targets::Target> constructTargetFromBrief(
const Targets::TargetDescription::GeneratedMapping::BriefTargetDescriptor& targetBrief
);
/**
* Processes any pending commands in the queue.