SAMD21/SAMR21: Add more ADC lines#7009
Conversation
aabadie
left a comment
There was a problem hiding this comment.
Changes look good out there. Just one minor comment regarding the adc channel struct definition that could factorized.
Samr21-xpro is finally about to have ADC support !
| /** | ||
| * @brief ADC Channel Configuration | ||
| */ | ||
| typedef struct { |
There was a problem hiding this comment.
This was taken from samd21-xpro but I think that this struct definition should be factorized in cpu/samd21/include/periph_cpu.h.
There was a problem hiding this comment.
You are absolutely right. I will move it.
Regarding type name, I think I need to change the type name to adc_conf_chan_t to match other peripheral struct names?
|
Much better.
Then it will be fine ! |
|
@aabadie Sure. Please check it. |
|
Looking at the datasheets, the changes are good for samr21-xpro and Murdock is happy, merging :) |
This is a followup to #6929 .
This PR completes ADC line definitions of EXT headers for SAMD21/SAMR21 XPlained Pro.
I tested all lines using
test/periph_adcand the conversion works well.This change is