Commit ea45b623 authored by Matthieu Cattin's avatar Matthieu Cattin

test27: Fix bug.

parent 70240917
......@@ -181,10 +181,11 @@ def main (default_directory='.'):
# Write pattern to DDR memory
print("Try to DMA data TO ddr...")
# Enable "DMA done" interrupt
carrier.set_irq_en_mask(0x1)
carrier.enable_dma_done_irq()
pattern = 0xDEADFACE
raw_input("hit any key to start dma.")
carrier.put_data(0, pattern, ACQ_LENGTH*8)
carrier.disable_dma_done_irq()
"""
# Acquire and read channels
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment