add small timeout after exit
This commit is contained in:
parent
b16b660495
commit
3acd88c11c
8
main.c
8
main.c
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user