Added some useful defines
Slight style change
Added FTM registers