aboutsummaryrefslogtreecommitdiff
path: root/chopstx.h
diff options
context:
space:
mode:
Diffstat (limited to 'chopstx.h')
-rw-r--r--chopstx.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/chopstx.h b/chopstx.h
index e1a8cd8..b8daa0e 100644
--- a/chopstx.h
+++ b/chopstx.h
@@ -121,6 +121,11 @@ enum {
CHOPSTX_POLL_JOIN,
};
+struct chx_poll_head {
+ uint16_t type;
+ uint16_t ready;
+};
+
struct chx_poll_cond {
uint16_t type;
uint16_t ready;
@@ -153,6 +158,6 @@ void chopstx_claim_irq (chopstx_intr_t *intr, uint8_t irq_num);
void chopstx_intr_wait (chopstx_intr_t *intr); /* DEPRECATED */
-int chopstx_poll (uint32_t *usec_p, int n, ...);
+int chopstx_poll (uint32_t *usec_p, int n, struct chx_poll_head *pd_array[]);
#define CHOPSTX_THREAD_SIZE 64