Added RiscVProgramInterface for RISC-V debug tools that are unable to program RISC-V targets via the debug interface

This commit is contained in:
Nav
2023-12-08 23:04:04 +00:00
parent 084eef1a30
commit f4b30dbdf6
4 changed files with 48 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
#pragma once
#include <cstdint>
#include "src/Targets/TargetMemory.hpp"
namespace DebugToolDrivers::TargetInterfaces::RiscV
{
class RiscVProgramInterface
{
public:
/**
* Should write to the target's FLASH memory.
*
* @param startAddress
* @param buffer
*/
virtual void writeFlashMemory(
Targets::TargetMemoryAddress startAddress,
const Targets::TargetMemoryBuffer& buffer
) = 0;
};
}