pwm: stm32: fix off-by-one on PWM period
pwm: stm32: fix off-by-one on PWM period

TimerHandle->Init.Period is used to initialize TIMx ARR register. The
timer will count from 0 up to ARR including, thus it will tick
(ARR + 1) timers per period. As the "period_cycles" variable holds the
number of desired ticks, the ARR register is computed as

ARR = period_cycles - 1

Update the code to reflect this relationship. Otherwise the timer will
count one more tick for each period, leading to a wrong PWM frequency.

Signed-off-by: Florian Vaussard <ef1e2bd37ca89620283a38ee0519838a257cab3b@gmail.com>

finikorg/zephyr,kraj/zephyr,mbolivar/zephyr,ldts/zephyr,punitvara/zephyr,kraj/zephyr,explora26/zephyr,punitvara/zephyr,ldts/zephyr,mbolivar/zephyr,ldts/zephyr,nashif/zephyr,galak/zephyr,GiulianoFranchetto/zephyr,zephyriot/zephyr,zephyrproject-rtos/zephyr,punitvara/zephyr,punitvara/zephyr,GiulianoFranchetto/zephyr,zephyrproject-rtos/zephyr,galak/zephyr,Vudentz/zephyr,finikorg/zephyr,nashif/zephyr,nashif/zephyr,mbolivar/zephyr,galak/zephyr,nashif/zephyr,zephyrproject-rtos/zephyr,explora26/zephyr,kraj/zephyr,zephyriot/zephyr,Vudentz/zephyr,GiulianoFranchetto/zephyr,Vudentz/zephyr,finikorg/zephyr,mbolivar/zephyr,ldts/zephyr,ldts/zephyr,galak/zephyr,GiulianoFranchetto/zephyr,zephyriot/zephyr,explora26/zephyr,Vudentz/zephyr,kraj/zephyr,galak/zephyr,nashif/zephyr,Vudentz/zephyr,zephyriot/zephyr,mbolivar/zephyr,punitvara/zephyr,explora26/zephyr,kraj/zephyr,zephyriot/zephyr,explora26/zephyr,finikorg/zephyr,zephyrproject-rtos/zephyr,GiulianoFranchetto/zephyr,zephyrproject-rtos/zephyr,Vudentz/zephyr,finikorg/zephyr