Commit 12f04dc
committed
Initialize DMA memcpy config struct
Call `dma_multi_data_para_struct_init(&dma_init_parameter)` before assigning selected fields in `gd32_dma_memcpy32.cpp`. This ensures all DMA config fields start from defined defaults and prevents unintended behavior from uninitialized struct members.1 parent b16cb5c commit 12f04dc
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| |||
0 commit comments