Beispiel #1
0
void sleep(void){
	if(_isSleep == 0){
		_isSleep = 1;

		sleepLED();
	}
}
Beispiel #2
0
// _______________________________________________________________ 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))();
}
Beispiel #3
0
void turnOffLedAll(void){
	sleepLED();
	_ledOff = true;
}