[stm32][dac] add comment

This commit is contained in:
Meco Man 2022-05-21 01:27:45 -04:00 committed by guo
parent 4ac54cfd60
commit 996add96d6
1 changed files with 2 additions and 1 deletions

View File

@ -114,7 +114,8 @@ static rt_uint8_t stm32_dac_get_resolution(struct rt_dac_device *device)
stm32_dac_handler = device->parent.user_data; stm32_dac_handler = device->parent.user_data;
(void)stm32_dac_handler; (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) static rt_err_t stm32_set_dac_value(struct rt_dac_device *device, rt_uint32_t channel, rt_uint32_t *value)