Extend W7500x target with ADC 6 and 7

pull/9073/head
vervaekejonathan 2018-12-12 16:23:06 +01:00 committed by GitHub
parent e3b03e0404
commit 70ab75704f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -82,6 +82,12 @@ static inline uint16_t adc_read(analogin_t *obj)
case PC_10:
adc_ch = ADC_CH5;
break;
case PC_09:
adc_ch = ADC_CH6;
break;
case PC_08:
adc_ch = ADC_CH7;
break;
default:
return 0;
}