includes.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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 <string.h>
  28. #include <ctype.h>
  29. #include <stdlib.h>
  30. #include <stdarg.h>
  31. #include <math.h>
  32. #include "stdint.h"
  33. #define TRUE 0xffffffff
  34. #define FALSE 0x00000000
  35. #include <stm32f10x.h>
  36. typedef unsigned char u8_t; /* Unsigned 8 bit quantity */
  37. typedef signed char s8_t; /* Signed 8 bit quantity */
  38. typedef unsigned short u16_t; /* Unsigned 16 bit quantity */
  39. typedef signed short s16_t; /* Signed 16 bit quantity */
  40. typedef unsigned long u32_t; /* Unsigned 32 bit quantity */
  41. typedef signed long s32_t; /* Signed 32 bit quantity */
  42. typedef unsigned char INT8U; /* Unsigned 8 bit quantity */
  43. typedef unsigned char INT16U; /* Unsigned 8 bit quantity */
  44. #include "stm32f10x_conf.h"
  45. #include "stm32f10x_flash.h"
  46. #include "stm32f10x_pwr.h"
  47. #include "stm32f10x_iwdg.h"
  48. #include "stm32f10x_dma.h"
  49. #include "Serial.h"
  50. #include "id.h"
  51. #include "ProductPara.h"
  52. //操作系统、任务
  53. #include <rtl.h>
  54. #include "MainTask.h"
  55. #include "ModemTask.h"
  56. #include "WiredLanTask.h"
  57. //others
  58. extern U32 os_time;
  59. //消息队列
  60. #include "MsgQueue.h"
  61. #include "LoopQueue.h"
  62. //驱动相关
  63. #include "Modem.h"
  64. #include "Led.h"
  65. #include "crc.h"
  66. #include "GPS.h"
  67. #include "AT25DF.h"
  68. #include "Storage.h"
  69. #include "Timer.h"
  70. #include "pt.h"
  71. #include "pt-timer.h"
  72. //应用相关
  73. #include "Storage.h"
  74. #include "WatchDog.h"
  75. #include "checksum.h"
  76. #include "MyFoTa.h"
  77. #include "md5.h"
  78. #include "ProtocolPack.h"
  79. #include "RTC.h"
  80. #include "MBCross.h"
  81. #include "authNew.h"
  82. //---
  83. #endif
  84. /*********************************************************************************************************
  85. END FILE
  86. *********************************************************************************************************/