Update chopstx to 1.1

This commit is contained in:
NIIBE Yutaka
2016-07-01 13:09:42 +09:00
parent 691e16c605
commit 5099bfee88
3 changed files with 13 additions and 3 deletions

View File

@@ -1,3 +1,9 @@
2016-07-01 NIIBE Yutaka <gniibe@fsij.org>
* chopstx: Update to 1.1.
* src/usb-ccid.c (poll_event_intr, ccid_thread): Follow the
change.
2016-06-21 Niibe Yutaka <gniibe@fsij.org>
* doc/index.rst: Update documentation by an example

Submodule chopstx updated: 40adf95c24...09f27704f5

View File

@@ -1482,9 +1482,13 @@ static void
poll_event_intr (uint32_t *timeout, struct eventflag *ev, chopstx_intr_t *intr)
{
chopstx_poll_cond_t poll_desc;
struct chx_poll_head *pd_array[2] = {
(struct chx_poll_head *)intr,
(struct chx_poll_head *)&poll_desc
};
eventflag_prepare_poll (ev, &poll_desc);
chopstx_poll (timeout, 2, intr, &poll_desc);
chopstx_poll (timeout, 2, pd_array);
}
void *
@@ -1646,7 +1650,7 @@ ccid_thread (void *arg)
/* Loading reGNUal. */
while (bDeviceState != UNCONNECTED)
{
chopstx_poll (NULL, 1, &interrupt);
chopstx_intr_wait (&interrupt);
usb_event_handle (&dev);
}