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

Resolved a number of build issues with WIN32 builds

This commit is contained in:
gstellenberg
2009-06-12 09:47:43 -05:00
parent 419269a60d
commit 789ac049db
4 changed files with 17 additions and 4 deletions

View File

@@ -29,6 +29,13 @@
#include <stdint.h>
#include "../include/pinproc.h"
#if defined(__WIN32__)
#include <windows.h>
#define PRSleep(milliseconds) Sleep(milliseconds)
#else
#define PRSleep(milliseconds) sleep(milliseconds/1000)
#endif
const int32_t FTDI_VENDOR_ID = 0x0403;
const int32_t FTDI_FT245RL_PRODUCT_ID = 0x6001;