1 #include "lets_split.h"
4 float tone_startup[][2] = SONG(STARTUP_SOUND);
5 float tone_goodbye[][2] = SONG(GOODBYE_SOUND);
8 void matrix_init_kb(void) {
11 _delay_ms(20); // gets rid of tick
12 PLAY_NOTE_ARRAY(tone_startup, false, 0);
26 void promicro_bootloader_jmp(bool program) {
29 PLAY_NOTE_ARRAY(tone_goodbye, false, 0);
34 uint16_t *const bootKeyPtr = (uint16_t *)0x0800;
36 // Value used by Caterina bootloader use to determine whether to run the
37 // sketch or the bootloader programmer.
38 uint16_t bootKey = program ? 0x7777 : 0;
40 *bootKeyPtr = bootKey;
42 // setup watchdog timeout
43 wdt_enable(WDTO_60MS);
45 while(1) {} // wait for watchdog timer to trigger