mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-15 00:17:41 +00:00
Add portapack cpld write usb serial command for AG256SL100 devices (#2401)
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
#define __JTAG_H__
|
||||
|
||||
#include "jtag_target.hpp"
|
||||
#include "ch.h"
|
||||
|
||||
#include <cstdint>
|
||||
#include <cstddef>
|
||||
@@ -51,7 +52,16 @@ class JTAG {
|
||||
}
|
||||
|
||||
void runtest_tck(const size_t count) {
|
||||
target.delay(count);
|
||||
for (size_t i = 0; i < count; i++) {
|
||||
target.clock(0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
void runtest_ms(const size_t count) {
|
||||
auto starttime = chTimeNow();
|
||||
|
||||
while ((chTimeNow() - starttime) < (count + 1))
|
||||
target.clock(0, 0);
|
||||
}
|
||||
|
||||
uint32_t shift_ir(const size_t count, const uint32_t value) {
|
||||
|
Reference in New Issue
Block a user