summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHåvard Espeland <gus@ping.uio.no>2011-08-27 21:11:58 +0200
committerHåvard Espeland <gus@ping.uio.no>2011-08-27 21:11:58 +0200
commitf3fe2ae138e26294256f9e6292f9f51d8841e7e4 (patch)
treec57896e1e7a8a72372279dc60e49b33053f2b44e
parent89fdad6ba6ca5a2093e71861913415252f585bb0 (diff)
downloadat90usb-bootloader-f3fe2ae138e26294256f9e6292f9f51d8841e7e4.tar.gz
at90usb-bootloader-f3fe2ae138e26294256f9e6292f9f51d8841e7e4.tar.bz2
at90usb-bootloader-f3fe2ae138e26294256f9e6292f9f51d8841e7e4.tar.xz
at90usb-bootloader-f3fe2ae138e26294256f9e6292f9f51d8841e7e4.zip
Disable timer interrupt before loading main prog.
-rw-r--r--BootloaderCDC.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/BootloaderCDC.c b/BootloaderCDC.c
index 64ef61c..3ea56fc 100644
--- a/BootloaderCDC.c
+++ b/BootloaderCDC.c
@@ -97,6 +97,7 @@ int main(void)
/* Jump to main program. */
cli();
+ TIMSK0 = 0 << TOIE0; // Disable Timer0 interrupt
__asm("jmp 0x0000");
for (;;);