ISP parameter struct and TDF extraction

This commit is contained in:
Nav
2022-03-02 22:42:28 +00:00
parent 5309c1117f
commit 3435d20a85
3 changed files with 126 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
#pragma once
#include <cstdint>
namespace Bloom::Targets::Microchip::Avr
{
/**
* These parameters are required by the ISP interface. They can be extracted from the target's TDF.
*/
struct IspParameters
{
std::uint8_t programModeTimeout;
std::uint8_t programModeStabilizationDelay;
std::uint8_t programModeCommandExecutionDelay;
std::uint8_t programModeSyncLoops;
std::uint8_t programModeByteDelay;
std::uint8_t programModePollValue;
std::uint8_t programModePollIndex;
std::uint8_t programModePreDelay;
std::uint8_t programModePostDelay;
std::uint8_t readSignaturePollIndex;
std::uint8_t readFusePollIndex;
};
}