Updates the DMAC peripheral to use the clock::v2
API
#932
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
As part of the
clock::v2
effort tracked in Issue #912, this PR updates thedmac
to use theclock::v2
API by requiring ownership of itsAhbClk
forthumbv7
targets.See the commit message for details.
The following Tier 1 BSP examples were also updated to include the change:
samd11_bare/i2c
feather_m0/async_dmac
feather_m0/async_i2c
feather_m0/async_spi
feather_m0/async_uart
feather_m0/dmac
feather_m0/i2c
feather_m0/spi
feather_m0/uart_dma_blocking
feather_m0/uart_dma_nonblocking
feather_m4/dmac
metro_m0/i2c
metro_m0/spi
metro_m4/async_dmac
The following Tier 1 BSP examples are now broken and cannot be fixed until the noted peripherals are also migrated and merged (see the notes about this in Issue #912):
feather_m4/i2c
(sercom::i2c::Config
)feather_m4/spi
(sercom::spi::Config
)feather_m4/uart_dma_blocking
(sercom::uart::Config
)feather_m4/uart_dma_nonblocking
(sercom::uart::Config
)metro_m4/async_i2c
(sercom::i2c::Config
)metro_m4/async_spi
(sercom::spi::Config
)metro_m4/async_uart
(sercom::uart::Config
)metro_m4/i2c
(sercom::i2c::Config
)metro_m4/spi
(sercom::spi::Config
)Checklist
#[allow]
certain lints where reasonable, but ideally justify those with a short comment.