提交 996add96 编写于 作者: mysterywolf's avatar mysterywolf 提交者: guo

[stm32][dac] add comment

上级 4ac54cfd
......@@ -114,7 +114,8 @@ static rt_uint8_t stm32_dac_get_resolution(struct rt_dac_device *device)
stm32_dac_handler = device->parent.user_data;
(void)stm32_dac_handler;
return 12; /* TODO */
/* Only has supported DAC_ALIGN_12B_R, so it will return 12 bits */
return 12;
}
static rt_err_t stm32_set_dac_value(struct rt_dac_device *device, rt_uint32_t channel, rt_uint32_t *value)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册