Mirror with some correction

Dependencies:   mbed FastIO FastPWM USBDevice

Committer:
mjr
Date:
Thu Feb 18 07:32:20 2016 +0000
Revision:
47:df7a88cd249c
Child:
55:4db125cd11a0
3-channel linked DMA scheme for CCD image capture working

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 // PWM controllers
mjr 47:df7a88cd249c 19 //
mjr 47:df7a88cd249c 20 const int DMAch_TLC5940 = 0; // TLC5940 PWM controller chips
mjr 47:df7a88cd249c 21
mjr 47:df7a88cd249c 22
mjr 47:df7a88cd249c 23 // --------------------------------------------------------------
mjr 47:df7a88cd249c 24 //
mjr 47:df7a88cd249c 25 // Plunger Sensors
mjr 47:df7a88cd249c 26 //
mjr 47:df7a88cd249c 27 // Plunger sensors are mutually exclusive since there's only one
mjr 47:df7a88cd249c 28 // in any given system, so any channels assigned for one type of
mjr 47:df7a88cd249c 29 // sensor can be reused by other sensor types.
mjr 47:df7a88cd249c 30
mjr 47:df7a88cd249c 31 // TSL1410R CCD plunger sensor
mjr 47:df7a88cd249c 32 const int DMAch_CLKUP = 1; // Clock Up signal generator
mjr 47:df7a88cd249c 33 const int DMAch_ADC = 2; // ADC (analog input) sample transfer
mjr 47:df7a88cd249c 34 const int DMAch_CLKDN = 3; // Clock Down signal generator
mjr 47:df7a88cd249c 35
mjr 47:df7a88cd249c 36 #endif