fork

Dependencies:   mbed

Fork of LG by igor Apu

Global.h

Committer:
Kovalev_D
Date:
2016-03-24
Revision:
86:398da56ef751
Parent:
50:0e3d47f18a50
Child:
99:3d8f206ceac2

File content as of revision 86:398da56ef751:


#ifndef Global_H
#define Global_H


#include "LPC17xx.h"

#include "mathDSP.h"
#include "InputOutput.h"
#include "CyclesSync.h"
#include "CntrlGLD.h"
#include "stdlib.h"
#include "SIP.h"
#include "Parameters.h"
#include "el_lin.h"
#include "commandset.h"
#include "Dither_Reg.h"
 
#include "vibro.h"
#include "QEI.h"
#include "MTimer.h"

#include "SPI.h"
#include "uart_m.h"
#include "Command.h"
#include "dspfns.h"
#include "ThermoCalc.h"
#include "pin.h"
 




#define  BackLightON  LPC_GPIO2->FIOCLR  = (1<<12);
#define  BackLightOFF LPC_GPIO2->FIOSET  = (1<<12);

#define  LightUpON    LPC_GPIO0->FIOCLR = (1<<4);
#define  LightUpOFF   LPC_GPIO0->FIOSET = (1<<4);

#define  TakeByte         & 0xFF
#define  deltaDAC           11400.857  //ноль ЦАПа

//#define  K_DAC             0.843
extern float DACF, K_DAC;
extern unsigned int VibroReg;
extern unsigned long Global_Time, Time_UART,Time_Sec,Time_vibro,Time_1kHz;
extern unsigned long MaxAmp;
extern unsigned int  secPuls;
extern unsigned char BuffTemp[];
extern unsigned char Time[];
extern unsigned int    Event1Hz;
extern unsigned int    Event1K;  
extern unsigned int    Event100K;  
extern unsigned int    EventVibro;
extern unsigned int    Time1K;  
extern unsigned int    Time100K;  
extern unsigned int    Time1Hz;
extern unsigned int    Clock1Hz;  

extern void GLD_Init(void);
extern void ButtonLightUP(void);

//#ifndef Global_H
//#define Global_H
#endif // Global_H