Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59afeb0 commit c35cc63Copy full SHA for c35cc63
ports/samd/pin_af.c
@@ -112,7 +112,7 @@ adc_config_t get_adc_config(int pin_id, int32_t flag) {
112
const machine_pin_obj_t *pct_ptr = pin_find_by_id(pin_id);
113
if (pct_ptr->adc0 != 0xff && (flag & (1 << pct_ptr->adc0)) == 0) {
114
return (adc_config_t) {0, pct_ptr->adc0};
115
- #if defined(MUC_SAMD51)
+ #if defined(MCU_SAMD51)
116
} else if (pct_ptr->adc1 != 0xff && (flag & (1 << (pct_ptr->adc1 + 16))) == 0) {
117
return (adc_config_t) {1, pct_ptr->adc1};
118
#endif
0 commit comments