![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
n
Fork of LG by
Global.h@21:bc8c1cec3da6, 2016-02-03 (annotated)
- Committer:
- igor_v
- Date:
- Wed Feb 03 07:19:30 2016 +0000
- Revision:
- 21:bc8c1cec3da6
- Parent:
- 16:18e3fd7b92d0
?????????? ??????? ??????????, ???????? ??? ?????? ?????????? ??????????? ?????????.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
igor_v | 0:8ad47e2b6f00 | 1 | |
igor_v | 0:8ad47e2b6f00 | 2 | #ifndef Global_H |
igor_v | 0:8ad47e2b6f00 | 3 | #define Global_H |
igor_v | 0:8ad47e2b6f00 | 4 | |
igor_v | 0:8ad47e2b6f00 | 5 | |
igor_v | 0:8ad47e2b6f00 | 6 | #include "LPC17xx.h" |
igor_v | 0:8ad47e2b6f00 | 7 | |
igor_v | 0:8ad47e2b6f00 | 8 | #include "mathDSP.h" |
igor_v | 0:8ad47e2b6f00 | 9 | #include "InputOutput.h" |
igor_v | 0:8ad47e2b6f00 | 10 | #include "CyclesSync.h" |
igor_v | 0:8ad47e2b6f00 | 11 | #include "CntrlGLD.h" |
igor_v | 0:8ad47e2b6f00 | 12 | #include "stdlib.h" |
igor_v | 0:8ad47e2b6f00 | 13 | #include "SIP.h" |
igor_v | 0:8ad47e2b6f00 | 14 | |
igor_v | 0:8ad47e2b6f00 | 15 | #include "CntrlGLD.h" |
igor_v | 0:8ad47e2b6f00 | 16 | |
igor_v | 0:8ad47e2b6f00 | 17 | #include "Parameters.h" |
igor_v | 0:8ad47e2b6f00 | 18 | #include "el_lin.h" |
igor_v | 0:8ad47e2b6f00 | 19 | |
igor_v | 0:8ad47e2b6f00 | 20 | #include "CntrlGLD.h" |
igor_v | 0:8ad47e2b6f00 | 21 | |
igor_v | 0:8ad47e2b6f00 | 22 | |
igor_v | 0:8ad47e2b6f00 | 23 | #include "CntrlGLD.h" |
igor_v | 0:8ad47e2b6f00 | 24 | #include "commandset.h" |
igor_v | 0:8ad47e2b6f00 | 25 | |
igor_v | 0:8ad47e2b6f00 | 26 | |
igor_v | 0:8ad47e2b6f00 | 27 | |
igor_v | 0:8ad47e2b6f00 | 28 | #include "el_lin.h" |
igor_v | 0:8ad47e2b6f00 | 29 | #include "CyclesSync.h" |
igor_v | 0:8ad47e2b6f00 | 30 | #include "Parameters.h" |
igor_v | 0:8ad47e2b6f00 | 31 | #include "Dither_Reg.h" |
igor_v | 0:8ad47e2b6f00 | 32 | #include "commandset.h" |
igor_v | 0:8ad47e2b6f00 | 33 | #include "CntrlGLD.h" |
igor_v | 0:8ad47e2b6f00 | 34 | #include "InputOutput.h" |
igor_v | 0:8ad47e2b6f00 | 35 | |
igor_v | 0:8ad47e2b6f00 | 36 | |
igor_v | 0:8ad47e2b6f00 | 37 | |
igor_v | 0:8ad47e2b6f00 | 38 | #include "stdlib.h" |
igor_v | 0:8ad47e2b6f00 | 39 | #include "console.h" |
igor_v | 0:8ad47e2b6f00 | 40 | #include "vibro.h" |
igor_v | 0:8ad47e2b6f00 | 41 | #include "QEI.h" |
igor_v | 0:8ad47e2b6f00 | 42 | #include "MTimer.h" |
igor_v | 0:8ad47e2b6f00 | 43 | |
igor_v | 0:8ad47e2b6f00 | 44 | #include "SPI.h" |
igor_v | 0:8ad47e2b6f00 | 45 | #include "uart_m.h" |
igor_v | 0:8ad47e2b6f00 | 46 | #include "Command.h" |
igor_v | 0:8ad47e2b6f00 | 47 | |
igor_v | 0:8ad47e2b6f00 | 48 | |
igor_v | 0:8ad47e2b6f00 | 49 | #include "mathDSP.h" |
igor_v | 0:8ad47e2b6f00 | 50 | |
igor_v | 0:8ad47e2b6f00 | 51 | #include "CntrlGLD.h" |
igor_v | 0:8ad47e2b6f00 | 52 | #include "CyclesSync.h" |
igor_v | 0:8ad47e2b6f00 | 53 | #include "dspfns.h" |
igor_v | 0:8ad47e2b6f00 | 54 | #include "SIP.h" |
igor_v | 0:8ad47e2b6f00 | 55 | #include "el_lin.h" |
igor_v | 0:8ad47e2b6f00 | 56 | |
igor_v | 0:8ad47e2b6f00 | 57 | |
igor_v | 1:f2adcae3d304 | 58 | #include "InputOutput.h" |
igor_v | 1:f2adcae3d304 | 59 | #include "CyclesSync.h" |
igor_v | 1:f2adcae3d304 | 60 | #include "LPC17xx.h" |
igor_v | 1:f2adcae3d304 | 61 | //-------------------temp------- |
igor_v | 1:f2adcae3d304 | 62 | #include "el_lin.h" |
igor_v | 1:f2adcae3d304 | 63 | |
igor_v | 1:f2adcae3d304 | 64 | #include "QEI.h" |
igor_v | 1:f2adcae3d304 | 65 | #include "vibro.h" |
igor_v | 1:f2adcae3d304 | 66 | #include "MTimer.h" |
igor_v | 1:f2adcae3d304 | 67 | |
igor_v | 1:f2adcae3d304 | 68 | |
igor_v | 1:f2adcae3d304 | 69 | #include "mathDSP.h" |
igor_v | 1:f2adcae3d304 | 70 | #include "CyclesSync.h" |
igor_v | 1:f2adcae3d304 | 71 | #include "ThermoCalc.h" |
igor_v | 1:f2adcae3d304 | 72 | #include "CntrlGLD.h" |
igor_v | 1:f2adcae3d304 | 73 | #include "InputOutput.h" |
igor_v | 1:f2adcae3d304 | 74 | #include "ThermoCalc.h" |
igor_v | 1:f2adcae3d304 | 75 | #include "CyclesSync.h" |
igor_v | 1:f2adcae3d304 | 76 | #include "CntrlGLD.h" |
igor_v | 1:f2adcae3d304 | 77 | #include "InputOutput.h" |
igor_v | 1:f2adcae3d304 | 78 | |
igor_v | 1:f2adcae3d304 | 79 | |
igor_v | 1:f2adcae3d304 | 80 | #include "console.h" |
igor_v | 1:f2adcae3d304 | 81 | |
igor_v | 1:f2adcae3d304 | 82 | #include "CyclesSync.h" |
igor_v | 1:f2adcae3d304 | 83 | |
igor_v | 1:f2adcae3d304 | 84 | |
igor_v | 1:f2adcae3d304 | 85 | |
igor_v | 1:f2adcae3d304 | 86 | |
igor_v | 1:f2adcae3d304 | 87 | |
igor_v | 1:f2adcae3d304 | 88 | #include "InputOutput.h" |
igor_v | 1:f2adcae3d304 | 89 | #include "CyclesSync.h" |
igor_v | 1:f2adcae3d304 | 90 | #include "CntrlGLD.h" |
igor_v | 1:f2adcae3d304 | 91 | #include "stdlib.h" |
igor_v | 1:f2adcae3d304 | 92 | #include "SIP.h" |
igor_v | 1:f2adcae3d304 | 93 | #include "console.h" |
igor_v | 1:f2adcae3d304 | 94 | |
igor_v | 1:f2adcae3d304 | 95 | |
igor_v | 1:f2adcae3d304 | 96 | |
igor_v | 1:f2adcae3d304 | 97 | #include "mathDSP.h" |
igor_v | 1:f2adcae3d304 | 98 | #include "InputOutput.h" |
igor_v | 1:f2adcae3d304 | 99 | #include "CntrlGLD.h" |
igor_v | 1:f2adcae3d304 | 100 | |
igor_v | 1:f2adcae3d304 | 101 | |
igor_v | 1:f2adcae3d304 | 102 | #include "CyclesSync.h" |
igor_v | 1:f2adcae3d304 | 103 | #include "CntrlGLD.h" |
igor_v | 1:f2adcae3d304 | 104 | #include "el_lin.h" |
igor_v | 1:f2adcae3d304 | 105 | |
igor_v | 1:f2adcae3d304 | 106 | |
igor_v | 1:f2adcae3d304 | 107 | #include "commandset.h" |
igor_v | 1:f2adcae3d304 | 108 | #include "el_lin.h" |
igor_v | 1:f2adcae3d304 | 109 | #include "CyclesSync.h" |
igor_v | 1:f2adcae3d304 | 110 | #include "CntrlGLD.h" |
igor_v | 1:f2adcae3d304 | 111 | #include "InputOutput.h" |
igor_v | 1:f2adcae3d304 | 112 | #include "Parameters.h" |
igor_v | 1:f2adcae3d304 | 113 | |
igor_v | 1:f2adcae3d304 | 114 | |
igor_v | 1:f2adcae3d304 | 115 | |
igor_v | 1:f2adcae3d304 | 116 | |
igor_v | 0:8ad47e2b6f00 | 117 | |
igor_v | 0:8ad47e2b6f00 | 118 | |
igor_v | 0:8ad47e2b6f00 | 119 | |
igor_v | 0:8ad47e2b6f00 | 120 | #define BackLightOFF LPC_GPIO2->FIOSET =(1<<12); |
igor_v | 0:8ad47e2b6f00 | 121 | #define BackLightON LPC_GPIO2->FIOCLR =(1<<12); |
igor_v | 0:8ad47e2b6f00 | 122 | #define LightUpON LPC_GPIO0->FIOSET = (1<<4); |
igor_v | 0:8ad47e2b6f00 | 123 | #define LightUpOFF LPC_GPIO0->FIOCLR = (1<<4); |
igor_v | 0:8ad47e2b6f00 | 124 | |
igor_v | 0:8ad47e2b6f00 | 125 | #define TakeByte & 0xFF |
igor_v | 21:bc8c1cec3da6 | 126 | #define deltaDAC 11400.857 //ноль ЦАПа |
igor_v | 21:bc8c1cec3da6 | 127 | |
igor_v | 0:8ad47e2b6f00 | 128 | //#define K_DAC 0.843 |
igor_v | 0:8ad47e2b6f00 | 129 | extern float DACF, K_DAC; |
igor_v | 0:8ad47e2b6f00 | 130 | extern unsigned int VibroReg; |
igor_v | 0:8ad47e2b6f00 | 131 | extern void VibroPush(void); |
igor_v | 0:8ad47e2b6f00 | 132 | extern void VibroPull(void); |
igor_v | 0:8ad47e2b6f00 | 133 | extern void ButtonLightUP(void); |
igor_v | 0:8ad47e2b6f00 | 134 | extern unsigned long Global_Time, Time_UART,Time_Sec,Time_vibro,Time_1kHz; |
igor_v | 0:8ad47e2b6f00 | 135 | extern unsigned long MaxAmp; |
igor_v | 0:8ad47e2b6f00 | 136 | extern unsigned int LightUpCount,BackLightCount,secPuls; |
igor_v | 0:8ad47e2b6f00 | 137 | extern unsigned char BuffTemp[]; |
igor_v | 13:e2a1d18677b8 | 138 | extern unsigned char Time[]; |
igor_v | 15:f5191a1c3805 | 139 | extern unsigned int Event1Hz; |
igor_v | 15:f5191a1c3805 | 140 | extern unsigned int Event1K; |
igor_v | 15:f5191a1c3805 | 141 | extern unsigned int Event100K; |
igor_v | 15:f5191a1c3805 | 142 | extern unsigned int EventVibro; |
igor_v | 15:f5191a1c3805 | 143 | extern unsigned int Time1K; |
igor_v | 15:f5191a1c3805 | 144 | extern unsigned int Time100K; |
igor_v | 15:f5191a1c3805 | 145 | extern unsigned int Time1Hz; |
igor_v | 15:f5191a1c3805 | 146 | extern unsigned int Clock1Hz; |
igor_v | 16:18e3fd7b92d0 | 147 | extern unsigned int ShiftD; |
igor_v | 16:18e3fd7b92d0 | 148 | extern unsigned int ShiftL; |
igor_v | 16:18e3fd7b92d0 | 149 | #define StartShiftD 0x00000005 |
igor_v | 16:18e3fd7b92d0 | 150 | #define StartShiftL 0x0000000a |
igor_v | 0:8ad47e2b6f00 | 151 | |
igor_v | 0:8ad47e2b6f00 | 152 | |
igor_v | 1:f2adcae3d304 | 153 | //#ifndef Global_H |
igor_v | 1:f2adcae3d304 | 154 | //#define Global_H |
igor_v | 0:8ad47e2b6f00 | 155 | #endif // Global_H |
igor_v | 0:8ad47e2b6f00 | 156 |