audio_conf.h 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /**
  2. **************************************************************************
  3. * @file audio_conf.h
  4. * @version v2.0.6
  5. * @date 2021-12-31
  6. * @brief usb audio config
  7. **************************************************************************
  8. * Copyright notice & Disclaimer
  9. *
  10. * The software Board Support Package (BSP) that is made available to
  11. * download from Artery official website is the copyrighted work of Artery.
  12. * Artery authorizes customers to use, copy, and distribute the BSP
  13. * software and its related documentation for the purpose of design and
  14. * development in conjunction with Artery microcontrollers. Use of the
  15. * software is governed by this copyright notice and the following disclaimer.
  16. *
  17. * THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES,
  18. * GUARANTEES OR REPRESENTATIONS OF ANY KIND. ARTERY EXPRESSLY DISCLAIMS,
  19. * TO THE FULLEST EXTENT PERMITTED BY LAW, ALL EXPRESS, IMPLIED OR
  20. * STATUTORY OR OTHER WARRANTIES, GUARANTEES OR REPRESENTATIONS,
  21. * INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY,
  22. * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT.
  23. *
  24. **************************************************************************
  25. */
  26. /* define to prevent recursive inclusion -------------------------------------*/
  27. #ifndef __AUDIO_CONF_H
  28. #define __AUDIO_CONF_H
  29. #ifdef __cplusplus
  30. extern "C" {
  31. #endif
  32. /** @addtogroup AT32F403A_407_middlewares_usbd_class
  33. * @{
  34. */
  35. /** @addtogroup USB_audio_class
  36. * @{
  37. */
  38. /** @defgroup USB_device_audio_config_definition
  39. * @{
  40. */
  41. #define AUDIO_SUPPORT_SPK 1
  42. #define AUDIO_SUPPORT_MIC 1
  43. #define AUDIO_SUPPORT_FEEDBACK 1
  44. #define AUDIO_SUPPORT_FREQ_16K 1
  45. #define AUDIO_SUPPORT_FREQ_48K 1
  46. #define AUDIO_SUPPORT_FREQ (AUDIO_SUPPORT_FREQ_16K + \
  47. AUDIO_SUPPORT_FREQ_48K \
  48. )
  49. #define AUDIO_FREQ_16K 16000
  50. #define AUDIO_FREQ_48K 48000
  51. #define AUDIO_BITW_16 16
  52. #define AUDIO_MIC_CHANEL_NUM 2
  53. #define AUDIO_MIC_DEFAULT_BITW AUDIO_BITW_16
  54. #define AUDIO_SPK_CHANEL_NUM 2
  55. #define AUDIO_SPK_DEFAULT_BITW AUDIO_BITW_16
  56. #define AUDIO_SUPPORT_MAX_FREQ 48
  57. #define AUDIO_DEFAULT_FREQ AUDIO_FREQ_48K
  58. #define AUDIO_DEFAULT_BITW AUDIO_BITW_16
  59. /**
  60. * @}
  61. */
  62. /**
  63. * @}
  64. */
  65. /**
  66. * @}
  67. */
  68. #ifdef __cplusplus
  69. }
  70. #endif
  71. #endif