drv_adc.h 492 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (c) 2006-2023, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2023-11-23 Chushicheng first version
  9. */
  10. #ifndef __DRV_ADC_H__
  11. #define __DRV_ADC_H__
  12. #include <rtconfig.h>
  13. #if defined BSP_USING_ADC
  14. /* esp config class */
  15. static struct esp_adc_config
  16. {
  17. rt_uint8_t adc_id;
  18. const char *device_name;
  19. };
  20. int rt_hw_adc_init(void);
  21. #endif /* BSP_USING_ADC */
  22. #endif /* __DRV_ADC_H__ */