comparison projects/d-box/render.cpp @ 48:42a683058b6a newapi

Documentation updates, and move some defines from BeagleRT.h into specific projects where they are used
author andrewm
date Thu, 28 May 2015 17:23:33 -0400
parents 06f93bef7dd2
children be427da6fb9c
comparison
equal deleted inserted replaced
47:643cbee74eda 48:42a683058b6a
16 #include <assert.h> 16 #include <assert.h>
17 #include <cmath> 17 #include <cmath>
18 #include <vector> 18 #include <vector>
19 19
20 #undef DBOX_CAPE_TEST 20 #undef DBOX_CAPE_TEST
21
22 // Mappings from pin numbers on PCB to actual DAC channels
23 // This gives the DAC and ADC connectors the same effective pinout
24 #define DAC_PIN0 6
25 #define DAC_PIN1 4
26 #define DAC_PIN2 2
27 #define DAC_PIN3 0
28 #define DAC_PIN4 1
29 #define DAC_PIN5 3
30 #define DAC_PIN6 5
31 #define DAC_PIN7 7
32
33 #define ADC_PIN0 0
34 #define ADC_PIN1 1
35 #define ADC_PIN2 2
36 #define ADC_PIN3 3
37 #define ADC_PIN4 4
38 #define ADC_PIN5 5
39 #define ADC_PIN6 6
40 #define ADC_PIN7 7
41
21 42
22 #define N_OCT 4.0 // maximum number of octaves on sensor 1 43 #define N_OCT 4.0 // maximum number of octaves on sensor 1
23 44
24 extern vector<OscillatorBank*> gOscBanks; 45 extern vector<OscillatorBank*> gOscBanks;
25 extern int gCurrentOscBank; 46 extern int gCurrentOscBank;