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 LGstaandart by
Diff: host/Source/App/Global.c
- Revision:
- 23:12e6183f04d4
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/host/Source/App/Global.c Wed Feb 03 10:44:42 2016 +0300
@@ -0,0 +1,25 @@
+#include "Global.h"
+#include "CntrlGLD.h"
+
+
+unsigned int VibroReg = 0; //ðåãèñòð ñîñòàÿíèÿ âèáðîïðèâîäà.
+unsigned long Global_Time=0, Time_UART=0,Time_Sec=0,Time_vibro=0,Time_1kHz=0;
+unsigned long MaxAmp=0;
+unsigned char BuffTemp[100];
+ void VibroPush(void)
+ {
+ VibroReg |= 0x1;
+ }
+ void VibroPull(void)
+ {
+ VibroReg |= 0x0;
+ }
+void ButtonLightUP(void)
+{
+ if ((secPuls>100)&&(pulse_Rq==1))
+ {
+ pulse_Rq=0;
+ LightUpCount=3000;
+ BackLightCount=5000;
+ }
+}
\ No newline at end of file
