Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/thirdpin/libopencm3_cpp_extensions.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cm3cpp/dma.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cm3cpp/dma.cpp b/cm3cpp/dma.cpp
index 6e89b2a..ed06cce 100644
--- a/cm3cpp/dma.cpp
+++ b/cm3cpp/dma.cpp
@@ -75,7 +75,7 @@ Dma::Dma(const LowLevelConfig& config) :
void Dma::set_memory_address(uint32_t address) const
{
- dma_set_memory_address(_dma_num, _stream, address);
+ DMA_SM0AR(_dma_num, _stream) = (uint32_t*)address;
}
void Dma::set_data_counter(uint16_t len) const