includes.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. /****************************************Copyright (c)****************************************************
  2. **
  3. ** http://www.powermcu.com
  4. **
  5. **--------------File Info---------------------------------------------------------------------------------
  6. ** File name: includes.h
  7. ** Descriptions: includes.h for ucos
  8. **
  9. **--------------------------------------------------------------------------------------------------------
  10. ** Created by: AVRman
  11. ** Created date: 2010-11-9
  12. ** Version: v1.0
  13. ** Descriptions: The original version
  14. **
  15. **--------------------------------------------------------------------------------------------------------
  16. ** Modified by:
  17. ** Modified date:
  18. ** Version:
  19. ** Descriptions:
  20. **
  21. *********************************************************************************************************/
  22. #ifndef __INCLUDES_H__
  23. #define __INCLUDES_H__
  24. /* Includes ------------------------------------------------------------------*/
  25. #define OS_FIFOSZ 32 //16
  26. #include <stdio.h>
  27. #include <stdint.h>
  28. #include <string.h>
  29. #include <ctype.h>
  30. #include <stdlib.h>
  31. #include <stdarg.h>
  32. #include <math.h>
  33. #include "stdint.h"
  34. #define TRUE 0xffffffff
  35. #define FALSE 0x00000000
  36. #include <stm32f10x.h>
  37. typedef unsigned char u8_t; /* Unsigned 8 bit quantity */
  38. typedef signed char s8_t; /* Signed 8 bit quantity */
  39. typedef unsigned short u16_t; /* Unsigned 16 bit quantity */
  40. typedef signed short s16_t; /* Signed 16 bit quantity */
  41. typedef unsigned long u32_t; /* Unsigned 32 bit quantity */
  42. typedef signed long s32_t; /* Signed 32 bit quantity */
  43. typedef unsigned char INT8U; /* Unsigned 8 bit quantity */
  44. typedef unsigned char INT16U; /* Unsigned 8 bit quantity */
  45. #include "stm32f10x_conf.h"
  46. #include "stm32f10x_flash.h"
  47. #include "stm32f10x_pwr.h"
  48. #include "stm32f10x_iwdg.h"
  49. #include "stm32f10x_dma.h"
  50. #include "Serial.h"
  51. #include "id.h"
  52. #include "ProductPara.h"
  53. //操作系统、任务
  54. #include <rtl.h>
  55. #include "MainTask.h"
  56. #include "ModemTask.h"
  57. #include "WiredLanTask.h "
  58. //others
  59. extern U32 os_time;
  60. //消息队列
  61. #include "MsgQueue.h"
  62. //驱动相关
  63. #include "Modem.h"
  64. #include "Led.h"
  65. #include "crc.h"
  66. #include "W25Q64.h"
  67. //#include "GPS.h"
  68. //#include "Timer.h"
  69. //#include "pt.h"
  70. //#include "pt-timer.h"
  71. //应用相关
  72. //#include "MBCross.h"
  73. #include "WatchDog.h"
  74. #include "Modbus.h"
  75. #include "TcpProcess.h"
  76. #include "auth.h"
  77. //#include "checksum.h"
  78. //#include "ModemTcpComm.h"
  79. //#include "md5.h"
  80. //
  81. //---
  82. #endif
  83. /*********************************************************************************************************
  84. END FILE
  85. *********************************************************************************************************/