Added config struct for RISC-V debug translator implementation, and WCH debug tools.
Also some tidying in the `DebugToolConfig` struct
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
#include "DebugTranslatorConfig.hpp"
|
||||
|
||||
namespace DebugToolDrivers::Protocols::RiscVDebugSpec
|
||||
{
|
||||
DebugTranslatorConfig::DebugTranslatorConfig(const YAML::Node& configNode) {
|
||||
if (configNode["targetResponseTimeout"]) {
|
||||
this->targetResponseTimeout = std::chrono::microseconds{
|
||||
configNode["targetResponseTimeout"].as<int>(this->targetResponseTimeout.count())
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user