Example #1
0
static THD_FUNCTION(timer_thread, arg) {
    (void)arg;

    chRegSetThreadName("msec_timer");

    for(;;) {
        packet_timerfunc();
        chThdSleepMilliseconds(1);
    }
}
Example #2
0
File: main.c Project: flv1991/bldc
static msg_t timer_thread(void *arg) {
	(void)arg;

	chRegSetThreadName("msec_timer");

	for(;;) {
		packet_timerfunc();
		chThdSleepMilliseconds(1);
	}

	return 0;
}