Skip to content

Commit ce3d096

Browse files
Updated DMA template parameter to std::endian
1 parent ff87def commit ce3d096

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ int main() {
8383
// init the dma engine
8484
using dma_periph = target::io::periph::dma0;
8585
using dma = target::io::dma<dma_periph>;
86-
dma::init<false>();
86+
dma::init<std::endian::big>();
8787

8888
// create the dma channels
8989
using dma_tx = target::io::dma_channel<dma_periph, 0, klib::io::dma::memory, ssp>;
@@ -501,4 +501,4 @@ void __attribute__((__constructor__)) fault_startup() {
501501
target::irq::register_irq<target::irq::arm_vector::memory_managagement_fault>(hardfault_handler);
502502
target::irq::register_irq<target::irq::arm_vector::bus_fault>(hardfault_handler);
503503
target::irq::register_irq<target::irq::arm_vector::usage_fault>(hardfault_handler);
504-
}
504+
}

0 commit comments

Comments
 (0)