[2d65bbb] | 1 | # |
---|
| 2 | # $Id$ |
---|
| 3 | # |
---|
| 4 | |
---|
| 5 | This is a port of the Winsystems Linux driver to RTEMS. |
---|
| 6 | |
---|
| 7 | In general, the goal was to minimize changes to the user level |
---|
| 8 | library and only replace Linux IO calls to the device driver |
---|
| 9 | with direct access functions. |
---|
| 10 | |
---|
[3dfdb9f] | 11 | The driver uses 4 Classic API Barriers. |
---|
| 12 | |
---|
[2d65bbb] | 13 | --joel sherrill |
---|
[3dfdb9f] | 14 | |
---|
| 15 | Issues |
---|
| 16 | ====== |
---|
| 17 | + The library is not reentrant. The GNU/Linux version uses global variables |
---|
| 18 | to track the state of certain variables and access to these is not protected. |
---|
| 19 | This design flaw is carried over into the RTEMS version. |
---|
| 20 | |
---|
[e2b6666] | 21 | + We want to timestamp samples and the initial code did not do that. I |
---|
| 22 | added this. |
---|
| 23 | |
---|
| 24 | RTEMS Shell Commands |
---|
| 25 | ==================== |
---|
| 26 | The following RTEMS Shell configuration aids are defined to assist in |
---|
| 27 | adding PCMMIO related commands to your shell. |
---|
| 28 | CONFIGURE_PCMMIO_ALIASES |
---|
| 29 | CONFIGURE_PCMMIO_COMMANDS |
---|
| 30 | |
---|
[fa08fc7] | 31 | pcmmio_din - Read Discrete Inputs |
---|
| 32 | pcmmio_din [-i iterations] [-p period] [-v] |
---|
[e2b6666] | 33 | Where: maximum iterations defaults to 1 |
---|
[fa08fc7] | 34 | the period is in milliseconds and defaults to 1000 |
---|
[e2b6666] | 35 | |
---|
[fa08fc7] | 36 | pcmmio_dout - Write a Discrete Output |
---|
[9175425] | 37 | pcmmio_dout bit value |
---|
[e2b6666] | 38 | Where: bit must be 0-47 |
---|
| 39 | value must be 0 or 1 |
---|
[3dfdb9f] | 40 | |
---|
[fa08fc7] | 41 | pcmmio_adc - Read Analog Inputs |
---|
| 42 | pcmmio_adc [-i iterations] [-p period] [-v] |
---|
| 43 | Where: maximum iterations defaults to 1 |
---|
| 44 | the period is in milliseconds and defaults to 1000 |
---|
| 45 | |
---|
[9fec0a5] | 46 | pcmmio_adc - Write Analog Output |
---|
[9175425] | 47 | pcmmio_dac dac voltage |
---|
[9fec0a5] | 48 | Where: dac must be 0-7 |
---|
| 49 | voltage must be -10V to +10V |
---|
| 50 | |
---|
[fa08fc7] | 51 | Aliases |
---|
| 52 | + adc - alias for pcmmio_adc |
---|
[69f7221] | 53 | + dac - alias for pcmmio_dac |
---|
[fa08fc7] | 54 | + din - alias for pcmmio_din |
---|
| 55 | + dout - alias for pcmmio_dout |
---|