Welcome to mirror list, hosted at ThFree Co, Russian Federation.

jtag.h - github.com/ClusterM/famicom-dumper.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/jtag.h
blob: dac6eada7777096ba2d610e578b0fb8a3fa14e30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "defines.h"

#define CLUJTAG_CONCAT(a, b)            a ## b
#define CLUJTAG_OUTPORT(name)           CLUJTAG_CONCAT(PORT, name)
#define CLUJTAG_INPORT(name)            CLUJTAG_CONCAT(PIN, name)
#define CLUJTAG_DDRPORT(name)           CLUJTAG_CONCAT(DDR, name)

#define PORT CLUJTAG_OUTPORT(JTAG_PORT)
#define PORT_DDR CLUJTAG_DDRPORT(JTAG_PORT)
#define PORT_PIN CLUJTAG_INPORT(JTAG_PORT)
#define PORT_LED CLUJTAG_OUTPORT(LED_PORT)
#define PORT_LED_DDR CLUJTAG_DDRPORT(LED_PORT)

void jtag_setup();
void jtag_shutdown();
int jtag_execute(int count, uint8_t* data);