mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-28 22:35:56 +00:00
Guard critical section of the driver API, so that multiple simultaneous calls from tasks/fibers wont corrupt the driver state. The locking mechanism is by default disabled in the build. To enable it, the following flag needs to be defined: CONFIG_RTC_QMSI_API_REENTRANCY Jira: ZEP-412 Change-Id: I430ebc07bf3277e5a5961cb6278c5500cd1e139b Signed-off-by: Jithu Joseph <jithu.joseph@intel.com> Signed-off-by: Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> Signed-off-by: Kuo-Lang Tseng <kuo-lang.tseng@intel.com>
59 lines
1.2 KiB
Plaintext
59 lines
1.2 KiB
Plaintext
# Kconfig - RTC configuration options
|
|
#
|
|
#
|
|
# Copyright (c) 2015 Intel Corporation
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
#
|
|
|
|
#
|
|
# Real-Time Clock (RTC) options
|
|
#
|
|
menuconfig RTC
|
|
bool "Real-Time Clock"
|
|
default n
|
|
help
|
|
Enable options for Real-Time Clock drivers.
|
|
|
|
if RTC
|
|
|
|
|
|
config RTC_QMSI
|
|
bool "QMSI RTC Driver"
|
|
depends on QMSI
|
|
default n
|
|
help
|
|
Build QMSI RTC driver.
|
|
|
|
config RTC_0_NAME
|
|
string "Driver instance name"
|
|
default "RTC_0"
|
|
depends on RTC
|
|
help
|
|
RTC driver instance name
|
|
|
|
config RTC_0_IRQ_PRI
|
|
int "RTC Driver Interrupt priority"
|
|
depends on RTC
|
|
help
|
|
RTC interrupt priority.
|
|
|
|
config RTC_QMSI_API_REENTRANCY
|
|
bool
|
|
prompt "RTC shim driver API reentrancy"
|
|
default n
|
|
help
|
|
Enable support for RTC shim driver API reentrancy.
|
|
|
|
endif # RTC
|