dac_config.h 659 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * Copyright (c) 2006-2025, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2021-08-19 Mr.Tiger first version
  9. */
  10. #ifndef __DAC_CONFIG_H__
  11. #define __DAC_CONFIG_H__
  12. #include <rtthread.h>
  13. #include <rtdevice.h>
  14. #include "hal_data.h"
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. #ifdef BSP_USING_DAC
  19. struct ra_dac_map
  20. {
  21. char name;
  22. const struct st_dac_cfg *g_cfg;
  23. const struct st_dac_instance_ctrl *g_ctrl;
  24. };
  25. struct ra_dac_dev
  26. {
  27. rt_dac_device_t ra_dac_device_t;
  28. struct ra_dac_map *ra_dac_map_dev;
  29. };
  30. #endif
  31. #endif
  32. #ifdef __cplusplus
  33. }
  34. #endif