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
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
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
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
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
c7daca92d6
Fix memory stomp due to incorrect malloc size.
2013-02-24 23:02:20 -08:00
Gerry Stellenberg
78ed8bbe67
Added accelerometer events
2012-07-30 19:22:19 -05:00
Gerry Stellenberg
72301ec1dd
Separated switch event parsing for V1 vs V2.
2012-05-12 15:06:23 -05:00
Gerry Stellenberg
21c3a45e88
Added support for PDB machine type.
2011-11-04 16:09:23 -05:00
Gerry Stellenberg
b6a40477c0
Provide P-ROC event timestamps with switch events.
2011-09-15 19:04:39 -05:00
Gerry Stellenberg
06b8af5393
Replace concept of virtual switches with switches that don't need to be debounced. This is necessary because all switches 0-255 are used. Defining some as never-debounce makes switch rules available for linked rules.
2011-08-29 16:19:24 -05:00
Gerry Stellenberg
ed8f768ae2
Adjusted addresses used in PRSwitchGetStates to reflect FPGA change. Use the combined version/revision to choose between the old address and the new one so that old FPGAs will still work fine.
2011-06-07 09:00:18 -05:00
Gerry Stellenberg
3f41e9b4b9
Fixed bug where a switch rule driver wasn't getting programmed properly if there was only one driver.
2011-02-18 13:52:18 -06:00
Gerry Stellenberg
c53227c90e
Added progress status to pinprocfw. Also added the drive_outputs_now parameter to PRSwitchUpdateRule() and associated methods. When true and FPGA version is 1.17 (non-debug) or higher), the P-ROC will check the switch state to see if the drivers should be processed immediately.
2011-02-17 21:40:06 -06:00
Gerry Stellenberg
1a82212cb4
Removed unnecesary ifdef around stdio.h. stdio.h should be available on all platforms.
2011-01-02 21:35:17 -06:00
Gerry Stellenberg
a07206ff39
More small tweaks for MSVC.
2011-01-02 18:02:07 -06:00
Gerry Stellenberg
d90bf717ba
Back out protection code from previous check-in. It's too restrictive.
2010-12-30 19:44:40 -06:00
Gerry Stellenberg
b493bc702a
Merge branch 'dev' of git@github.com:preble/libpinproc into dev
2010-12-30 18:01:16 -06:00
Gerry Stellenberg
b58c868a8f
Removed debug printf from aux logic
2010-12-30 18:01:04 -06:00
Gerry Stellenberg
e08e4cde52
Minor changes to avoid compilation errors in MSVC
2010-12-29 17:21:34 -06:00
Gerry Stellenberg
3ffb3b6f53
Added delay param to aux_output commands
2010-12-04 22:28:16 -06:00
preble
23cf3b374b
Minor improvements. Fixed PRSleep() on POSIX platforms.
2010-06-14 01:02:49 -04:00
Gerry Stellenberg
c29a6daa48
Added additional includes for better cross-platform compilation support.
2010-05-12 18:10:00 -05:00
gstellenberg
e7ffc77566
Set reloadActive bit on switch rule updates.
2010-04-30 20:38:37 -05:00
gstellenberg
25c4fe2d0b
Added kPRMachineTypeWPCAlphanumeric to differentiate between WPC machines needing an Aux port for alphanumeric control versus those using a DMD. Also added default driver code to configure the FPGA's Manager Config register.
2010-04-10 23:17:55 -05:00
gstellenberg
f5754d961b
Added support for Aux Port and Pulsed Patter
2010-04-04 14:19:43 -05:00
preble
ed7f0153f0
Improved error reporting. PRGetEvents() now returns -1 if an error occurred.
2010-03-28 14:23:07 -04:00
gstellenberg
00009be170
Fixed linked rules free list maintenance bug.
2010-02-23 13:20:21 -06:00
gstellenberg
3155dc9a10
Fixed switch event typo.
2010-02-17 10:35:37 -06:00
gstellenberg
c7367fc5ee
Changed VerifyChipID retries to 5 now that it's ignoring unrequested data. Should really only need to be 1.
2009-10-30 23:50:44 -05:00
gstellenberg
8f6357fcb4
Changed VerifyChipID to use SortReturningData instead of just ReadData so it will ignore nonrequested events like DMD events.
2009-10-30 23:30:47 -05:00
gstellenberg
6a0c819939
When setting up defaults, set up the driver groups before enabling the drivers since the FPGA now uses the groups to set the initial polarity.
2009-10-29 00:02:26 -05:00
gstellenberg
df1bbb084e
Added code to set the polarity of driver group 18 and drivers 144-151 for WPC machineTypes to 1 for the 8-driver board.
2009-10-26 12:03:55 -05:00
gstellenberg
a6ac5122e5
Cleanup for VerifyChipID logic.
2009-10-25 15:24:33 -05:00
gstellenberg
9550ba1223
Added debug for startup crashes, and put a while loop of 50 max iterations around VerifyChipID().
2009-10-25 15:05:58 -05:00
preble
b81b80c311
Fixed compiler warnings.
2009-10-25 10:43:06 -04:00
gstellenberg
c51af65a05
Initialize buffer pointers before using.
2009-10-24 23:11:30 -05:00
gstellenberg
96093802a6
Display chip_id and version as Errors so they are always printed.
2009-10-24 11:46:39 -05:00
gstellenberg
dd12016b0f
Double flush read buffer on startup.
2009-10-23 22:18:48 -05:00
gstellenberg
520a8a5b17
Added support for WPC switch matrix columns 8 and 9.
2009-10-21 21:03:16 -05:00
gstellenberg
cee4aab5a2
Fixed logic comparing the requested machineType against the P-ROC's machine type.
2009-10-20 23:41:21 -05:00
Adam Preble
4ac76276d0
Added handling for 'custom' machineType to pypinproc. Set error text on machine type failure in PRCreate.
2009-10-17 18:09:09 -04:00
gstellenberg
e496c5d35e
Split kPRMachineWPC into WPC and WPC95
2009-10-10 22:58:58 -05:00
Gerry Stellenberg
9b0322a4fc
Only set up machine type defaults if not kPRMachineCustom.
2009-10-02 15:55:30 -05:00
Gerry Stellenberg
2a48ff79c9
Added high current drive protection to default WPC and Stern coils. Adjusted Stern driver group times to reflect latest FPGA 1.11, and moved some machineType determination logic into a function in PRHardware.cpp.
2009-10-01 22:45:37 -05:00
Gerry Stellenberg
3f36b408ca
Separated machineType stern into sternSAM and sternWhitestar.
2009-09-28 23:33:09 -05:00