|
@@ -32,9 +32,8 @@
|
32
|
32
|
/*
|
33
|
33
|
* INT_N polling thread
|
34
|
34
|
*/
|
35
|
|
-static THD_WORKING_AREA(waIntNPoll, 128);
|
36
|
|
-static THD_FUNCTION(IntNPoll, arg) {
|
37
|
|
- (void) arg;
|
|
35
|
+static THD_FUNCTION(IntNPoll, cfg) {
|
|
36
|
+ (void) cfg;
|
38
|
37
|
|
39
|
38
|
union fusb_status status;
|
40
|
39
|
eventmask_t events;
|
|
@@ -84,8 +83,8 @@ static THD_FUNCTION(IntNPoll, arg) {
|
84
|
83
|
}
|
85
|
84
|
}
|
86
|
85
|
|
87
|
|
-void pdb_int_n_run(void)
|
|
86
|
+void pdb_int_n_run(struct pdb_config *cfg)
|
88
|
87
|
{
|
89
|
|
- chThdCreateStatic(waIntNPoll, sizeof(waIntNPoll), PDB_PRIO_PRL_INT_N,
|
90
|
|
- IntNPoll, NULL);
|
|
88
|
+ cfg->int_n.thread = chThdCreateStatic(cfg->int_n._wa,
|
|
89
|
+ sizeof(cfg->int_n._wa), PDB_PRIO_PRL_INT_N, IntNPoll, cfg);
|
91
|
90
|
}
|