USB Reset handling

This commit is contained in:
NIIBE Yutaka
2015-09-09 18:49:01 +09:00
parent 748c3cac6c
commit f505dea314
17 changed files with 166 additions and 142 deletions

View File

@@ -22,13 +22,14 @@ extern struct apdu apdu;
#define CARD_CHANGE_REMOVE 1
#define CARD_CHANGE_TOGGLE 2
void ccid_card_change_signal (int how);
void ccid_usb_reset (void);
/* CCID thread */
#define EV_RX_DATA_READY 1 /* USB Rx data available */
#define EV_EXEC_FINISHED 2 /* OpenPGP Execution finished */
#define EV_TX_FINISHED 4 /* CCID Tx finished */
#define EV_CARD_CHANGE 8
#define EV_RESET 16
#define EV_USB_RESET 16
/* OpenPGPcard thread */
#define EV_PINPAD_INPUT_DONE 1
@@ -423,7 +424,7 @@ extern const uint8_t gnuk_string_serial[];
#define LED_START_COMMAND 8
#define LED_FINISH_COMMAND 16
#define LED_FATAL 32
#define LED_RESET 64
#define LED_USB_RESET 64
void led_blink (int spec);
#if defined(PINPAD_SUPPORT)