Skip to content

Commit

Permalink
Fixed the incorrect DMA1 peripheral memory address.
Browse files Browse the repository at this point in the history
  • Loading branch information
Janvier Peng authored and romancardenas committed Nov 18, 2024
1 parent 9ad71e0 commit 75f763c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions GD32VF103.svd
Original file line number Diff line number Diff line change
Expand Up @@ -18091,13 +18091,12 @@
<name>DMA1</name>
<description>Direct memory access controller</description>
<groupName>DMA</groupName>
<baseAddress>0x40020000</baseAddress>
<baseAddress>0x40020400</baseAddress>
<addressBlock>
<offset>0x0</offset>
<size>0x400</size>
<usage>registers</usage>
</addressBlock>
<baseAddress>0x40020400</baseAddress>
<interrupt>
<name>DMA1_Channel0</name>
<value>75</value>
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 75f763c

Please sign in to comment.