mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-14 11:38:12 +00:00
JTAG: Move Target interface to separate header.
This commit is contained in:
@@ -22,6 +22,8 @@
|
||||
#ifndef __JTAG_H__
|
||||
#define __JTAG_H__
|
||||
|
||||
#include "jtag_target.hpp"
|
||||
|
||||
#include <cstdint>
|
||||
#include <cstddef>
|
||||
|
||||
@@ -29,20 +31,6 @@
|
||||
|
||||
namespace jtag {
|
||||
|
||||
class Target {
|
||||
public:
|
||||
using bit_t = uint_fast8_t;
|
||||
|
||||
virtual ~Target() {
|
||||
}
|
||||
|
||||
virtual void delay(const size_t n) = 0;
|
||||
virtual bit_t clock(
|
||||
const bit_t tms_value,
|
||||
const bit_t tdi_value
|
||||
) = 0;
|
||||
};
|
||||
|
||||
class JTAG {
|
||||
public:
|
||||
constexpr JTAG(
|
||||
|
Reference in New Issue
Block a user