void sleep(void){ if(_isSleep == 0){ _isSleep = 1; sleepLED(); } }
// _______________________________________________________________ boot void delegateGotoBootloader(void){ sleepLED(); usbDeviceDisconnect(); wdt_enable(WDTO_15MS); for(;;); // typedef void (*AppPtr_t)(void) __attribute__ ((noreturn)); // // AppPtr_t AppStartPtr = (AppPtr_t)(BOOTLOADER_START); // AppStartPtr(); // ((void (*)(void))(BOOTLOADER_START))(); }
void turnOffLedAll(void){ sleepLED(); _ledOff = true; }