[stellaris] Adds and arduino-like time library.
[stellaris] Implements the interruptions on the 2 switches, including the hack for switch 2.