zephyr/drivers/pwm
Baohong Liu 05bed1c663 drivers: pwm_qmsi: add type cast to prevent overflow
Add type cast to prevent overflow.

In the pwm driver function pwm_qmsi_get_cycles_per_sec(),
there is a multiplication which takes ticks_per_us (32 bit
unsigned integer) and USEC_PER_SEC. Practically, overflow
will not happen, since the sys clock is not that high. But,
it can trigger an overflow alarm by automatic tools.

Change-Id: I67e6f6a4763e62f6674fcdd364880d93829e739e
Signed-off-by: Baohong Liu <baohong.liu@intel.com>
2016-11-08 14:28:26 +00:00
..
Kconfig
Kconfig.dw pwm: unify driver names 2016-04-22 20:46:29 -04:00
Kconfig.k64 sys_log: replace debug macros at Freescale K64 PWM driver 2016-07-31 18:15:24 +00:00
Kconfig.pca9685 pwm: unify driver names 2016-04-22 20:46:29 -04:00
Kconfig.qmsi qmsi: pwm: Use locking mechanism to guard critical regions 2016-07-28 15:29:49 +00:00
Makefile
pwm_dw.c pwm/dw: Make config_info pointers const. 2016-10-19 12:10:59 +00:00
pwm_k64_ftm.c drivers/pwm_k64_ftm: Make driver_api structure const. 2016-10-25 18:45:29 +00:00
pwm_k64_ftm.h power_mgmt: Update sample and drivers according to new pm device API 2016-09-22 00:23:43 +00:00
pwm_pca9685.c drivers/pwm_pca9685: Make driver_api structure const. 2016-10-25 18:45:29 +00:00
pwm_pca9685.h
pwm_qmsi.c drivers: pwm_qmsi: add type cast to prevent overflow 2016-11-08 14:28:26 +00:00