mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
fixup! cpu/stm32: make ADC resolution uniform
This commit is contained in:
parent
e6bf33ea05
commit
62d0e08218
@ -101,7 +101,7 @@ int32_t adc_sample(adc_t line, adc_res_t res)
|
||||
int sample;
|
||||
|
||||
/* check if resolution is applicable */
|
||||
if ((res & ADC_CFGR_RES_Msk) != res) {
|
||||
if ((res & ADC_CFGR_RES) != res) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -109,7 +109,7 @@ int32_t adc_sample(adc_t line, adc_res_t res)
|
||||
int sample;
|
||||
|
||||
/* check if resolution is applicable */
|
||||
if ((res & ADC_CR1_RES_Msk) != res) {
|
||||
if ((res & ADC_CR1_RES) != res) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -194,7 +194,7 @@ int32_t adc_sample(adc_t line, adc_res_t res)
|
||||
int sample;
|
||||
|
||||
/* Check if resolution is applicable */
|
||||
if ((res & ADC_CFGR_RES_Msk) != res) {
|
||||
if ((res & ADC_CFGR_RES) != res) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -129,7 +129,7 @@ int32_t adc_sample(adc_t line, adc_res_t res)
|
||||
int sample;
|
||||
|
||||
/* check if resolution is applicable */
|
||||
if ((res & ADC_CR1_RES_Msk) != res) {
|
||||
if ((res & ADC_CR1_RES) != res) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -118,7 +118,7 @@ int32_t adc_sample(adc_t line, adc_res_t res)
|
||||
int sample;
|
||||
|
||||
/* check if resolution is applicable */
|
||||
if ((res & ADC_CFGR1_RES_Msk) != res) {
|
||||
if ((res & ADC_CFGR1_RES) != res) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -147,7 +147,7 @@ int32_t adc_sample(adc_t line, adc_res_t res)
|
||||
int sample;
|
||||
|
||||
/* check if resolution is applicable */
|
||||
if ((res & ADC_CR1_RES_Msk) != res) {
|
||||
if ((res & ADC_CR1_RES) != res) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -218,7 +218,7 @@ int32_t adc_sample(adc_t line, adc_res_t res)
|
||||
int sample;
|
||||
|
||||
/* check if resolution is applicable */
|
||||
if ((res & ADC_CFGR_RES_Msk) != res) {
|
||||
if ((res & ADC_CFGR_RES) != res) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -119,7 +119,7 @@ int32_t adc_sample(adc_t line, adc_res_t res)
|
||||
int sample;
|
||||
|
||||
/* check if resolution is applicable */
|
||||
if ((res & ADC_CFGR_RES_Msk) != res) {
|
||||
if ((res & ADC_CFGR_RES) != res) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user