Project

General

Profile

Statistics
| Revision:

root / trunk / code / projects / wireless_bootloader / bootloader_launch.c @ 1443

History | View | Annotate | Download (222 Bytes)

1
#include "xbee.h"
2
#include <avr/interrupt.h>
3

    
4
#define BOOTLOADER_ADDR     0x0001e756
5

    
6
int (*bootloader)(int force) = (void*)BOOTLOADER_ADDR;
7

    
8
int launch_bootloader(void)
9
{
10
    cli();
11
    xbee_reset();
12
    bootloader(1);
13
}