Added GPIO stuff for measuring context switch (not currently working)