Fix the whole code of ISR related functions as well as Context Switch, still ticker is not working properly