Mirror with some correction

Dependencies:   mbed FastIO FastPWM USBDevice

Committer:
arnoz
Date:
Fri Oct 01 08:19:46 2021 +0000
Revision:
116:7a67265d7c19
Parent:
100:1ff35c07217c
- Correct information regarding your last merge

Who changed what in which revision?

UserRevisionLine numberNew 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 100:1ff35c07217c 24 // TSL1410R linear optical array plunger sensor
mjr 100:1ff35c07217c 25 const int DMAch_TSL_CLKUP = 1; // Clock Up signal generator
mjr 100:1ff35c07217c 26 const int DMAch_TSL_ADC = 2; // ADC (analog input) sample transfer
mjr 100:1ff35c07217c 27 const int DMAch_TSL_CLKDN = 3; // Clock Down signal generator
mjr 47:df7a88cd249c 28
mjr 100:1ff35c07217c 29 // TDC1103 linear CCD plunger sensor
mjr 100:1ff35c07217c 30 const int DMAch_TDC_ADC = 2; // ADC (analog input) sample transfer
mjr 55:4db125cd11a0 31
mjr 55:4db125cd11a0 32 // --------------------------------------------------------------
mjr 55:4db125cd11a0 33 //
mjr 55:4db125cd11a0 34 // Free channels - not currently assigned.
mjr 55:4db125cd11a0 35 //
mjr 55:4db125cd11a0 36 const int DMAch_Unused0 = 0;
mjr 55:4db125cd11a0 37
mjr 55:4db125cd11a0 38
mjr 47:df7a88cd249c 39 #endif