Bugfix for KLxx/K20 pwm period

Period is MOD + 1, so needs to add/substract 1 in the correct places
Merge branch 'master' of https://github.com/Sissors/mbed into Sissors-master
Merge branch 'Sissors-master'