New targetPowerCycleDelay target config param, for configuring the AVR8 target power cycle delay (after updating the DWEN fuse bit)

This commit is contained in:
Nav
2022-03-21 13:04:12 +00:00
parent a3b9bb8ca2
commit 7b79f19574
3 changed files with 18 additions and 2 deletions

View File

@@ -38,5 +38,11 @@ namespace Bloom::Targets::Microchip::Avr::Avr8Bit
"disableDebugWirePreDisconnect"
).toBool();
}
if (targetConfig.jsonObject.contains("targetPowerCycleDelay")) {
this->targetPowerCycleDelay = std::chrono::milliseconds(targetConfig.jsonObject.value(
"targetPowerCycleDelay"
).toInt(static_cast<int>(this->targetPowerCycleDelay.count())));
}
}
}