Replaced WriteRegistersToTarget event with TC command
This commit is contained in:
@@ -26,7 +26,6 @@ namespace Bloom::Events
|
||||
SHUTDOWN_APPLICATION,
|
||||
DEBUG_SERVER_THREAD_STATE_CHANGED,
|
||||
SHUTDOWN_DEBUG_SERVER,
|
||||
WRITE_REGISTERS_TO_TARGET,
|
||||
REGISTERS_WRITTEN_TO_TARGET,
|
||||
TARGET_EXECUTION_RESUMED,
|
||||
TARGET_EXECUTION_STOPPED,
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
#include "ShutdownApplication.hpp"
|
||||
#include "DebugServerThreadStateChanged.hpp"
|
||||
#include "ShutdownDebugServer.hpp"
|
||||
#include "WriteRegistersToTarget.hpp"
|
||||
#include "RegistersWrittenToTarget.hpp"
|
||||
#include "TargetExecutionResumed.hpp"
|
||||
#include "TargetExecutionStopped.hpp"
|
||||
|
||||
@@ -1,32 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
#include "Event.hpp"
|
||||
#include "RegistersWrittenToTarget.hpp"
|
||||
#include "src/Targets/TargetRegister.hpp"
|
||||
|
||||
namespace Bloom::Events
|
||||
{
|
||||
class WriteRegistersToTarget: public Event
|
||||
{
|
||||
public:
|
||||
using TargetControllerResponseType = RegistersWrittenToTarget;
|
||||
|
||||
static constexpr EventType type = EventType::WRITE_REGISTERS_TO_TARGET;
|
||||
static inline const std::string name = "WriteRegistersToTarget";
|
||||
Targets::TargetRegisters registers;
|
||||
|
||||
WriteRegistersToTarget() = default;
|
||||
explicit WriteRegistersToTarget(Targets::TargetRegisters registers): registers(std::move(registers)) {};
|
||||
|
||||
[[nodiscard]] EventType getType() const override {
|
||||
return WriteRegistersToTarget::type;
|
||||
}
|
||||
|
||||
[[nodiscard]] std::string getName() const override {
|
||||
return WriteRegistersToTarget::name;
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user