Added postActivate() to the target interface, for outputting any target specific info after activation.
Removed the logging of the generic target ID from the TargetController
This commit is contained in:
@@ -77,6 +77,10 @@ namespace Targets::RiscV
|
||||
this->riscVDebugInterface->deactivate();
|
||||
}
|
||||
|
||||
void RiscV::postActivate() {
|
||||
Logger::info("WCH target ID: " + this->riscVIdInterface->getDeviceId());
|
||||
}
|
||||
|
||||
TargetDescriptor RiscV::targetDescriptor() {
|
||||
auto descriptor = TargetDescriptor{
|
||||
this->targetDescriptionFile.getName(),
|
||||
|
||||
@@ -34,6 +34,8 @@ namespace Targets::RiscV
|
||||
void activate() override;
|
||||
void deactivate() override;
|
||||
|
||||
void postActivate() override;
|
||||
|
||||
TargetDescriptor targetDescriptor() override;
|
||||
|
||||
void run(std::optional<TargetMemoryAddress> toAddress = std::nullopt) override;
|
||||
|
||||
Reference in New Issue
Block a user