static THD_FUNCTION(timer_thread, arg) { (void)arg; chRegSetThreadName("msec_timer"); for(;;) { packet_timerfunc(); chThdSleepMilliseconds(1); } }
static msg_t timer_thread(void *arg) { (void)arg; chRegSetThreadName("msec_timer"); for(;;) { packet_timerfunc(); chThdSleepMilliseconds(1); } return 0; }