New monitor eeprom fill GDB command

This commit is contained in:
Nav
2022-12-10 19:22:53 +00:00
parent 8f48a30fa3
commit ffe4f5bfc5
5 changed files with 171 additions and 0 deletions

View File

@@ -32,6 +32,7 @@
#include "CommandPackets/BloomVersionMachine.hpp"
#include "CommandPackets/GenerateSvd.hpp"
#include "CommandPackets/Detach.hpp"
#include "CommandPackets/EepromFill.hpp"
// Response packets
#include "ResponsePackets/TargetStopped.hpp"
@@ -314,6 +315,10 @@ namespace Bloom::DebugServer::Gdb
return std::make_unique<CommandPackets::GenerateSvd>(std::move(*(monitorCommand.release())));
}
if (monitorCommand->command.find("eeprom fill") == 0) {
return std::make_unique<CommandPackets::EepromFill>(std::move(*(monitorCommand.release())));
}
return monitorCommand;
}
}