semifix. PWM stuff mostly works. ADC should work.

CLEANUP NECESSARY