Skip to content

Commit 0dfd02a

Browse files
committed
lpc1756 dma bugfix endian inverted in dma config
1 parent ef06820 commit 0dfd02a

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
@@ -130,7 +130,7 @@ namespace klib::core::lpc175x::io {
130130
target::io::power_control::enable<Dma>();
131131

132132
// enable the dma controller with the endianness
133-
Dma::port->CONFIG = 0x1 | ((Endian == std::endian::little) << 1);
133+
Dma::port->CONFIG = 0x1 | ((Endian != std::endian::little) << 1);
134134

135135
// wait until the dma controller is enabled
136136
while (!(Dma::port->CONFIG & 0x1)) {

0 commit comments

Comments
 (0)