Mirror with some correction
Dependencies: mbed FastIO FastPWM USBDevice
DMAChannels.h@55:4db125cd11a0, 2016-05-04 (annotated)
- Committer:
- mjr
- Date:
- Wed May 04 03:59:44 2016 +0000
- Revision:
- 55:4db125cd11a0
- Parent:
- 47:df7a88cd249c
- Child:
- 100:1ff35c07217c
More KL25Z USB client cleanup
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mjr | 47:df7a88cd249c | 1 | // Pinscape Controller DMA channel assignments |
mjr | 47:df7a88cd249c | 2 | // |
mjr | 47:df7a88cd249c | 3 | // The SimpleDMA class has provisions to assign channel numbers |
mjr | 47:df7a88cd249c | 4 | // automatically as transfers are performed, but auto assignment |
mjr | 47:df7a88cd249c | 5 | // doesn't play well with "channel linking", which we use in the |
mjr | 47:df7a88cd249c | 6 | // TSL1410R code. Channel linking requires us to know the hardware |
mjr | 47:df7a88cd249c | 7 | // channel number of the link target before any transfers start. |
mjr | 47:df7a88cd249c | 8 | // The only good way to do this is to pre-assign specific numbers. |
mjr | 47:df7a88cd249c | 9 | // And once we start doing this, it's easiest to assign numbers |
mjr | 47:df7a88cd249c | 10 | // for everyone. |
mjr | 47:df7a88cd249c | 11 | // |
mjr | 47:df7a88cd249c | 12 | |
mjr | 47:df7a88cd249c | 13 | #ifndef DMAChannels_H |
mjr | 47:df7a88cd249c | 14 | #define DMAChannels_H |
mjr | 47:df7a88cd249c | 15 | |
mjr | 47:df7a88cd249c | 16 | // -------------------------------------------------------------- |
mjr | 47:df7a88cd249c | 17 | // |
mjr | 47:df7a88cd249c | 18 | // Plunger Sensors |
mjr | 47:df7a88cd249c | 19 | // |
mjr | 47:df7a88cd249c | 20 | // Plunger sensors are mutually exclusive since there's only one |
mjr | 47:df7a88cd249c | 21 | // in any given system, so any channels assigned for one type of |
mjr | 47:df7a88cd249c | 22 | // sensor can be reused by other sensor types. |
mjr | 47:df7a88cd249c | 23 | |
mjr | 47:df7a88cd249c | 24 | // TSL1410R CCD plunger sensor |
mjr | 47:df7a88cd249c | 25 | const int DMAch_CLKUP = 1; // Clock Up signal generator |
mjr | 47:df7a88cd249c | 26 | const int DMAch_ADC = 2; // ADC (analog input) sample transfer |
mjr | 47:df7a88cd249c | 27 | const int DMAch_CLKDN = 3; // Clock Down signal generator |
mjr | 47:df7a88cd249c | 28 | |
mjr | 55:4db125cd11a0 | 29 | |
mjr | 55:4db125cd11a0 | 30 | // -------------------------------------------------------------- |
mjr | 55:4db125cd11a0 | 31 | // |
mjr | 55:4db125cd11a0 | 32 | // Free channels - not currently assigned. |
mjr | 55:4db125cd11a0 | 33 | // |
mjr | 55:4db125cd11a0 | 34 | const int DMAch_Unused0 = 0; |
mjr | 55:4db125cd11a0 | 35 | |
mjr | 55:4db125cd11a0 | 36 | |
mjr | 47:df7a88cd249c | 37 | #endif |