![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
forkd
Fork of LG2 by
Global.h@200:1df682165694, 2016-10-20 (annotated)
- Committer:
- Kovalev_D
- Date:
- Thu Oct 20 11:38:22 2016 +0000
- Revision:
- 200:1df682165694
- Parent:
- 197:7a05523bf588
temp;
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 | |
Kovalev_D | 170:d099c3025f87 | 5 | //#define MAX_QEI_CNT 2147483646 |
Kovalev_D | 197:7a05523bf588 | 6 | #include "LPC17xx.h" |
igor_v | 0:8ad47e2b6f00 | 7 | #include "InputOutput.h" |
Kovalev_D | 200:1df682165694 | 8 | |
igor_v | 0:8ad47e2b6f00 | 9 | #include "stdlib.h" |
Kovalev_D | 200:1df682165694 | 10 | |
Kovalev_D | 200:1df682165694 | 11 | |
Kovalev_D | 200:1df682165694 | 12 | |
Kovalev_D | 197:7a05523bf588 | 13 | |
Kovalev_D | 132:2c7bec5cf6fe | 14 | |
Kovalev_D | 132:2c7bec5cf6fe | 15 | #include "IAP.h" |
igor_v | 0:8ad47e2b6f00 | 16 | #include "vibro.h" |
igor_v | 0:8ad47e2b6f00 | 17 | #include "QEI.h" |
igor_v | 0:8ad47e2b6f00 | 18 | #include "MTimer.h" |
igor_v | 0:8ad47e2b6f00 | 19 | |
igor_v | 0:8ad47e2b6f00 | 20 | #include "SPI.h" |
igor_v | 0:8ad47e2b6f00 | 21 | #include "uart_m.h" |
igor_v | 0:8ad47e2b6f00 | 22 | #include "Command.h" |
igor_v | 30:17c84ed091b3 | 23 | #include "dspfns.h" |
Kovalev_D | 200:1df682165694 | 24 | |
Kovalev_D | 40:8a6494f61326 | 25 | #include "pin.h" |
igor_v | 30:17c84ed091b3 | 26 | |
igor_v | 1:f2adcae3d304 | 27 | |
igor_v | 1:f2adcae3d304 | 28 | |
igor_v | 0:8ad47e2b6f00 | 29 | |
Kovalev_D | 50:0e3d47f18a50 | 30 | #define BackLightON LPC_GPIO2->FIOCLR = (1<<12); |
Kovalev_D | 50:0e3d47f18a50 | 31 | #define BackLightOFF LPC_GPIO2->FIOSET = (1<<12); |
igor_v | 0:8ad47e2b6f00 | 32 | |
Kovalev_D | 188:4c523cc373cc | 33 | #define LightUpON LPC_GPIO0->FIOSET = (1<<4); |
Kovalev_D | 188:4c523cc373cc | 34 | #define LightUpOFF LPC_GPIO0->FIOCLR = (1<<4); |
igor_v | 0:8ad47e2b6f00 | 35 | |
igor_v | 0:8ad47e2b6f00 | 36 | #define TakeByte & 0xFF |
igor_v | 21:bc8c1cec3da6 | 37 | #define deltaDAC 11400.857 //ноль ЦАПа |
igor_v | 21:bc8c1cec3da6 | 38 | |
igor_v | 0:8ad47e2b6f00 | 39 | //#define K_DAC 0.843 |
igor_v | 0:8ad47e2b6f00 | 40 | extern float DACF, K_DAC; |
igor_v | 0:8ad47e2b6f00 | 41 | extern unsigned int VibroReg; |
igor_v | 0:8ad47e2b6f00 | 42 | extern unsigned long Global_Time, Time_UART,Time_Sec,Time_vibro,Time_1kHz; |
Kovalev_D | 99:3d8f206ceac2 | 43 | extern int MaxAmp; |
Kovalev_D | 139:1716152517aa | 44 | extern unsigned int secPuls; |
Kovalev_D | 139:1716152517aa | 45 | extern unsigned char BuffTemp[]; |
Kovalev_D | 139:1716152517aa | 46 | extern unsigned char Time[]; |
Kovalev_D | 139:1716152517aa | 47 | |
Kovalev_D | 197:7a05523bf588 | 48 | extern unsigned int Time250Hz; |
Kovalev_D | 197:7a05523bf588 | 49 | extern unsigned int Event250Hz; |
Kovalev_D | 197:7a05523bf588 | 50 | extern unsigned int EventMod; |
igor_v | 15:f5191a1c3805 | 51 | extern unsigned int Event1Hz; |
Kovalev_D | 124:9ae09249f842 | 52 | extern unsigned int Event500Hz; |
igor_v | 15:f5191a1c3805 | 53 | extern unsigned int Event1K; |
igor_v | 15:f5191a1c3805 | 54 | extern unsigned int Event100K; |
igor_v | 15:f5191a1c3805 | 55 | extern unsigned int EventVibro; |
igor_v | 15:f5191a1c3805 | 56 | extern unsigned int Time1K; |
igor_v | 15:f5191a1c3805 | 57 | extern unsigned int Time100K; |
igor_v | 15:f5191a1c3805 | 58 | extern unsigned int Time1Hz; |
Kovalev_D | 124:9ae09249f842 | 59 | extern unsigned int Time500Hz; |
igor_v | 15:f5191a1c3805 | 60 | extern unsigned int Clock1Hz; |
Kovalev_D | 134:caf4c9cd5052 | 61 | extern __asm void boot_jump( uint32_t address ); |
Kovalev_D | 86:398da56ef751 | 62 | extern void GLD_Init(void); |
Kovalev_D | 86:398da56ef751 | 63 | extern void ButtonLightUP(void); |
igor_v | 0:8ad47e2b6f00 | 64 | |
igor_v | 1:f2adcae3d304 | 65 | //#ifndef Global_H |
igor_v | 1:f2adcae3d304 | 66 | //#define Global_H |
igor_v | 0:8ad47e2b6f00 | 67 | #endif // Global_H |
igor_v | 0:8ad47e2b6f00 | 68 |