1
0
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:
crasbe 2024-12-11 15:58:59 +01:00
parent e6bf33ea05
commit 62d0e08218
8 changed files with 8 additions and 8 deletions

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}