From b4fcf04a7b05f5d09d311d993c4ff955e5793c84 Mon Sep 17 00:00:00 2001 From: Christian Starkjohann Date: Mon, 20 Oct 2008 17:29:51 +0000 Subject: - added interrupt disable time in main loop --- examples/drivertest/firmware/main.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'examples/drivertest') 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; } -- cgit v1.2.3