chkenv.c 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. /*
  2. * This file is part of FH8620 BSP for RT-Thread distribution.
  3. *
  4. * Copyright (c) 2016 Shanghai Fullhan Microelectronics Co., Ltd.
  5. * All rights reserved
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License along
  18. * with this program; if not, write to the Free Software Foundation, Inc.,
  19. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  20. *
  21. * Visit http://www.fullhan.com to get contact with Fullhan.
  22. *
  23. * Change Logs:
  24. * Date Author Notes
  25. */
  26. /*****************************************************************************
  27. * Include Section
  28. * add all #include here
  29. * those macro below should define....
  30. * or the dsp or isp lib will not be supported
  31. *****************************************************************************/
  32. #include <rtconfig.h>
  33. //#pragma comment ( linker, "/EXPORT: MyExportFunction = _MyExportFunctio" )
  34. //#pragma message
  35. //#warning RT_NAME_MAX=32
  36. //#error ....
  37. //#define yu_error(macro) #error ##macro
  38. /**************************
  39. *
  40. *
  41. * define value below.
  42. *
  43. *
  44. **************************/
  45. #if RT_NAME_MAX != 16
  46. #error "define RT_NAME_MAX 16"
  47. #endif
  48. #if RT_TICK_PER_SECOND != 100
  49. #warning "RT_TICK_PER_SECOND = 100"
  50. #endif
  51. #if RT_ALIGN_SIZE != 4
  52. #error "define RT_ALIGN_SIZE 4"
  53. #endif
  54. /**************************
  55. *
  56. *
  57. * should define below..
  58. *
  59. *
  60. **************************/
  61. #ifndef RT_USING_SEMAPHORE
  62. #error need define "RT_USING_SEMAPHORE"
  63. #endif
  64. #ifndef RT_USING_MUTEX
  65. #error need define "RT_USING_MUTEX"
  66. #endif
  67. #ifndef RT_USING_EVENT
  68. #error need define "RT_USING_EVENT"
  69. #endif
  70. #ifndef RT_USING_MAILBOX
  71. #error need define "RT_USING_MAILBOX"
  72. #endif
  73. #ifndef RT_USING_MESSAGEQUEUE
  74. #warning need define "RT_USING_MESSAGEQUEUE"
  75. #endif
  76. #ifndef RT_USING_MEMPOOL
  77. #warning need define "RT_USING_MEMPOOL"
  78. #endif
  79. #ifndef RT_USING_HEAP
  80. #error need define "RT_USING_HEAP"
  81. #endif
  82. #ifndef RT_USING_MEMHEAP
  83. #warning need define "RT_USING_MEMHEAP"
  84. #endif
  85. #ifndef RT_USING_DEVICE
  86. #error need define "RT_USING_DEVICE"
  87. #endif
  88. #ifndef RT_USING_CONSOLE
  89. #error need define "RT_USING_CONSOLE"
  90. #endif
  91. #ifndef RT_USING_FINSH
  92. #error need define "RT_USING_FINSH"
  93. #endif
  94. #ifndef RT_USING_I2C
  95. #error need define "RT_USING_I2C"
  96. #endif