dac_config.h 699 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2023-04-18 shelton first version
  9. */
  10. #ifndef __DAC_CONFIG_H__
  11. #define __DAC_CONFIG_H__
  12. #include <rtthread.h>
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. #if defined(BSP_USING_DAC1)
  17. #define DAC1_CONFIG \
  18. { \
  19. .name = "dac1", \
  20. .dac_x = DAC, \
  21. }
  22. #endif /* BSP_USING_DAC1 */
  23. #ifdef __cplusplus
  24. }
  25. #endif
  26. #endif