X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=mart%2Fex10%2Fex10dmaster.c;h=ca05678c5d707df7c7ccd4300c082cc493dd964f;hb=b692b0f750cd658e265700a2682a51b453472988;hp=b95d7e24e82de0ed67bb2968837fb8565910caf6;hpb=fccd4f6ea455bd765fa85818c6de4bff96c38fbb;p=des2015.git diff --git a/mart/ex10/ex10dmaster.c b/mart/ex10/ex10dmaster.c index b95d7e2..ca05678 100644 --- a/mart/ex10/ex10dmaster.c +++ b/mart/ex10/ex10dmaster.c @@ -16,19 +16,21 @@ 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_printf("Succes creation: %d\n", 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