Project

General

Profile

Statistics
| Revision:

root / branches / autonomous_recharging / code / projects / charging_bay / main.c @ 649

History | View | Annotate | Download (227 Bytes)

1
#include <bayboard_lib.h>
2

    
3
void (*bootloader)(void) = (void*)0x3800;
4

    
5
int main(void)
6
{
7
        bayboard_init(COMM);
8

    
9
        DDRB |= _BV(PB4);
10
        PORTB |= _BV(PB4);
11

    
12
        while(1)
13
        {
14
                if(!(PINA&_BV(PA7)))
15
                {
16
                        bootloader();
17
                }
18
        }
19
        return 0;
20
}