Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of LG by
Global.h@86:398da56ef751, 2016-03-24 (annotated)
- Committer:
- Kovalev_D
- Date:
- Thu Mar 24 08:20:43 2016 +0000
- Revision:
- 86:398da56ef751
- Parent:
- 50:0e3d47f18a50
- Child:
- 99:3d8f206ceac2
GLD_Init
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 | 28:17c84ed091b3 | 16 | #include "commandset.h" |
igor_v | 0:8ad47e2b6f00 | 17 | #include "Dither_Reg.h" |
igor_v | 28: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 | 28:17c84ed091b3 | 26 | #include "dspfns.h" |
igor_v | 28:17c84ed091b3 | 27 | #include "ThermoCalc.h" |
Kovalev_D | 40:8a6494f61326 | 28 | #include "pin.h" |
igor_v | 28:17c84ed091b3 | 29 | |
igor_v | 1:f2adcae3d304 | 30 | |
igor_v | 1:f2adcae3d304 | 31 | |
igor_v | 0:8ad47e2b6f00 | 32 | |
igor_v | 0:8ad47e2b6f00 | 33 | |
Kovalev_D | 50:0e3d47f18a50 | 34 | #define BackLightON LPC_GPIO2->FIOCLR = (1<<12); |
Kovalev_D | 50:0e3d47f18a50 | 35 | #define BackLightOFF LPC_GPIO2->FIOSET = (1<<12); |
igor_v | 0:8ad47e2b6f00 | 36 | |
Kovalev_D | 50:0e3d47f18a50 | 37 | #define LightUpON LPC_GPIO0->FIOCLR = (1<<4); |
Kovalev_D | 50:0e3d47f18a50 | 38 | #define LightUpOFF LPC_GPIO0->FIOSET = (1<<4); |
igor_v | 0:8ad47e2b6f00 | 39 | |
igor_v | 0:8ad47e2b6f00 | 40 | #define TakeByte & 0xFF |
igor_v | 21:bc8c1cec3da6 | 41 | #define deltaDAC 11400.857 //ноль ЦАПа |
igor_v | 21:bc8c1cec3da6 | 42 | |
igor_v | 0:8ad47e2b6f00 | 43 | //#define K_DAC 0.843 |
igor_v | 0:8ad47e2b6f00 | 44 | extern float DACF, K_DAC; |
igor_v | 0:8ad47e2b6f00 | 45 | extern unsigned int VibroReg; |
igor_v | 0:8ad47e2b6f00 | 46 | extern unsigned long Global_Time, Time_UART,Time_Sec,Time_vibro,Time_1kHz; |
igor_v | 0:8ad47e2b6f00 | 47 | extern unsigned long MaxAmp; |
igor_v | 28:17c84ed091b3 | 48 | extern unsigned int secPuls; |
igor_v | 0:8ad47e2b6f00 | 49 | extern unsigned char BuffTemp[]; |
igor_v | 13:e2a1d18677b8 | 50 | extern unsigned char Time[]; |
igor_v | 15:f5191a1c3805 | 51 | extern unsigned int Event1Hz; |
igor_v | 15:f5191a1c3805 | 52 | extern unsigned int Event1K; |
igor_v | 15:f5191a1c3805 | 53 | extern unsigned int Event100K; |
igor_v | 15:f5191a1c3805 | 54 | extern unsigned int EventVibro; |
igor_v | 15:f5191a1c3805 | 55 | extern unsigned int Time1K; |
igor_v | 15:f5191a1c3805 | 56 | extern unsigned int Time100K; |
igor_v | 15:f5191a1c3805 | 57 | extern unsigned int Time1Hz; |
igor_v | 15:f5191a1c3805 | 58 | extern unsigned int Clock1Hz; |
Kovalev_D | 50:0e3d47f18a50 | 59 | |
Kovalev_D | 86:398da56ef751 | 60 | extern void GLD_Init(void); |
Kovalev_D | 86:398da56ef751 | 61 | extern void ButtonLightUP(void); |
igor_v | 0:8ad47e2b6f00 | 62 | |
igor_v | 1:f2adcae3d304 | 63 | //#ifndef Global_H |
igor_v | 1:f2adcae3d304 | 64 | //#define Global_H |
igor_v | 0:8ad47e2b6f00 | 65 | #endif // Global_H |
igor_v | 0:8ad47e2b6f00 | 66 |