diff --git a/ChangeLog b/ChangeLog index dec7471..af1a041 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2018-09-26 NIIBE Yutaka + + * chopstx: Update. + * src/usb-ccid.c (usb_event_handle): Fix for chopstx_intr_done. + * src/pin-cir.c (tim_main, ext_main): Likewise. + + * src/configure (FST_01SZ): Set MHZ=96. + 2018-07-04 Szczepan Zalega * tool/upgrade_by_passwd.py: Catch exception, when no KDF data is diff --git a/chopstx b/chopstx index 802dbbd..43bbdb4 160000 --- a/chopstx +++ b/chopstx @@ -1 +1 @@ -Subproject commit 802dbbd639f0f85969724b24ab5100c6e44e6b9d +Subproject commit 43bbdb44dcb076929d5ebb1f33ca2e7d8301ac2f diff --git a/src/configure b/src/configure index b45963a..c14d925 100755 --- a/src/configure +++ b/src/configure @@ -198,7 +198,7 @@ STBEE) if test "$with_dfu" = "default"; then with_dfu=yes; fi ;; -BLUE_PILL_G) +FST_01SZ|BLUE_PILL_G) MHZ=96 ;; *) diff --git a/src/pin-cir.c b/src/pin-cir.c index 349535a..38322cd 100644 --- a/src/pin-cir.c +++ b/src/pin-cir.c @@ -986,6 +986,7 @@ tim_main (void *arg) { chopstx_intr_wait (&interrupt); cir_timer_interrupt (); + chopstx_intr_done (&interrupt); } return NULL; @@ -1006,6 +1007,7 @@ ext_main (void *arg) { chopstx_intr_wait (&interrupt); cir_ext_interrupt (); + chopstx_intr_done (&interrupt); } return NULL; diff --git a/src/usb-ccid.c b/src/usb-ccid.c index 9875d0f..8fd3505 100644 --- a/src/usb-ccid.c +++ b/src/usb-ccid.c @@ -1561,6 +1561,7 @@ extern int usb_get_descriptor (struct usb_dev *dev); extern void random_init (void); extern void random_fini (void); +static chopstx_intr_t interrupt; /* * Return 0 for normal USB event @@ -1575,6 +1576,7 @@ usb_event_handle (struct usb_dev *dev) e = usb_lld_event_handler (dev); ep_num = USB_EVENT_ENDP (e); + chopstx_intr_done (&interrupt); /* Transfer to endpoint (not control endpoint) */ if (ep_num != 0) @@ -1674,7 +1676,6 @@ usb_event_handle (struct usb_dev *dev) } -static chopstx_intr_t interrupt; static chopstx_poll_cond_t ccid_event_poll_desc; static struct chx_poll_head *const ccid_poll[] = { (struct chx_poll_head *const)&interrupt,