![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
forkd
Fork of LG2 by
Global.h@30:17c84ed091b3, 2016-02-05 (annotated)
- Committer:
- igor_v
- Date:
- Fri Feb 05 23:21:54 2016 +0000
- Revision:
- 30:17c84ed091b3
- Parent:
- 21:bc8c1cec3da6
- Child:
- 40:8a6494f61326
1
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 | #include "Parameters.h" |
igor_v | 0:8ad47e2b6f00 | 15 | #include "el_lin.h" |
igor_v | 30:17c84ed091b3 | 16 | #include "commandset.h" |
igor_v | 0:8ad47e2b6f00 | 17 | #include "Dither_Reg.h" |
igor_v | 30:17c84ed091b3 | 18 | |
igor_v | 0:8ad47e2b6f00 | 19 | #include "vibro.h" |
igor_v | 0:8ad47e2b6f00 | 20 | #include "QEI.h" |
igor_v | 0:8ad47e2b6f00 | 21 | #include "MTimer.h" |
igor_v | 0:8ad47e2b6f00 | 22 | |
igor_v | 0:8ad47e2b6f00 | 23 | #include "SPI.h" |
igor_v | 0:8ad47e2b6f00 | 24 | #include "uart_m.h" |
igor_v | 0:8ad47e2b6f00 | 25 | #include "Command.h" |
igor_v | 30:17c84ed091b3 | 26 | #include "dspfns.h" |
igor_v | 30:17c84ed091b3 | 27 | #include "ThermoCalc.h" |
igor_v | 30:17c84ed091b3 | 28 | |
igor_v | 30:17c84ed091b3 | 29 | |
igor_v | 30:17c84ed091b3 | 30 | |
igor_v | 30:17c84ed091b3 | 31 | |
igor_v | 30:17c84ed091b3 | 32 | |
igor_v | 0:8ad47e2b6f00 | 33 | |
igor_v | 0:8ad47e2b6f00 | 34 | |
igor_v | 1:f2adcae3d304 | 35 | |
igor_v | 1:f2adcae3d304 | 36 | |
igor_v | 1:f2adcae3d304 | 37 | |
igor_v | 1:f2adcae3d304 | 38 | |
igor_v | 1:f2adcae3d304 | 39 | |
igor_v | 1:f2adcae3d304 | 40 | |
igor_v | 1:f2adcae3d304 | 41 | |
igor_v | 30:17c84ed091b3 | 42 | |
igor_v | 30:17c84ed091b3 | 43 | |
igor_v | 30:17c84ed091b3 | 44 | |
igor_v | 30:17c84ed091b3 | 45 | |
igor_v | 30:17c84ed091b3 | 46 | |
igor_v | 30:17c84ed091b3 | 47 | |
igor_v | 1:f2adcae3d304 | 48 | |
igor_v | 1:f2adcae3d304 | 49 | |
igor_v | 1:f2adcae3d304 | 50 | |
igor_v | 30:17c84ed091b3 | 51 | |
igor_v | 30:17c84ed091b3 | 52 | |
igor_v | 30:17c84ed091b3 | 53 | |
igor_v | 1:f2adcae3d304 | 54 | |
igor_v | 1:f2adcae3d304 | 55 | |
igor_v | 30:17c84ed091b3 | 56 | |
igor_v | 30:17c84ed091b3 | 57 | |
igor_v | 30:17c84ed091b3 | 58 | |
igor_v | 1:f2adcae3d304 | 59 | |
igor_v | 1:f2adcae3d304 | 60 | |
igor_v | 30:17c84ed091b3 | 61 | |
igor_v | 30:17c84ed091b3 | 62 | |
igor_v | 30:17c84ed091b3 | 63 | |
igor_v | 30:17c84ed091b3 | 64 | |
igor_v | 30:17c84ed091b3 | 65 | |
igor_v | 30:17c84ed091b3 | 66 | |
igor_v | 1:f2adcae3d304 | 67 | |
igor_v | 1:f2adcae3d304 | 68 | |
igor_v | 1:f2adcae3d304 | 69 | |
igor_v | 1:f2adcae3d304 | 70 | |
igor_v | 0:8ad47e2b6f00 | 71 | |
igor_v | 0:8ad47e2b6f00 | 72 | |
igor_v | 0:8ad47e2b6f00 | 73 | |
igor_v | 0:8ad47e2b6f00 | 74 | #define BackLightOFF LPC_GPIO2->FIOSET =(1<<12); |
igor_v | 0:8ad47e2b6f00 | 75 | #define BackLightON LPC_GPIO2->FIOCLR =(1<<12); |
igor_v | 0:8ad47e2b6f00 | 76 | #define LightUpON LPC_GPIO0->FIOSET = (1<<4); |
igor_v | 0:8ad47e2b6f00 | 77 | #define LightUpOFF LPC_GPIO0->FIOCLR = (1<<4); |
igor_v | 0:8ad47e2b6f00 | 78 | |
igor_v | 0:8ad47e2b6f00 | 79 | #define TakeByte & 0xFF |
igor_v | 21:bc8c1cec3da6 | 80 | #define deltaDAC 11400.857 //ноль ЦАПа |
igor_v | 21:bc8c1cec3da6 | 81 | |
igor_v | 0:8ad47e2b6f00 | 82 | //#define K_DAC 0.843 |
igor_v | 0:8ad47e2b6f00 | 83 | extern float DACF, K_DAC; |
igor_v | 0:8ad47e2b6f00 | 84 | extern unsigned int VibroReg; |
igor_v | 0:8ad47e2b6f00 | 85 | extern void VibroPush(void); |
igor_v | 0:8ad47e2b6f00 | 86 | extern void VibroPull(void); |
igor_v | 0:8ad47e2b6f00 | 87 | extern void ButtonLightUP(void); |
igor_v | 0:8ad47e2b6f00 | 88 | extern unsigned long Global_Time, Time_UART,Time_Sec,Time_vibro,Time_1kHz; |
igor_v | 0:8ad47e2b6f00 | 89 | extern unsigned long MaxAmp; |
igor_v | 30:17c84ed091b3 | 90 | extern unsigned int secPuls; |
igor_v | 0:8ad47e2b6f00 | 91 | extern unsigned char BuffTemp[]; |
igor_v | 13:e2a1d18677b8 | 92 | extern unsigned char Time[]; |
igor_v | 15:f5191a1c3805 | 93 | extern unsigned int Event1Hz; |
igor_v | 15:f5191a1c3805 | 94 | extern unsigned int Event1K; |
igor_v | 15:f5191a1c3805 | 95 | extern unsigned int Event100K; |
igor_v | 15:f5191a1c3805 | 96 | extern unsigned int EventVibro; |
igor_v | 15:f5191a1c3805 | 97 | extern unsigned int Time1K; |
igor_v | 15:f5191a1c3805 | 98 | extern unsigned int Time100K; |
igor_v | 15:f5191a1c3805 | 99 | extern unsigned int Time1Hz; |
igor_v | 15:f5191a1c3805 | 100 | extern unsigned int Clock1Hz; |
igor_v | 16:18e3fd7b92d0 | 101 | extern unsigned int ShiftD; |
igor_v | 16:18e3fd7b92d0 | 102 | extern unsigned int ShiftL; |
igor_v | 16:18e3fd7b92d0 | 103 | #define StartShiftD 0x00000005 |
igor_v | 16:18e3fd7b92d0 | 104 | #define StartShiftL 0x0000000a |
igor_v | 0:8ad47e2b6f00 | 105 | |
igor_v | 0:8ad47e2b6f00 | 106 | |
igor_v | 1:f2adcae3d304 | 107 | //#ifndef Global_H |
igor_v | 1:f2adcae3d304 | 108 | //#define Global_H |
igor_v | 0:8ad47e2b6f00 | 109 | #endif // Global_H |
igor_v | 0:8ad47e2b6f00 | 110 |