user_func.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. #ifndef __USER_FUNC_H
  2. #define __USER_FUNC_H
  3. /*************************************************************************
  4. *
  5. * Used with ICCARM and AARM.
  6. *
  7. * (c) Copyright IAR Systems 2003
  8. *
  9. * File name : config.h
  10. * Description : Define common defenition
  11. *
  12. * History :
  13. * 1. Data : Feb 10, 2005
  14. * Author : Stanimir Bonev
  15. * Description : Create
  16. *
  17. * $Revision: 1.2 $
  18. **************************************************************************/
  19. #include <includes.h>
  20. #define BUTT_EVENT_1 1
  21. #define BUTT_EVENT_2 2
  22. #define BUTT_FLAG_1 0x10
  23. #define BUTT_FLAG_2 0x20
  24. #define BUTT_DEB 2 /* 20ms */
  25. #define LIGHT_ON 1
  26. #define LIGHT_OFF 0
  27. #define LIGHT_SLOW 1
  28. #define LIGHT_FAST 0
  29. #define LIGHT_OFF_VALUE 0
  30. #define LIGHT_ON_VALUE 0x3FF
  31. void GetTimeAndData (MEMU_STING_DEF * pVarArg,MEMU_IND_DEF * MenuIndex, MEMU_TIME_OUT_DEF * MenuTO);
  32. void ScreenSaverInit (MEMU_STING_DEF * pVarArg,MEMU_IND_DEF * MenuIndex, MEMU_TIME_OUT_DEF * MenuTO);
  33. void ScreenSaver (MEMU_STING_DEF * pVarArg,MEMU_IND_DEF * MenuIndex, MEMU_TIME_OUT_DEF * MenuTO);
  34. void SysTimeUpdate (void);
  35. void Alarm (void);
  36. LPC_INT8U GetButtonsEvent (void);
  37. void ButtonsInit (void);
  38. void SetSysTickFlag (void* arg);
  39. void LightCntr (LPC_BOOL Slow,LPC_BOOL On);
  40. void LightInit(void);
  41. void ADC_Init (MEMU_STING_DEF * pVarArg,MEMU_IND_DEF * MenuIndex, MEMU_TIME_OUT_DEF * MenuTO);
  42. void ADC_Measure (MEMU_STING_DEF * pVarArg,MEMU_IND_DEF * MenuIndex, MEMU_TIME_OUT_DEF * MenuTO);
  43. void IlluminationShow (MEMU_STING_DEF * pVarArg,MEMU_IND_DEF * MenuIndex, MEMU_TIME_OUT_DEF * MenuTO);
  44. void IlluminationModeCursorOn (MEMU_STING_DEF * pVarArg,MEMU_IND_DEF * MenuIndex, MEMU_TIME_OUT_DEF * MenuTO);
  45. void IlluminationNextMode (MEMU_STING_DEF * pVarArg,MEMU_IND_DEF * MenuIndex, MEMU_TIME_OUT_DEF * MenuTO);
  46. void CursorOff (MEMU_STING_DEF * pVarArg,MEMU_IND_DEF * MenuIndex, MEMU_TIME_OUT_DEF * MenuTO);
  47. extern volatile int TickSysFlag;
  48. extern int SysTimeUpdateFlag;
  49. extern int SysAlarmFlag;
  50. extern int TimeFormat;
  51. extern int DataFormat;
  52. extern int LightMode;
  53. #endif /* __USER_FUNC_H */