1 /* 2 * Copyright (c) 2006-2022, RT-Thread Development Team 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 * 6 * Change Logs: 7 * Date Author Notes 8 * 2022-10-19 Nations first version 9 */ 10 11 #ifndef __DRV_DAC__ 12 #define __DRV_DAC__ 13 14 #include <rtthread.h> 15 #include <rtdevice.h> 16 #include <rthw.h> 17 #include <board.h> 18 19 #ifdef __cplusplus 20 extern "C" { 21 #endif 22 23 /* n32 config class */ 24 struct n32_dac_config 25 { 26 const char *name; 27 rt_uint32_t dac_periph; 28 }; 29 30 struct n32_dac 31 { 32 struct rt_dac_device dac_device; 33 struct n32_dac_config *config; 34 }; 35 36 int rt_hw_dac_init(void); 37 38 #ifdef __cplusplus 39 } 40 #endif 41 42 #endif /* __DRV_DAC__ */ 43