quec_cust_patch.h 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. /** @file
  2. quec_cust_patch.h
  3. @brief
  4. This file is used to define macro of patch for different Quectel Project.
  5. */
  6. /*================================================================
  7. Copyright (c) 2018 Quectel Wireless Solution, Co., Ltd. All Rights Reserved.
  8. Quectel Wireless Solution Proprietary and Confidential.
  9. =================================================================*/
  10. /*=================================================================
  11. EDIT HISTORY FOR MODULE
  12. This section contains comments describing changes made to the module.
  13. Notice that changes are listed in reverse chronological order.
  14. WHEN WHO WHAT, WHERE, WHY
  15. ------------ ------- -------------------------------------------------------------------------------
  16. 11/30/2018 Jensen Init version
  17. =================================================================*/
  18. /*=============================================================================================================================
  19. Patch List
  20. This section contains comments describing patch list to the module.
  21. Notice that changes are listed in reverse order.
  22. NO. PATCH NO. RELEASE TIME MERGE TIME WHO LIB CODE MACRO WHAT, WHERE, WHY
  23. --- ---------- ------------ ----------- --------- --- ----------- ---------------------------------------
  24. =============================================================================================================================*/
  25. #ifndef QUEC_CUST_PATCH_H
  26. #define QUEC_CUST_PATCH_H
  27. #include "QuecPrjName.h"
  28. #ifdef __cplusplus
  29. extern "C" {
  30. #endif
  31. /**************************** platform/bsp/rtos patch**************************/
  32. #if defined(__QUEC_OEM_VER_HZR__) || defined (__QUEC_OEM_VER_TY__)
  33. #define QUEC_PATCH_FACTORY_UPDATE 1
  34. #endif
  35. //add wifiscan SPCSS00750018
  36. #define QUEC_PATCH_WIFISCAN_RSSI 1
  37. #define QUEC_PATCH_SPI_DMA_IRQ 1
  38. #define QUEC_PATCH_SDMMC_WRITE_READ_BIG_FILE 1
  39. //SPCSS00934930,added by ryan.yi
  40. #define QUEC_PATCH_FLASH_SUSPEND 1
  41. //SPCSS01039199
  42. #define QUEC_PATCH_BOOT_CODE_CUT 1
  43. //1.休眠唤醒卡死patch 2.psram驱动能力不足导致CP dump
  44. #define QUEC_PATCH_SLEEP_PSRAM
  45. //修复休眠状态下,部分模块不断被usb唤醒的问题
  46. #define QUEC_PATCH_USB_AWAKE
  47. //SPCSS01121220 pmic reset方式重启后psram异常导致mmu使能时卡死
  48. //修复reset操作重新启动时在SPL中MMU使能时卡死的问题
  49. #define QUEC_PATCH_BOOT_RESET_MMU_PSRAM
  50. /**************************** AT COMMAND patch*********************************/
  51. /******************************** UART patch*********************************/
  52. //SPCSS00947793. add by kevin.wang
  53. #define QUEC_PATCH_UART_IFC
  54. //SPCSS01116459:自适应波特率计算不正确的原因是使用的时钟源不对:BM用的xtal_lp,DG用的RC26M
  55. //8850使用的是8811 的IP,自适应波特率最大限制到115200原因:展锐测试高波特率下有出现口不通的情况
  56. #define QUEC_PATCH_UART_AUTOBAUD
  57. /******************************** USB patch*********************************/
  58. //SPCSS00964927. add by kevin.wang
  59. #define QUEC_PATCH_USB_ENUM
  60. /******************************** PPP patch*********************************/
  61. /***************************** POWER_MANAGER patch******************************/
  62. //SPCSS00992639: cfun0下休眠20s后模块卡死不dump不吐log,类似关机,原因为看门狗导致
  63. //SPCSS00989972: cfun0下休眠后插入usb,20s后模块卡死不dump不吐log,类似关机,原因为看门狗导致
  64. #define QUEC_PATCH_WDT_SLEEP
  65. //SPCSS00992726: cplog从usb输出,cfun=1,qsclk=2下,耗流图有时候成阶梯状
  66. #define QUEC_PATCH_USB_CPLOG_SLEEP
  67. //SPCSS01094877: 压测开关机时,写flash发生dump, 汇编中看是从prvErase函数中跳到osiDelayUS时,PC指针值错误
  68. #define QUEC_PATCH_LINK_SRAM
  69. /******************************** NETWORK patch*********************************/
  70. /******************** SMS/PHB/CALL/STK/BIP/USSD/(U)SIM patch********************/
  71. /******************************** TCPIP patch*********************************/
  72. /******************************** FS patch*********************************/
  73. /******************************** AUDIO PATCH *****************************/
  74. #ifdef __cplusplus
  75. } /*"C" */
  76. #endif
  77. #endif