fork/GramFirmware
git clone https://git.julia.blue/fork/GramFirmware
818d962
gram
1#include "reboot.hpp" 2 3#include "stdlib.hpp" 4 5#include <avr/wdt.h> 6 7void reboot_firmware () { 8wdt_enable (WDTO_15MS ); 9while (true) { 10delay (1 ); 11 } 12} 13 14void reboot_bootloader () { 15uint16_t * magic_key_pos = (uint16_t * )MAGIC_KEY_POS ; 16* magic_key_pos = MAGIC_KEY ; 17wdt_enable (WDTO_15MS ); 18while (true) { 19delay (1 ); 20 } 21}