This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Post-build event command line: | |
$(ToolchainDir)\avr-objcopy -I ihex $(OutputDirectory)\$(OutputFileName).eep -O binary $(OutputDirectory)\$(OutputFileName).eep.bin | |
https://www.avrfreaks.net/comment/1679721#comment-1679721 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Виявляється, перезавантаження контролера має свої несподівані хитрощі. | |
void reset(){ | |
wdt_enable(WDTO_15MS); | |
while(1); | |
} | |
// Function to disable wdt after reboot (wdt remains enabled) | |
void wdt_init(void) __attribute__((naked)) __attribute__((section(".init3"))); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Case insensitive autoload using composer generated classmap | |
* | |
* see problem: | |
* - https://github.com/composer/composer/issues/1803 | |
* - https://stackoverflow.com/questions/20235922/how-to-add-case-insensitive-autoloading-using-composer-generated-classmap | |
* | |
* 1. Add this class to project. (you can set any namespace) | |
* 2. Add to composer.json section "scripts" |