From badbd72bebc2d5098376710274d764af6a2401db Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 19 Apr 2017 11:07:41 +0800 Subject: [PATCH] manual: update example to use DMA handle API --- doc/manual/getting_started_core.rst | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/manual/getting_started_core.rst b/doc/manual/getting_started_core.rst index e020eda4e..60fd301a7 100644 --- a/doc/manual/getting_started_core.rst +++ b/doc/manual/getting_started_core.rst @@ -228,8 +228,11 @@ Try this: :: def run(self): self.core.reset() self.record() + # prefetch the address of the DMA buffer + # for faster playback trigger + pulses_handle = self.core_dma.get_handle("pulses") self.core.break_realtime() while True: # execute RTIO operations in the DMA buffer - # each replay advances the timeline by 50*(100+100) ns - self.core_dma.replay("pulses") + # each playback advances the timeline by 50*(100+100) ns + self.core_dma.playback_handle(pulses_handle)