We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9fa287 commit 870875aCopy full SHA for 870875a
1 file changed
targets/core/nxp/lpc175x/dma.hpp
@@ -354,7 +354,7 @@ namespace klib::core::lpc175x::io {
354
355
// setup the channel
356
Dma::port->CH[Channel].CONFIG = (
357
- (Destination::template dma_id<0>() << 6) | (irq) << 15 |
+ (Destination::template dma_id<0>() << 6) | (irq << 15) |
358
(static_cast<uint32_t>(detail::dma::transfer_type::memory_to_peripheral) << 11)
359
);
360
@@ -408,7 +408,7 @@ namespace klib::core::lpc175x::io {
408
409
410
411
- (Source::template dma_id<1>() << 6) | (irq) << 15 |
+ (Source::template dma_id<1>() << 1) | (irq << 15) |
412
(static_cast<uint32_t>(detail::dma::transfer_type::peripheral_to_memory) << 11)
413
414
0 commit comments