/* * bootloader_init() - Initialization for bootloader * * INPUT * none * OUTPUT * none * */ static void bootloader_init(void) { reset_rng(); timer_init(); usart_init(); keepkey_leds_init(); keepkey_button_init(); storage_sector_init(); display_hw_init(); layout_init(display_canvas_init()); }
/* * kk_board_init() - Initialize board * * INPUT * none * OUTPUT * none */ void kk_board_init(void) { kk_timer_init(); // keepkey_leds_init(); led_func(CLR_GREEN_LED); led_func(CLR_RED_LED); kk_keepkey_button_init(); #ifndef EMULATOR svc_enable_interrupts(); // This enables the timer and button interrupts #endif layout_init(display_canvas_init()); }