1
0
mirror of https://github.com/preble/libpinproc synced 2026-02-22 18:15:25 +01:00
Commit Graph

300 Commits

Author SHA1 Message Date
Tom Collins
3b9d035fb5 cleanup: quiet PRGetLastErrorText() compiler warning 2020-08-18 13:13:16 -05:00
Tom Collins
7c202fc2f4 doc: update README 2020-08-18 13:13:16 -05:00
Tom Collins
ed6540858b cleanup: unbuffered stdout to avoid fflush()
By setting stdout to unbuffered, the user always sees our output and we
can eliminate the fflush() calls sprinkled throughout the programs.
2020-08-18 13:13:16 -05:00
Tom Collins
c36d48bc64 cleanup: remove dead (#if 0) code 2020-08-18 13:13:16 -05:00
Tom Collins
bb14a68037 cleanup: move "\n" from start to end of printf() output 2020-08-18 13:13:16 -05:00
Tom Collins
d415ac8614 cmake: on Linux/macOS, link libusb-1.0 vs. libusb 2020-08-18 13:13:16 -05:00
Tom Collins
705a2d25e6 pinproctest: more cleanup 2020-08-18 13:13:16 -05:00
Tom Collins
5ad464b167 pinproctest: use standard strcmp() vs. strcmpi()
While case-insensitive compare of the machine type passed on the
command line would be nice, the function to do so has different names
on different platforms, and its behavior may be impacted by the user's
locale setting.
2020-08-18 13:13:16 -05:00
Tom Collins
624f7780a1 cmake: update minimum required version to 2.8.1
This is a reasonable requirement.  It allows removal of two OLD policies
and gives us consistent behavior for relative link directories.
2020-08-18 13:13:16 -05:00
Tom Collins
caa09f6473 cmake: remove CMAKE_CXX_STANDARD requirement
Added for yaml-cpp, which is no longer a dependency for pinproctest.
2020-08-18 13:13:16 -05:00
Tom Collins
83f8f116f9 pinprocfw: code cleanup 2020-08-18 13:13:16 -05:00
Tom Collins
954084d348 pinproctest: code cleanup
Includes check to limit accelerometer-related code to P3-ROC since
it fails on the P-ROC (which doesn't have an accelerometer).
2020-08-18 13:13:16 -05:00
Tom Collins
b2d9b4e000 API: change private constants to public macros
Expose some useful values for code that interfaces with libpinproc.
2020-08-18 13:13:16 -05:00
Tom Collins
bcd526a558 libpinproc: fix PRDevice::GetVersionInfo() API
`combinedVersionRevision` is a 32-bit value.  This API isn't exposed in
the public pinproc.h header, so it's safe to make this change.
2020-08-18 13:13:16 -05:00
Tom Collins
cc92bc1235 pinproctest: fix kPRDriverGroupsMax overflow
Compiler warnings showed we were overflowing arrays sized for
kPRDriverGroupsMax.
2020-08-18 13:13:16 -05:00
Tom Collins
40b0d86be2 yaml: remove yaml-cpp dependency
`pinproctest` now takes machineType as it's command-line parameter.
2020-08-18 13:13:16 -05:00
Gerry Stellenberg
65044e31ed Merge pull request #11 from tomlogic/dev
Merge outstanding commits to `dev`
2020-07-20 17:41:36 -05:00
Tom Collins
b3191b3ad1 Revert "add debian control files"
This reverts commit 69bd547f0e.
2020-06-24 18:22:00 -07:00
Tom Collins
804eebf180 Revert "dont compile examples"
This reverts commit d681054a1d.
2020-06-24 18:21:34 -07:00
Tom Collins
ce7e4f0f4a Merge remote-tracking branch 'Compy/dev' into dev
# Conflicts:
#	CMakeLists.txt
2020-06-24 18:21:13 -07:00
Tom Collins
286cb1aa38 Merge remote-tracking branch 'preble/bug/pinprocfw_p3roc_rev' into dev 2020-06-24 18:12:32 -07:00
Tom Collins
a14aaef0b2 pinprocfw: always print an error if file parsing fails 2020-06-24 10:01:00 -07:00
Tom Collins
acd55d6d69 pinprocfw: call PRDelete() even if file doesn't parse
Previously we'd fail to call PRDelete(), which may have been causing
some of my problems with attempting to re-connect to the P-ROC.
I assume PRDelete() closes out the connection in some way.
2020-06-24 10:00:00 -07:00
Tom Collins
26600a3eaf doc: yaml-cpp now hosted on GitHub 2020-06-23 22:56:19 -07:00
Tom Collins
213c69dfc1 build: make non-MSVC executables statically linked
When building in MSYS2/MinGW64, I was missing multiple DLLs necessary
to run the EXE files from a command prompt.
2020-06-23 22:41:05 -07:00
Tom Collins
60c6859c35 build: allow relative paths in LINK_DIRECTORIES 2020-06-23 22:36:20 -07:00
Tom Collins
f44cacd54e pinprocfw: use correct checkPROCFile() return type
Quiets a compiler warning, and matches the `file_board_id` declaration.
2020-06-23 22:35:22 -07:00
Tom Collins
fed1d7e398 pinprocfw: add missing return to verifyP3ROCImage() 2020-06-23 22:34:13 -07:00
Tom Collins
b99197953a build: allow for setting EXTRA_INC and EXTRA_LINK
Can now actually set these with the -D command line option.
2020-06-23 22:33:19 -07:00
p3
31e7b0b784 Parsing of board ID for P3-ROC and P-ROC are now different. Both read from address 3, but P3-ROC is bits 11:8, and P-ROC is bits 7:4. 2020-05-22 12:54:19 -05:00
Jimmy Lipham
3e2aecdb64 Adding cross-compilation support 2020-05-16 14:55:20 -05:00
Jan Kantert
75bdb61b02 fix compiler warnings 2020-05-12 21:16:23 +02:00
Jan Kantert
ba938e2425 add more error strings 2020-05-12 21:11:03 +02:00
Jan Kantert
031109f5ec add new PRWriteDataUnbuffered to libpinproc 2020-02-22 13:07:29 +01:00
Jan Kantert
5bb2146d3e do not flush after every write data call 2020-01-08 20:52:51 +01:00
darren
dfe55cf217 changes for latest yaml-cpp and CPP 11 2019-05-29 14:06:19 -07:00
Jan Kantert
69bd547f0e add debian control files 2016-02-10 22:20:25 +01:00
Jan Kantert
a87e5fb9b9 use pkg-config 2016-02-10 18:15:26 +01:00
Jan Kantert
d681054a1d dont compile examples 2016-02-10 18:15:15 +01:00
Gerry Stellenberg
bd0046c144 Merge pull request #9 from tomlogic/dev
correct #include path to ftdi.h from libftdi1
2015-05-11 16:48:44 -05:00
Gerry Stellenberg
c03254b355 Merge pull request #8 from tomlogic/dev
updates to libpinproc (lamps, compilation issues)
2015-05-06 15:32:46 -05:00
Tom Collins
e512fd2a6e correct #include path to ftdi.h from libftdi1 2015-04-20 17:03:59 -07:00
Tom Collins
ed70e41229 cleanup: include stdlib.h instead of defining NULL in PRCommon.h 2015-04-20 16:58:34 -07:00
Tom Collins
50a6bbc7a6 utils: fix fprintf() compiler warnings in pinprocfw 2015-04-20 16:58:25 -07:00
Koen Heltzel
86c27a80f1 update DriverAuxSendCommands() to work on P3-ROC 2015-04-20 16:58:16 -07:00
Koen Heltzel
52c828df50 revert mappedWPCDriverGroupSlowTime change causing lamps to be dimmer in WPC machines
Signed-off-by: Tom Collins <tom@tomlogic.com>
2015-04-20 16:49:55 -07:00
Gerry Stellenberg
5aba1a5c8b Use PrepareWriteData() for LED commands instead of WriteData so that data isn't flushed on every command. 2014-04-16 11:31:12 -05:00
Gerry Stellenberg
eaf9054717 Merge pull request #7 from koenheltzel/dev
0x0 schedule fix + restoring WPC lamp timing
2013-12-17 08:24:46 -08:00
Koen Heltzel
12d065b9b7 Restored mappedWPCDriverGroupSlowTime timings that were changed & committed by mistake, causing lamps to be dimmer in WPC machines.
a9f35706da
2013-12-17 12:54:53 +01:00
Koen Heltzel
946ef7ac08 A schedule request with a 0x0 schedule is now converted to a disable command automatically, this fixes unexpected LED flashing in lampshows where schedules can be 0x0.
http://www.pinballcontrollers.com/forum/index.php?topic=251.msg6791#msg6791
http://www.pinballcontrollers.com/forum/index.php?topic=802.msg6783#msg6783
2013-12-17 12:42:28 +01:00