[dac] add get resolution method

This commit is contained in:
Meco Man
2022-04-22 18:59:27 -04:00
committed by guo
parent 778be73cac
commit 175ca2ee09
4 changed files with 29 additions and 8 deletions

View File

@@ -58,7 +58,7 @@ static rt_err_t _adc_control(rt_device_t dev, int cmd, void *args)
if(resolution != 0)
{
*((rt_uint8_t*)args) = resolution;
LOG_D("ADC resolution:%d", resolution);
LOG_D("resolution: %d bits", resolution);
result = RT_EOK;
}
}