forked from M-Labs/artiq
1
0
Fork 0

test_spi: break_realtime

This commit is contained in:
Robert Jördens 2016-03-09 18:23:27 +01:00
parent 349a66124b
commit 10a09122ea
1 changed files with 2 additions and 0 deletions

View File

@ -9,6 +9,7 @@ class Collision(EnvExperiment):
@kernel @kernel
def run(self): def run(self):
self.core.break_realtime()
t = now_mu() t = now_mu()
self.spi0.set_config_mu() self.spi0.set_config_mu()
at_mu(t) at_mu(t)
@ -23,6 +24,7 @@ class Busy(EnvExperiment):
@kernel @kernel
def run(self): def run(self):
self.core.break_realtime()
t = now_mu() t = now_mu()
self.spi0.set_config_mu() self.spi0.set_config_mu()
at_mu(t + self.spi0.ref_period_mu) at_mu(t + self.spi0.ref_period_mu)