Then to enable a timer to callback and read the value:
//===================================// TIMER STUFF//===================================//Setup timer callback
os_timer_setfn(&buttonTimer, (os_timer_func_t *)buttonTimerCB, NULL);
//Arm the timer//&buttonTimer is the pointer//35 is the fire time in ms//0 for once and 1 for repeating
os_timer_arm(&buttonTimer, 35, 1);