History | View | Annotate | Download (227 Bytes)
#include <bayboard_lib.h>
void (*bootloader)(void) = (void*)0x3800;
int main(void)
{
bayboard_init(COMM);
DDRB |= _BV(PB4);
PORTB |= _BV(PB4);
while(1)
if(!(PINA&_BV(PA7)))
bootloader();
}
return 0;