drv_config.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /* Copyright (C) 2018 RDA Technologies Limited and/or its affiliates("RDA").
  2. * All rights reserved.
  3. *
  4. * This software is supplied "AS IS" without any warranties.
  5. * RDA assumes no responsibility or liability for the use of the software,
  6. * conveys no license or title under any patent, copyright, or mask work
  7. * right to the product. RDA reserves the right to make changes in the
  8. * software without notification. RDA also make no representation or
  9. * warranty that such application will be suitable for the specified use
  10. * without further testing or modification.
  11. */
  12. #ifndef _DRV_CONFIG_H_
  13. #define _DRV_CONFIG_H_
  14. // Auto generated. Don't edit it manually!
  15. /**
  16. * whether to use IFC for debughost RX
  17. */
  18. /* #undef CONFIG_DEBUGHOST_RX_USE_IFC */
  19. /**
  20. * debughost rx DMA size in bytes
  21. */
  22. /* #undef CONFIG_DEBUGHOST_RX_DMA_SIZE */
  23. /**
  24. * debughost rx buffer size in bytes
  25. *
  26. * This is the buffer before parsing host packet format.
  27. */
  28. #define CONFIG_DEBUGHOST_RX_BUF_SIZE 0x200
  29. /**
  30. * whether to support charger
  31. */
  32. #define CONFIG_SUPPORT_BATTERY_CHARGER
  33. /**
  34. * whether external flash is supported
  35. */
  36. /* #undef CONFIG_SUPPORT_EXT_FLASH */
  37. /**
  38. * host command engine packet size
  39. */
  40. #define CONFIG_HOST_CMD_ENGINE_MAX_PACKET_SIZE 0x2020
  41. /**
  42. * whether to reuse uart at blue screen
  43. */
  44. #define CONFIG_UART_BLUESCREEN_ENABLE
  45. /**
  46. * uart device to be reused at blue screen
  47. */
  48. #define CONFIG_UART_BLUESCREEN DRV_NAME_UART1
  49. /**
  50. * uart baud rate to be reused at blue screen
  51. */
  52. #define CONFIG_UART_BLUESCREEN_BAUD 921600
  53. /**
  54. * uart TX baud rate at adaptive mode, before baud rate is detected
  55. */
  56. #define CONFIG_UART_AUTOMODE_DEFAULT_BAUD 115200
  57. /**
  58. * whether USB is supported
  59. */
  60. #define CONFIG_USB_SUPPORT
  61. #ifdef CONFIG_USB_SUPPORT
  62. /**
  63. * usb connect timeout
  64. */
  65. #define CONFIG_USB_CONNECT_TIMEOUT 10000
  66. /**
  67. * usb debounce time in milliseconds before enumarating
  68. */
  69. #define CONFIG_USB_DETECT_DEBOUNCE_TIME 800
  70. /**
  71. * udc features, lower 8 bits for config->bmAttributes, higher are software defined
  72. */
  73. #define CONFIG_USB_DEVICE_CONTROLLER_FEATURE 0xE0
  74. #endif
  75. #endif