Added test and implementation for configuring the proper waveform generation mode on timer start.
Converted bitwise operations in test to more efficient method used in samples.
Updated main source, system functions for Trinket

Added event recording, detection, and responsed to Trinket sample main
source. Updated Trinket system sources for callbacks and waveform
functionality. Added Wall and Werror GCC flags in Makefile.