Skip to content

Commit 06a3692

Browse files
tixyAnas Nashif
authored andcommitted
tests: dma: Initialise callback enable flags
The test failed to initilise these to known states, so fix this by asking for end of transfer and error callbacks. Change-Id: I523168381329062ec0c17aa41cb4033b78d8ed99 Signed-off-by: Jon Medhurst <[email protected]>
1 parent 4957db1 commit 06a3692

File tree

1 file changed

+2
-0
lines changed
  • tests/drivers/dma/test_chan_blen_transfer/src

1 file changed

+2
-0
lines changed

tests/drivers/dma/test_chan_blen_transfer/src/test_dma.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ static int test_task(uint32_t chan_id, uint32_t blen)
5555
dma_cfg.source_burst_length = blen;
5656
dma_cfg.dest_burst_length = blen;
5757
dma_cfg.dma_callback = test_done;
58+
dma_cfg.complete_callback_en = 0;
59+
dma_cfg.error_callback_en = 1;
5860
dma_cfg.block_count = 1;
5961
dma_cfg.head_block = &dma_block_cfg;
6062

0 commit comments

Comments
 (0)