n

Dependencies:   mbed

Fork of LG by igor Apu

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Global.c Source File

Global.c

00001 #include "Global.h"
00002 
00003 
00004 
00005 unsigned int VibroReg = 0;   //регистр состаяния вибропривода.
00006 unsigned long Global_Time=0, Time_UART=0,Time_Sec=0,Time_vibro=0,Time_1kHz=0;
00007 unsigned long MaxAmp=0;
00008 unsigned char BuffTemp[100];
00009 unsigned char Time[100];
00010 unsigned int    Event1Hz    = 0;
00011 unsigned int    Event1K     = 0;  
00012 unsigned int    Event100K   = 0;  
00013 unsigned int    EventVibro  = 0;  
00014 unsigned int    Time1K      = 0;  
00015 unsigned int    Time100K    = 0; 
00016 unsigned int    Time1Hz     = 0;  
00017 unsigned int    Clock1Hz    = 0;  
00018 unsigned int    ShiftD      = 0;
00019 unsigned int    ShiftL      = 0;
00020 
00021 
00022 
00023         void VibroPush(void)
00024         {
00025             VibroReg |= 0x1;
00026         }
00027         void VibroPull(void)
00028         {
00029             VibroReg |= 0x0;
00030         }
00031 void ButtonLightUP(void)
00032 {
00033             if ((secPuls>100)&&(pulse_Rq==1))
00034              {
00035                  pulse_Rq=0;
00036                  LightUpCount=3000;
00037                  BackLightCount=5000;
00038              }
00039 }
00040 
00041 
00042 
00043 
00044