Browse Source

add small timeout after exit

pull/1/head
Olaf Rempel 9 years ago
parent
commit
3acd88c11c
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      main.c

+ 5
- 3
main.c View File

@@ -21,9 +21,6 @@
#include <avr/boot.h>
#include <avr/pgmspace.h>

#define F_CPU 8000000
#include <util/delay.h>

/*
* 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();
}

Loading…
Cancel
Save