![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
forkd
Fork of LGstaandart by
Global.c@0:8ad47e2b6f00, 2016-01-30 (annotated)
- Committer:
- igor_v
- Date:
- Sat Jan 30 13:00:39 2016 +0000
- Revision:
- 0:8ad47e2b6f00
- Child:
- 13:e2a1d18677b8
2016_01_30;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
igor_v | 0:8ad47e2b6f00 | 1 | #include "Global.h" |
igor_v | 0:8ad47e2b6f00 | 2 | |
igor_v | 0:8ad47e2b6f00 | 3 | |
igor_v | 0:8ad47e2b6f00 | 4 | |
igor_v | 0:8ad47e2b6f00 | 5 | unsigned int VibroReg = 0; //������� ��������� ������������. |
igor_v | 0:8ad47e2b6f00 | 6 | unsigned long Global_Time=0, Time_UART=0,Time_Sec=0,Time_vibro=0,Time_1kHz=0; |
igor_v | 0:8ad47e2b6f00 | 7 | unsigned long MaxAmp=0; |
igor_v | 0:8ad47e2b6f00 | 8 | unsigned char BuffTemp[100]; |
igor_v | 0:8ad47e2b6f00 | 9 | void VibroPush(void) |
igor_v | 0:8ad47e2b6f00 | 10 | { |
igor_v | 0:8ad47e2b6f00 | 11 | VibroReg |= 0x1; |
igor_v | 0:8ad47e2b6f00 | 12 | } |
igor_v | 0:8ad47e2b6f00 | 13 | void VibroPull(void) |
igor_v | 0:8ad47e2b6f00 | 14 | { |
igor_v | 0:8ad47e2b6f00 | 15 | VibroReg |= 0x0; |
igor_v | 0:8ad47e2b6f00 | 16 | } |
igor_v | 0:8ad47e2b6f00 | 17 | void ButtonLightUP(void) |
igor_v | 0:8ad47e2b6f00 | 18 | { |
igor_v | 0:8ad47e2b6f00 | 19 | if ((secPuls>100)&&(pulse_Rq==1)) |
igor_v | 0:8ad47e2b6f00 | 20 | { |
igor_v | 0:8ad47e2b6f00 | 21 | pulse_Rq=0; |
igor_v | 0:8ad47e2b6f00 | 22 | LightUpCount=3000; |
igor_v | 0:8ad47e2b6f00 | 23 | BackLightCount=5000; |
igor_v | 0:8ad47e2b6f00 | 24 | } |
igor_v | 0:8ad47e2b6f00 | 25 | } |
igor_v | 0:8ad47e2b6f00 | 26 | |
igor_v | 0:8ad47e2b6f00 | 27 | |
igor_v | 0:8ad47e2b6f00 | 28 | |
igor_v | 0:8ad47e2b6f00 | 29 | |
igor_v | 0:8ad47e2b6f00 | 30 |