New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
boards/saml21-xpro: configure UART & SPI on EXT2, 3 #16694
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small change, otherwise looks good.
.tx_trigger = SERCOM0_DMAC_ID_TX, | ||
.rx_trigger = SERCOM0_DMAC_ID_RX, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope.
.tx_trigger = SERCOM0_DMAC_ID_TX, | |
.rx_trigger = SERCOM0_DMAC_ID_RX, | |
.tx_trigger = SERCOM5_DMAC_ID_TX, | |
.rx_trigger = SERCOM5_DMAC_ID_RX, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
Actually SERCOM5 doesn't support DMA
79ed9ad
to
f5622af
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK.
Tested the new SPI in loopback and UART_DEV(2)
with UART_DEV(1)
Works like a charm.
Contribution description
This adds the missing configuration for I2C and UART on EXT2/3
Testing procedure
connect RX to TX and MISO to MOSI and run
tests/periph_uart
andtests/periph_spi
for the new instances.Issues/PRs references