diff options
author | Jon Medhurst <tixy@linaro.org> | 2017-02-21 10:48:45 +0000 |
---|---|---|
committer | Anas Nashif <nashif@linux.intel.com> | 2017-03-02 00:05:48 +0000 |
commit | 06a36923c6262ab0620d236c2404ddd999ca021f (patch) | |
tree | 0901a0faa442fde0233cdf9b6cadb322fbd4edb8 | |
parent | 4957db11fc59c37c01e7c17c0a068259ba07e93c (diff) |
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 <tixy@linaro.org>
-rw-r--r-- | tests/drivers/dma/test_chan_blen_transfer/src/test_dma.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/drivers/dma/test_chan_blen_transfer/src/test_dma.c b/tests/drivers/dma/test_chan_blen_transfer/src/test_dma.c index 03998c005..0076f33ef 100644 --- a/tests/drivers/dma/test_chan_blen_transfer/src/test_dma.c +++ b/tests/drivers/dma/test_chan_blen_transfer/src/test_dma.c @@ -55,6 +55,8 @@ static int test_task(uint32_t chan_id, uint32_t blen) dma_cfg.source_burst_length = blen; dma_cfg.dest_burst_length = blen; dma_cfg.dma_callback = test_done; + dma_cfg.complete_callback_en = 0; + dma_cfg.error_callback_en = 1; dma_cfg.block_count = 1; dma_cfg.head_block = &dma_block_cfg; |