hal_audio.c 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /*
  2. * BSD 2-Clause License
  3. * Copyright (c) 2022, LiteEMF
  4. * All rights reserved.
  5. * This software component is licensed by LiteEMF under BSD 2-Clause license,
  6. * the "License"; You may not use this file except in compliance with the
  7. * License. You may obtain a copy of the License at:
  8. * opensource.org/licenses/BSD-2-Clause
  9. *
  10. */
  11. /************************************************************************************************************
  12. ** Description:
  13. ************************************************************************************************************/
  14. #include "hw_config.h"
  15. #if API_AUDIO_ENABLE
  16. #include "api/audio/api_audio.h"
  17. #include "api/api_log.h"
  18. /******************************************************************************************************
  19. ** Defined
  20. *******************************************************************************************************/
  21. /******************************************************************************************************
  22. ** public Parameters
  23. *******************************************************************************************************/
  24. /******************************************************************************************************
  25. ** static Parameters
  26. *******************************************************************************************************/
  27. /*****************************************************************************************************
  28. ** static Function
  29. ******************************************************************************************************/
  30. /*****************************************************************************************************
  31. ** Function
  32. ******************************************************************************************************/
  33. /*******************************************************************
  34. ** Parameters:
  35. ** Returns:
  36. ** Description:
  37. *******************************************************************/
  38. void hal_audio_spk_set_vol(uint8_t id,uint16_t l_vol, uint16_t r_vol)
  39. {
  40. UNUSED_PARAMETER(id);
  41. UNUSED_PARAMETER(l_vol);
  42. UNUSED_PARAMETER(r_vol);
  43. }
  44. void hal_audio_mic_set_vol(uint8_t id,uint16_t mic_vol)
  45. {
  46. UNUSED_PARAMETER(id);
  47. UNUSED_PARAMETER(mic_vol);
  48. }
  49. void hal_audio_open_spk(uint8_t id,api_audio_t *paudio)
  50. {
  51. UNUSED_PARAMETER(id);
  52. UNUSED_PARAMETER(paudio);
  53. }
  54. void hal_audio_close_spk(uint8_t id)
  55. {
  56. UNUSED_PARAMETER(id);
  57. }
  58. void hal_audio_open_mic(uint8_t id,api_audio_t *paudio)
  59. {
  60. UNUSED_PARAMETER(id);
  61. UNUSED_PARAMETER(paudio);
  62. }
  63. void hal_audio_close_mic(uint8_t id)
  64. {
  65. UNUSED_PARAMETER(id);
  66. }
  67. bool hal_audio_init(uint8_t id,api_audio_t *paudio)
  68. {
  69. UNUSED_PARAMETER(id);
  70. UNUSED_PARAMETER(paudio);
  71. return true;
  72. }
  73. #endif