aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/drivertest/firmware/main.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/examples/drivertest/firmware/main.c b/examples/drivertest/firmware/main.c
index bfebc7e..b96b1f1 100644
--- a/examples/drivertest/firmware/main.c
+++ b/examples/drivertest/firmware/main.c
@@ -107,6 +107,21 @@ uchar i;
for(;;){ /* main event loop */
wdt_reset();
usbPoll();
+ cli(); /* disable interrupts for some cycles, use other cli as nop */
+ cli();
+ cli();
+ cli();
+ cli();
+ cli();
+ cli();
+ cli();
+ cli();
+ cli();
+ cli();
+ cli();
+ cli();
+ cli();
+ sei();
}
return 0;
}