Skip to content
Commit 6911589c authored by Kuo-Lang Tseng's avatar Kuo-Lang Tseng Committed by Inaky Perez-Gonzalez
Browse files

qmsi: pwm: Use locking mechanism to guard critical regions



Guard critical section of the driver API, so that multiple
simultaneous calls from tasks/fibers won't corrupt the driver
state.

The locking mechanism is by default disabled. To enable it,
the following flag needs to be defined:

CONFIG_PWM_QMSI_API_REENTRANCY

Jira: ZEP-430

Change-Id: Ia3eb2a962f4176a3ac94163b9843ab068abe4b4e
Signed-off-by: default avatarKuo-Lang Tseng <kuo-lang.tseng@intel.com>
Signed-off-by: default avatarInaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>
parent b0ea33b2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment