1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 /***************************************************************************
4 * Copyright (C) 2011 by Martin Schmoelzer *
5 * <martin.schmoelzer@student.tuwien.ac.at> *
6 ***************************************************************************/
13 #define NOP { __asm nop __endasm; }
15 void jtag_scan_in(uint8_t out_offset
, uint8_t in_offset
);
16 void jtag_slow_scan_in(uint8_t out_offset
, uint8_t in_offset
);
18 void jtag_scan_out(uint8_t out_offset
);
19 void jtag_slow_scan_out(uint8_t out_offset
);
21 void jtag_scan_io(uint8_t out_offset
, uint8_t in_offset
);
22 void jtag_slow_scan_io(uint8_t out_offset
, uint8_t in_offset
);
24 void jtag_clock_tck(uint16_t count
);
25 void jtag_slow_clock_tck(uint16_t count
);
26 void jtag_clock_tms(uint8_t count
, uint8_t sequence
);
27 void jtag_slow_clock_tms(uint8_t count
, uint8_t sequence
);
29 uint16_t jtag_get_signals(void);
30 void jtag_set_signals(uint8_t low
, uint8_t high
);
32 void jtag_configure_tck_delay(uint8_t scan_in
, uint8_t scan_out
,
33 uint8_t scan_io
, uint8_t tck
, uint8_t tms
);