adc_config.h 699 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright (c) 2020-2021, Bluetrum Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2021-02-01 greedyhao first version
  9. */
  10. #ifndef __ADC_CONFIG_H__
  11. #define __ADC_CONFIG_H__
  12. #include <rtthread.h>
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. #ifdef BSP_USING_ADC0
  17. #ifndef ADC0_CONFIG
  18. #define ADC0_CONFIG \
  19. { \
  20. .adc_dat_handle = (hal_sfr_t)&SADCDAT0, \
  21. .name = "adc0", \
  22. }
  23. #endif /* ADC0_CONFIG */
  24. #endif /* BSP_USING_ADC0 */
  25. #ifdef __cplusplus
  26. }
  27. #endif
  28. #endif