Some refactoring

Remove unimplemented function header
Move PWM compatible pin definition to header file