Updated FreeRTOS to 8.2RC1

Added changes to xbh_xbdcomm.h required for compilation
Updated  time capture algorithm to deal w/ race conditions

Checking if time is different is insufficient, as there is a 1/2**16 chance of
the times just randomly matching. Added a seperate counter to count the number
of captures instead
Updated FreeRTOSConfig.h for FreeRTOS 8.2
WIP on power measurement code
Removed unused files
Fixed incorrect timers being synchronized

Timers were moved from timer2 to timer0 in the last commit