Skip to content

Commit

Permalink
fixup: half transfer interrupt for DMA types "stream-channel", "mux-s…
Browse files Browse the repository at this point in the history
…tream"
  • Loading branch information
chris-durand committed May 3, 2022
1 parent 7702aa3 commit 5707b56
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/modm/platform/dma/stm32/dma.hpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,9 @@ public:
};
%% elif dmaType in ["stm32-stream-channel", "stm32-mux-stream"]
constexpr uint8_t offsetLut[8] = {0, 6, 16, 22, 0+32, 6+32, 16+32, 22+32};
static const uint64_t HT_Flag {
uint64_t(InterruptFlags::HalfTransferComplete) << offsetLut[uint32_t(ChannelID)]
};
static const uint64_t TC_Flag {
uint64_t(InterruptFlags::TransferComplete) << offsetLut[uint32_t(ChannelID)]
};
Expand Down

0 comments on commit 5707b56

Please sign in to comment.