buttonInterruptInit & timerInterruptInit function