fix compiler warning in pwm.c
fix pin in use, if hw_spi in use with custom cs pin and hardware cs pin is used as arbitrary pin it will not compile