X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=mart%2Fex10%2Fex10dmaster.c;h=78ffc7b084180c9e31e71eff18e6a54e71708e1b;hb=b0bd8f724348ba4ec1adb341bc37ab556d7abb10;hp=ad9ea1065b6588905f9b2dc1375dd9b2fb104c51;hpb=b54039203a82ab0590666a89a2776334c9fec3e3;p=des2015.git diff --git a/mart/ex10/ex10dmaster.c b/mart/ex10/ex10dmaster.c index ad9ea10..78ffc7b 100644 --- a/mart/ex10/ex10dmaster.c +++ b/mart/ex10/ex10dmaster.c @@ -16,21 +16,19 @@ RT_TASK task; RTIME times[SAMPLES]; -void lpt1_handler(void *arg) +void taskf(void *arg) { RT_INTR intr; - rt_intr_create(&intr, "lpt1 handler", LPT1IRQ, 0); + rt_intr_create(&intr, "lpt1 handler", LPT1IRQ, I_PROPAGATE); rt_task_set_periodic(NULL, TM_NOW, 1e5); - rt_printf("Sending\n"); unsigned int i; for(i = 0; i