diff options
author | Christian Starkjohann <cs+github@obdev.at> | 2008-10-20 17:29:51 +0000 |
---|---|---|
committer | Christian Starkjohann <cs+github@obdev.at> | 2008-10-20 17:29:51 +0000 |
commit | b4fcf04a7b05f5d09d311d993c4ff955e5793c84 (patch) | |
tree | 97a308efe1b46961a3bf89be4ceacffba7a50140 /examples | |
parent | 615b85025b3ad45847ecb268d513c7a2f7f31cf2 (diff) | |
download | v-usb-b4fcf04a7b05f5d09d311d993c4ff955e5793c84.tar.gz v-usb-b4fcf04a7b05f5d09d311d993c4ff955e5793c84.tar.bz2 v-usb-b4fcf04a7b05f5d09d311d993c4ff955e5793c84.zip |
- added interrupt disable time in main loop
Diffstat (limited to 'examples')
-rw-r--r-- | examples/drivertest/firmware/main.c | 15 |
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; } |