cleanup usage of USB endpoint

This commit is contained in:
NIIBE Yutaka
2012-05-12 08:06:33 +09:00
parent f5cefbcab4
commit 7fb547a87e
7 changed files with 79 additions and 43 deletions

View File

@@ -1,7 +1,7 @@
/*
* main.c - main routine of Gnuk
*
* Copyright (C) 2010, 2011 Free Software Initiative of Japan
* Copyright (C) 2010, 2011, 2012 Free Software Initiative of Japan
* Author: NIIBE Yutaka <gniibe@fsij.org>
*
* This file is a part of Gnuk, a GnuPG USB Token implementation.
@@ -376,6 +376,14 @@ main (int argc, char **argv)
usb_lld_init ();
random_init ();
while (1)
{
if (bDeviceState != UNCONNECTED)
break;
chThdSleepMilliseconds (250);
}
#ifdef DEBUG
stdout_init ();