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

288 Commits

Author SHA1 Message Date
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
Gerry Stellenberg
ab0739e0dd Keep track of chip_id and use it when retrieving switch states. 2013-10-02 13:45:18 -05:00
Gerry Stellenberg
2277042664 Changed ver to 2.0 2.0 2013-07-18 15:10:36 -05:00
Gerry Stellenberg
7d7c1b8d04 Fixed P3-ROC verify bug with readback timing. 2013-07-07 09:05:42 -05:00
Gerry Stellenberg
718c695a87 Merge branch 'dev' of github.com:preble/libpinproc into dev 2013-07-02 23:14:10 -05:00
Gerry Stellenberg
235a5d9f50 Added AccelerometerIRQ support. 2013-07-02 23:13:58 -05:00
Gerry Stellenberg
a9f35706da Changes for p3-roc 2013-06-25 18:54:54 -05:00
Adam Preble
6f6341c6a7 Merge pull request #6 from reltham/dev
Minor change to make project name compatible with VS 2010, plus PDB LED functions added to libpinproc.
2013-03-01 10:28:35 -08:00
Roy Eltham
0c975d372b Hardcoded number cleanup and more.
Made the hard coded number cleanup changes Gerry requested.
Also changed FillLEDWriteCommand to FillPDBCommand, now it can be used
filling out any PDB command (extra constants in PRHardware.h).
2013-03-01 09:59:37 -08:00
Roy Eltham
cd9b88dea6 Added PD-LED board functions. 2013-02-28 21:20:29 -08:00
Roy Eltham
c871ddfeb3 Revert "Added functions for PD-LED boards."
This reverts commit dec4955b15.
2013-02-28 20:36:01 -08:00
Roy Eltham
dec4955b15 Added functions for PD-LED boards. 2013-02-28 19:16:18 -08:00
Roy Eltham
9715bdfd44 Minor change to make project name compatible with VS 2010
Visual Studio 2010 doesn't like the '/' character in the project names.
2013-02-27 10:01:04 -08:00