Target driver passthrough commands
Added `pm` commands to manage the program mode of WCH targets
This commit is contained in:
@@ -17,5 +17,6 @@ namespace TargetController::Responses
|
||||
TARGET_STACK_POINTER,
|
||||
TARGET_PROGRAM_COUNTER,
|
||||
PROGRAM_BREAKPOINT,
|
||||
TARGET_PASSTHROUGH_RESPONSE,
|
||||
};
|
||||
}
|
||||
|
||||
26
src/TargetController/Responses/TargetPassthroughResponse.hpp
Normal file
26
src/TargetController/Responses/TargetPassthroughResponse.hpp
Normal file
@@ -0,0 +1,26 @@
|
||||
#pragma once
|
||||
|
||||
#include <optional>
|
||||
|
||||
#include "Response.hpp"
|
||||
|
||||
#include "src/Targets/PassthroughResponse.hpp"
|
||||
|
||||
namespace TargetController::Responses
|
||||
{
|
||||
class TargetPassthroughResponse: public Response
|
||||
{
|
||||
public:
|
||||
static constexpr ResponseType type = ResponseType::TARGET_PASSTHROUGH_RESPONSE;
|
||||
|
||||
std::optional<Targets::PassthroughResponse> response;
|
||||
|
||||
explicit TargetPassthroughResponse(std::optional<Targets::PassthroughResponse>&& response)
|
||||
: response(std::move(response))
|
||||
{}
|
||||
|
||||
[[nodiscard]] ResponseType getType() const override {
|
||||
return TargetPassthroughResponse::type;
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user