ohpoc.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #ifndef __OHPOC_H__
  2. #define __OHPOC_H__
  3. #include "lsapi_types.h"
  4. #include "lsapi_event.h"
  5. #define OHPOC_APP_NAME "D29V"
  6. //#define OHPOC_APP_NAME "RTL-TEST"
  7. #define OHPOC_VERSION "03012" //外部OCPU 应用维护
  8. #define OHPOC_MODLE "M5700" //作为OPEN时,此值用于FOTA升级标识使用
  9. #define OHPOC_CUST OHPOC_APP_NAME //作为OPEN时,此值用于FOTA升级标识使用
  10. #define OHPOC_POC_PLATFORM "ZZD"
  11. #define CUSTOMER_CODE 1
  12. #define APP_IP "47.102.100.67"
  13. #define APP_PROT 12301
  14. #define ZZD_ID "123456"
  15. #define ZZD_PWD "123456"
  16. #define ZZD_IP "0.0.0.0"
  17. #define TONEFRE 880
  18. #define USE_LEFT_MOVING
  19. //#define DEVELOP_MODE
  20. //can not be modify
  21. #define OHPOC_EVENT_BASE (LS_API_EV_BASE+100)
  22. #define OHPOC_EVENT_USB (OHPOC_EVENT_BASE+1)
  23. #define OHPOC_EVENT_KEY_NOR (OHPOC_EVENT_BASE+2)
  24. #define OHPOC_EVENT_MAIN (OHPOC_EVENT_BASE+3)
  25. #define OHPOC_EVENT_ENCODE (OHPOC_EVENT_BASE+4)
  26. #define OHPOC_EVENT_BLERING (OHPOC_EVENT_BASE+5)
  27. #define OHPOC_EVENT_UART1_RNE (OHPOC_EVENT_BASE+6)
  28. char *getOhpocVersion(void);
  29. char *getOhpocModle(void);
  30. char *getOhpocCust(void);
  31. //鍏跺畠鍙敤鎺ュ彛
  32. typedef struct{
  33. unsigned short year;
  34. unsigned char month;
  35. unsigned char day;
  36. unsigned char hour;
  37. unsigned char min;
  38. unsigned char sec;
  39. unsigned char week;
  40. }MY_CLOCK;
  41. MY_CLOCK My_Clock;
  42. char *ohpocGetIMEI(void);
  43. void ohpocGetClock(MY_CLOCK *myclock);
  44. #endif