From 3acd88c11c12ca9e78c845bd09275defda4d314d Mon Sep 17 00:00:00 2001 From: Olaf Rempel Date: Sun, 17 Oct 2010 18:24:12 +0200 Subject: [PATCH] add small timeout after exit --- main.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/main.c b/main.c index 86ba20e..fafff9e 100644 --- a/main.c +++ b/main.c @@ -21,9 +21,6 @@ #include #include -#define F_CPU 8000000 -#include - /* * atmega8: * Fuse H: 0xda (512 words bootloader) @@ -449,5 +446,10 @@ int main(void) PORTB = 0x00; + uint16_t wait = 0x0000; + do { + __asm volatile ("nop"); + } while (--wait); + jump_to_app(); }