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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [jtag/] [jp.h] - Rev 1781

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

 
#define LPT_READ (base+1)
#define LPT_WRITE base
 
#define TCLK_BIT (0x01)
#define TRST_BIT (0x02)
#define TDI_BIT  (0x04)
#define TMS_BIT  (0x08)
#define TDO_BIT  (0x20)
#define TMS      (0x02)
#define TDI      (0x01)
 
#ifdef DEBUG
#define debug printf
#else
#define debug
#endif
 
#ifdef DEBUG2
#define debug2 printf
#else
#define debug2
#endif
 
#if (DEBUG) || (DEBUG2)
#define flush_debug() fflush(stdout)
#else
#define flush_debug()
#endif
 
void jp_out (uint8_t value);
uint8_t jp_in();
int jp_select_cable(const char *cable);
void jp_wait();
int jp_cable_opt(int c, char *str);
void jp_print_cable_help();
const char *jp_get_cable_args();
int jp_init_cable();
 
# define NUM_RETRIES (16)
# define JTAG_RETRY_WAIT() usleep (1000)
 

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

powered by: WebSVN 2.1.0

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