Added PWM and SPI support