Ejemplo n.º 1
0
void hardware_bootloader(void)
{
  typedef void (*AppPtr_t)(void) __attribute__ ((noreturn)); 

  AppPtr_t BootStartPtr = (AppPtr_t) 0xF000; 

  // If USB is used, detach from the bus
  USB_Detach();
  USB_Disable();

  lcd.off();

  clock.disable();

  // Disable all interrupts
  cli();

  wdt_disable();

  BootStartPtr();

  for(;;);
}