From 75f763c8a6af8cb05f17dbf8a2931d93ef1991f4 Mon Sep 17 00:00:00 2001 From: Janvier Peng Date: Sat, 16 Nov 2024 00:44:02 +0800 Subject: [PATCH] Fixed the incorrect DMA1 peripheral memory address. --- GD32VF103.svd | 3 +-- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/GD32VF103.svd b/GD32VF103.svd index d8f211b..c0aa8d7 100644 --- a/GD32VF103.svd +++ b/GD32VF103.svd @@ -18091,13 +18091,12 @@ DMA1 Direct memory access controller DMA - 0x40020000 + 0x40020400 0x0 0x400 registers - 0x40020400 DMA1_Channel0 75 diff --git a/src/lib.rs b/src/lib.rs index d860c5f..a7681ce 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -532,7 +532,7 @@ pub struct DMA1 { unsafe impl Send for DMA1 {} impl DMA1 { #[doc = r"Pointer to the register block"] - pub const PTR: *const dma1::RegisterBlock = 0x4002_0000 as *const _; + pub const PTR: *const dma1::RegisterBlock = 0x4002_0400 as *const _; #[doc = r"Return the pointer to the register block"] #[inline(always)] pub const fn ptr() -> *const dma1::RegisterBlock {