summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorCYFS <[email protected]>2024-09-29 08:59:17 +0800
committerGitHub <[email protected]>2024-09-29 08:59:17 +0800
commit6fb31d486d77ad19f812d91669cb89aec376039b (patch)
tree3c238e596741694a20a2c04c7ec6c5f4cd9b1de2 /components
parent5562779056de532febfe1a41a5c19f9422b428d1 (diff)
[doxygen][rsoc]add dac driver example for doxygen (#9483)
Diffstat (limited to 'components')
-rw-r--r--components/drivers/include/drivers/dac.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/components/drivers/include/drivers/dac.h b/components/drivers/include/drivers/dac.h
index ca827c7cda..f3635d50b6 100644
--- a/components/drivers/include/drivers/dac.h
+++ b/components/drivers/include/drivers/dac.h
@@ -110,6 +110,7 @@ rt_err_t rt_hw_dac_register(rt_dac_device_t dac,const char *name, const struct r
* @brief set the value of DAC
* @param dev DAC device
* @param channel DAC channel
+ * @param value the value of DAC
* @return rt_err_t error code
*/
rt_err_t rt_dac_write(rt_dac_device_t dev, rt_uint32_t channel, rt_uint32_t value);
@@ -117,6 +118,7 @@ rt_err_t rt_dac_write(rt_dac_device_t dev, rt_uint32_t channel, rt_uint32_t valu
/**
* @brief enable the DAC channel
* @param dev DAC device
+ * @param channel DAC channel
* @return rt_err_t error code
*/
rt_err_t rt_dac_enable(rt_dac_device_t dev, rt_uint32_t channel);
@@ -124,6 +126,7 @@ rt_err_t rt_dac_enable(rt_dac_device_t dev, rt_uint32_t channel);
/**
* @brief disable the DAC channel
* @param dev DAC device
+ * @param channel DAC channel
* @return rt_err_t error code
*/
rt_err_t rt_dac_disable(rt_dac_device_t dev, rt_uint32_t channel);