summaryrefslogtreecommitdiffstats
path: root/app/tims_keyboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'app/tims_keyboard.c')
-rw-r--r--app/tims_keyboard.c27
1 files changed, 3 insertions, 24 deletions
diff --git a/app/tims_keyboard.c b/app/tims_keyboard.c
index 4897c4d..b67e46a 100644
--- a/app/tims_keyboard.c
+++ b/app/tims_keyboard.c
@@ -26,33 +26,12 @@ main (void)
nvic_set_priority (NVIC_SYSTICK_IRQ, 0x80);
nvic_set_priority (NVIC_EXTI0_IRQ, 0xc0);
- usart_init ();
- ticker_init ();
-
-#ifdef DEBUG
- printf ("USART and ticker started\r\n");
-#endif
+ atkbd_init();
usb_init ();
-#ifdef DEBUG
- printf ("USB started\r\n");
-#endif
-
- atkbd_init ();
-
-#ifdef DEBUG
- printf ("ATKBD i/f started\r\n");
-#endif
-
- while (ticks < AT_KBD_INIT_TIME)
- usb_poll ();
-
- atkbd_start ();
-
-#ifdef DEBUG
- printf ("Keyboard started\r\n");
-#endif
+ usart_init ();
+ ticker_init ();
usb_run ();
return 0;