Support for AT90PWM316

Also, created a better test harness.