hal_adc.c 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. #include "hw_board.h"
  16. #ifdef HW_ADC_MAP
  17. #include "api/api_adc.h"
  18. /******************************************************************************************************
  19. ** Defined
  20. *******************************************************************************************************/
  21. /******************************************************************************************************
  22. ** static Parameters
  23. *******************************************************************************************************/
  24. /******************************************************************************************************
  25. ** public Parameters
  26. *******************************************************************************************************/
  27. /*****************************************************************************************************
  28. ** static Function
  29. ******************************************************************************************************/
  30. /*****************************************************************************************************
  31. ** Function
  32. ******************************************************************************************************/
  33. /*******************************************************************
  34. ** Parameters:
  35. ** Returns:
  36. ** Description:
  37. *******************************************************************/
  38. uint16_t hal_adc_to_voltage(uint16_t adc)
  39. {
  40. UNUSED_PARAMETER(adc);
  41. return 0;
  42. }
  43. bool hal_adc_value(uint8_t id, uint16_t* valp)
  44. {
  45. UNUSED_PARAMETER(id);
  46. UNUSED_PARAMETER(valp);
  47. return false;
  48. }
  49. bool hal_adc_start_scan(void)
  50. {
  51. return false;
  52. }
  53. bool hal_adc_init(void)
  54. {
  55. return false;
  56. }
  57. bool hal_adc_deinit(void)
  58. {
  59. return false;
  60. }
  61. #endif