1
0
mirror of https://github.com/preble/libpinproc synced 2026-02-24 18:25:23 +01:00

Changes for p3-roc

This commit is contained in:
Gerry Stellenberg
2013-06-25 18:54:54 -05:00
parent 98d6e84d65
commit a9f35706da
8 changed files with 285 additions and 39 deletions

View File

@@ -16,12 +16,12 @@
#pragma once
#endif
#if defined(__WIN32__) || defined(_WIN32)
#include <windows.h>
#define PRSleep(milliseconds) Sleep(milliseconds)
#else
#define PRSleep(milliseconds) sleep(milliseconds/1000)
#endif
//#if defined(__WIN32__) || defined(_WIN32)
// #include <windows.h>
// #define PRSleep(milliseconds) Sleep(milliseconds)
//#else
// #define PRSleep(milliseconds) sleep(milliseconds/1000)
//#endif
/* Legacy error codes for xsvfExecute from original XSVF player v2.0 */
#define XSVF_LEGACY_SUCCESS 1
@@ -55,6 +55,9 @@ extern int xsvfExecute();
#define TMS (short) 1
#define TDI (short) 2
//#define P_ROC_ID 0xfeedbeef
//#define P3_ROC_ID 0xf33db33f
/* set the port "p" (TCK, TMS, or TDI) to val (0 or 1) */
void setPort(short p, short val);