![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
forkd
Fork of LG2 by
host/Source/App/Global.c@23:12e6183f04d4, 2016-02-03 (annotated)
- Committer:
- Kovalev_D
- Date:
- Wed Feb 03 10:44:42 2016 +0300
- Revision:
- 23:12e6183f04d4
[thyz
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Kovalev_D |
23:12e6183f04d4 | 1 | #include "Global.h" |
Kovalev_D |
23:12e6183f04d4 | 2 | #include "CntrlGLD.h" |
Kovalev_D |
23:12e6183f04d4 | 3 | |
Kovalev_D |
23:12e6183f04d4 | 4 | |
Kovalev_D |
23:12e6183f04d4 | 5 | unsigned int VibroReg = 0; //ðåãèñòð ñîñòàÿíèÿ âèáðîïðèâîäà. |
Kovalev_D |
23:12e6183f04d4 | 6 | unsigned long Global_Time=0, Time_UART=0,Time_Sec=0,Time_vibro=0,Time_1kHz=0; |
Kovalev_D |
23:12e6183f04d4 | 7 | unsigned long MaxAmp=0; |
Kovalev_D |
23:12e6183f04d4 | 8 | unsigned char BuffTemp[100]; |
Kovalev_D |
23:12e6183f04d4 | 9 | void VibroPush(void) |
Kovalev_D |
23:12e6183f04d4 | 10 | { |
Kovalev_D |
23:12e6183f04d4 | 11 | VibroReg |= 0x1; |
Kovalev_D |
23:12e6183f04d4 | 12 | } |
Kovalev_D |
23:12e6183f04d4 | 13 | void VibroPull(void) |
Kovalev_D |
23:12e6183f04d4 | 14 | { |
Kovalev_D |
23:12e6183f04d4 | 15 | VibroReg |= 0x0; |
Kovalev_D |
23:12e6183f04d4 | 16 | } |
Kovalev_D |
23:12e6183f04d4 | 17 | void ButtonLightUP(void) |
Kovalev_D |
23:12e6183f04d4 | 18 | { |
Kovalev_D |
23:12e6183f04d4 | 19 | if ((secPuls>100)&&(pulse_Rq==1)) |
Kovalev_D |
23:12e6183f04d4 | 20 | { |
Kovalev_D |
23:12e6183f04d4 | 21 | pulse_Rq=0; |
Kovalev_D |
23:12e6183f04d4 | 22 | LightUpCount=3000; |
Kovalev_D |
23:12e6183f04d4 | 23 | BackLightCount=5000; |
Kovalev_D |
23:12e6183f04d4 | 24 | } |
Kovalev_D |
23:12e6183f04d4 | 25 | } |