Skip to content

Commit 8616a0c

Browse files
committed
lpc175x reworked peripheral_memory_impl transfer bytes writing
1 parent 0dfd02a commit 8616a0c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

targets/core/nxp/lpc175x/dma.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ namespace klib::core::lpc175x::io {
263263
}
264264

265265
// set the amount of data we will transfer
266-
Dma::port->CH[Channel].CONTROL |= current_transfer;
266+
Dma::port->CH[Channel].CONTROL = (Dma::port->CH[Channel].CONTROL & (~0xfff)) | current_transfer;
267267

268268
// check if we need a irq after the current
269269
if (!needs_irq) [[unlikely]] {

0 commit comments

Comments
 (0)