add small timeout after exit

This commit is contained in:
Olaf Rempel 2010-10-17 18:24:12 +02:00
parent b16b660495
commit 3acd88c11c

8
main.c
View File

@ -21,9 +21,6 @@
#include <avr/boot.h> #include <avr/boot.h>
#include <avr/pgmspace.h> #include <avr/pgmspace.h>
#define F_CPU 8000000
#include <util/delay.h>
/* /*
* atmega8: * atmega8:
* Fuse H: 0xda (512 words bootloader) * Fuse H: 0xda (512 words bootloader)
@ -449,5 +446,10 @@ int main(void)
PORTB = 0x00; PORTB = 0x00;
uint16_t wait = 0x0000;
do {
__asm volatile ("nop");
} while (--wait);
jump_to_app(); jump_to_app();
} }