URL
https://opencores.org/ocsvn/or1k/or1k/trunk
[/] [or1k/] [trunk/] [jtag/] [jp.h] - Diff between revs 1380 and 1765
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 1380 |
Rev 1765 |
|
|
#define LPT_READ (base+1)
|
#define LPT_READ (base+1)
|
#define LPT_WRITE base
|
#define LPT_WRITE base
|
|
|
#define TCLK_BIT (0x01)
|
#define TCLK_BIT (0x01)
|
#define TRST_BIT (0x02)
|
#define TRST_BIT (0x02)
|
#define TDI_BIT (0x04)
|
#define TDI_BIT (0x04)
|
#define TMS_BIT (0x08)
|
#define TMS_BIT (0x08)
|
#define TDO_BIT (0x20)
|
#define TDO_BIT (0x20)
|
#define TMS (0x02)
|
#define TMS (0x02)
|
#define TDI (0x01)
|
#define TDI (0x01)
|
|
|
#ifdef DEBUG
|
#ifdef DEBUG
|
#define debug printf
|
#define debug printf
|
#else
|
#else
|
#define debug
|
#define debug
|
#endif
|
#endif
|
|
|
#ifdef DEBUG2
|
#ifdef DEBUG2
|
#define debug2 printf
|
#define debug2 printf
|
#else
|
#else
|
#define debug2
|
#define debug2
|
#endif
|
#endif
|
|
|
#if (DEBUG) || (DEBUG2)
|
#if (DEBUG) || (DEBUG2)
|
#define flush_debug() fflush(stdout)
|
#define flush_debug() fflush(stdout)
|
#else
|
#else
|
#define flush_debug()
|
#define flush_debug()
|
#endif
|
#endif
|
|
|
void jp_out (uint8_t value);
|
void jp_out (uint8_t value);
|
uint8_t jp_in();
|
uint8_t jp_in();
|
int jp_select_cable(const char *cable);
|
int jp_select_cable(const char *cable);
|
void jp_wait();
|
void jp_wait();
|
int jp_cable_opt(int c, char *str);
|
int jp_cable_opt(int c, char *str);
|
void jp_print_cable_help();
|
void jp_print_cable_help();
|
const char *jp_get_cable_args();
|
const char *jp_get_cable_args();
|
int jp_init_cable();
|
int jp_init_cable();
|
|
|
# define NUM_RETRIES (16)
|
# define NUM_RETRIES (16)
|
# define JTAG_RETRY_WAIT() usleep (1000)
|
# define JTAG_RETRY_WAIT() usleep (1000)
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.