Added pwm generation.
Added a first version of taskswitch for timer testing