fork

Dependencies:   mbed

Fork of LG by igor Apu

Global.h

Committer:
igor_v
Date:
2016-02-05
Revision:
30:17c84ed091b3
Parent:
21:bc8c1cec3da6
Child:
40:8a6494f61326

File content as of revision 30:17c84ed091b3:


#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"
 
 
   
   
   



 





 
 
 
 
 




 
 
 


 
 
 


 
 
 
 
 
 







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

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

//#define  K_DAC             0.843
extern float DACF, K_DAC;
extern unsigned int VibroReg;
extern void VibroPush(void);
extern void VibroPull(void);
extern void ButtonLightUP(void);
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 unsigned int    ShiftD;
extern unsigned int    ShiftL;
    #define  StartShiftD         0x00000005
    #define  StartShiftL         0x0000000a


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