Replaced RetrieveStackPointerFromTarget event with TC command

This commit is contained in:
Nav
2022-05-01 18:01:01 +01:00
parent 75d8ca68fb
commit d8af8fe1ee
11 changed files with 72 additions and 87 deletions

View File

@@ -12,5 +12,6 @@ namespace Bloom::TargetController::Responses
TARGET_MEMORY_READ,
TARGET_STATE,
TARGET_PIN_STATES,
TARGET_STACK_POINTER,
};
}

View File

@@ -0,0 +1,24 @@
#pragma once
#include <cstdint>
#include "Response.hpp"
namespace Bloom::TargetController::Responses
{
class TargetStackPointer: public Response
{
public:
static constexpr ResponseType type = ResponseType::TARGET_STACK_POINTER;
std::uint32_t stackPointer;
explicit TargetStackPointer(std::uint32_t stackPointer)
: stackPointer(stackPointer)
{}
[[nodiscard]] ResponseType getType() const override {
return TargetStackPointer::type;
}
};
}