Renamed SetProgramCounter TC command to SetTargetProgramCounter

This commit is contained in:
Nav
2022-05-01 18:47:57 +01:00
parent 4209d9eb20
commit fe846e0d7c
5 changed files with 15 additions and 15 deletions

View File

@@ -19,7 +19,7 @@ namespace Bloom::TargetController::Commands
STEP_TARGET_EXECUTION,
SET_BREAKPOINT,
REMOVE_BREAKPOINT,
SET_PROGRAM_COUNTER,
SET_TARGET_PROGRAM_COUNTER,
GET_TARGET_PIN_STATES,
SET_TARGET_PIN_STATE,
GET_TARGET_STACK_POINTER,

View File

@@ -8,20 +8,20 @@
namespace Bloom::TargetController::Commands
{
class SetProgramCounter: public Command
class SetTargetProgramCounter: public Command
{
public:
static constexpr CommandType type = CommandType::SET_PROGRAM_COUNTER;
static inline const std::string name = "SetProgramCounter";
static constexpr CommandType type = CommandType::SET_TARGET_PROGRAM_COUNTER;
static inline const std::string name = "SetTargetProgramCounter";
std::uint32_t address = 0;
explicit SetProgramCounter(std::uint32_t address)
explicit SetTargetProgramCounter(std::uint32_t address)
: address(address)
{};
[[nodiscard]] CommandType getType() const override {
return SetProgramCounter::type;
return SetTargetProgramCounter::type;
}
[[nodiscard]] bool requiresStoppedTargetState() const override {