On 01/06/2014 08:10 PM, Nima Nourozi wrote: > Here is the task initialization code: > > *rtdm_printk("kicking of tasklet...\n");* > * retval = rtdm_task_init(&heartbeat_task, "spi_transfer", > xx_start_transfer, NULL, 99, 100000000 /* 100 ms */);* > * __ipipe_serial_debug("*******return value = %d\n", retval);* > * if(retval)* > * {* > * __ipipe_serial_debug("error initializing task: %i\n", retval);* > * }* > > Here is the task function: > > void xx_start_transfer(void *arg) > { > > int ret; > > while (1) { > ret = rtdm_task_wait_period(); > __ipipe_serial_debug("*******return value = %d\n", ret); > gpio_set_value(LED, 1); > rtdm_task_sleep(0); > } > }
I can not reproduce your problem, it works fine here. Could you post the full code of a simplified driver which triggers the problem ? -- Gilles. _______________________________________________ Xenomai mailing list Xenomai@xenomai.org http://www.xenomai.org/mailman/listinfo/xenomai