OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [jtag/] [jp.h] - Blame information for rev 1778

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1380 phoenix
 
2
#define LPT_READ (base+1)
3
#define LPT_WRITE base
4
 
5
#define TCLK_BIT (0x01)
6
#define TRST_BIT (0x02)
7
#define TDI_BIT  (0x04)
8
#define TMS_BIT  (0x08)
9
#define TDO_BIT  (0x20)
10
#define TMS      (0x02)
11
#define TDI      (0x01)
12
 
13
#ifdef DEBUG
14
#define debug printf
15
#else
16
#define debug
17
#endif
18
 
19
#ifdef DEBUG2
20
#define debug2 printf
21
#else
22
#define debug2
23
#endif
24
 
25
#if (DEBUG) || (DEBUG2)
26
#define flush_debug() fflush(stdout)
27
#else
28
#define flush_debug()
29
#endif
30
 
31
void jp_out (uint8_t value);
32
uint8_t jp_in();
33
int jp_select_cable(const char *cable);
34
void jp_wait();
35
int jp_cable_opt(int c, char *str);
36
void jp_print_cable_help();
37
const char *jp_get_cable_args();
38
int jp_init_cable();
39
 
40
# define NUM_RETRIES (16)
41
# define JTAG_RETRY_WAIT() usleep (1000)

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.