// timer manipulation static inline void op_metro_set_timer(op_metro_t* metro) { // timer_add(&(metro->timer), op_to_int(metro->period), &op_metro_callback, (void*)metro); /* timer_add(&(metro->timer), op_to_int(metro->period), &app_custom_event_callback, metro); */ timers_set_custom(&(metro->timer), op_to_int(metro->period), &(metro->op_poll) ); // print_dbg("\r\n op_metro add timer, return value: "); // print_dbg(ret ? "1" : "0"); }
// timer manipulation static inline void op_bignum_set_timer(op_bignum_t* bignum) { timers_set_custom(&(bignum->timer), op_to_int(bignum->period), &(bignum->op_poll) ); }
// timer manipulation static inline void op_screen_set_timer(op_screen_t* screen) { timers_set_custom(&(screen->timer), op_to_int(screen->period), &(screen->op_poll) ); }
// timer manipulation static inline void op_delay_set_timer(op_delay_t* delay) { print_dbg("\r\n op_delay set timer, start "); timers_set_custom(&(delay->timer), op_to_int(delay->ms), &(delay->op_poll) ); print_dbg("\r\n op_delay set timer, done"); }
// timer manipulation static inline void op_bars8_set_timer(op_bars8_t* bars8) { timers_set_custom(&(bars8->timer), op_to_int(bars8->period), &(bars8->op_poll) ); }