config.h 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. /*
  2. * Copyright (c) 2019, Chips&Media
  3. * All rights reserved.
  4. *
  5. * Redistribution and use in source and binary forms, with or without
  6. * modification, are permitted provided that the following conditions are met:
  7. *
  8. * 1. Redistributions of source code must retain the above copyright notice, this
  9. * list of conditions and the following disclaimer.
  10. * 2. Redistributions in binary form must reproduce the above copyright notice,
  11. * this list of conditions and the following disclaimer in the documentation
  12. * and/or other materials provided with the distribution.
  13. *
  14. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
  15. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  16. * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  17. * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
  18. * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  19. * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  20. * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  21. * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  22. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  23. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  24. */
  25. #ifndef __CONFIG_H__
  26. #define __CONFIG_H__
  27. #if defined(_WIN32) || defined(__WIN32__) || defined(_WIN64) || defined(WIN32) || defined(__MINGW32__)
  28. # define PLATFORM_WIN32
  29. #elif defined(linux) || defined(__linux) || defined(ANDROID)
  30. # define PLATFORM_LINUX
  31. #elif defined(unix) || defined(__unix)
  32. # define PLATFORM_QNX
  33. #else
  34. # define PLATFORM_NON_OS
  35. #endif
  36. #if defined(_MSC_VER)
  37. # include <windows.h>
  38. # define inline _inline
  39. #elif defined(__GNUC__)
  40. #elif defined(__ARMCC__)
  41. #else
  42. # error "Unknown compiler."
  43. #endif
  44. #define API_VERSION_MAJOR 5
  45. #define API_VERSION_MINOR 5
  46. #define API_VERSION_PATCH 60
  47. #define API_VERSION ((API_VERSION_MAJOR<<16) | (API_VERSION_MINOR<<8) | API_VERSION_PATCH)
  48. #if defined(PLATFORM_NON_OS) || defined (ANDROID) || defined(MFHMFT_EXPORTS) || defined(PLATFORM_QNX) || defined(CNM_SIM_PLATFORM)
  49. //#define SUPPORT_FFMPEG_DEMUX
  50. #else
  51. //#define SUPPORT_FFMPEG_DEMUX
  52. #endif
  53. //------------------------------------------------------------------------------
  54. // COMMON
  55. //------------------------------------------------------------------------------
  56. //#if defined(linux) || defined(__linux) || defined(ANDROID) || defined(CNM_FPGA_HAPS_INTERFACE)
  57. #define SUPPORT_MULTI_INST_INTR
  58. //#endif
  59. // do not define BIT_CODE_FILE_PATH in case of multiple product support. because wave410 and coda980 has different firmware binary format.
  60. #define CORE_0_BIT_CODE_FILE_PATH "coda960.out" // for coda960
  61. #define CORE_1_BIT_CODE_FILE_PATH "coda980.out" // for coda980
  62. #define CORE_2_BIT_CODE_FILE_PATH "picasso.bin" // for wave510
  63. #define CORE_4_BIT_CODE_FILE_PATH "millet.bin" // for wave520
  64. #define CORE_5_BIT_CODE_FILE_PATH "kepler.bin" // for wave515
  65. #define CORE_6_BIT_CODE_FILE_PATH "chagall.bin" // for wave521
  66. #define CORE_7_BIT_CODE_FILE_PATH "vincent.bin" // for wave517
  67. //------------------------------------------------------------------------------
  68. // OMX
  69. //------------------------------------------------------------------------------
  70. //------------------------------------------------------------------------------
  71. // WAVE521C
  72. //------------------------------------------------------------------------------
  73. //#define SUPPORT_LOOK_AHEAD_RC
  74. //------------------------------------------------------------------------------
  75. // WAVE511
  76. //------------------------------------------------------------------------------
  77. //------------------------------------------------------------------------------
  78. // WAVE517
  79. //------------------------------------------------------------------------------
  80. //#define SUPPORT_SW_UART
  81. //#define SUPPORT_SW_UART_V2 // WAVE511 or WAVE521C
  82. #endif /* __CONFIG_H__ */