Common RTC counter driver for MAX32xxx MCUs.
Time of day alarm is used to generate interrupt.
The resolution of time of day interrupt is 1Hz.
Subsecond alarm interrupt not works it does not meet
zephyr counter driver requirement, so that not used.
To use as wakeup source wakeup-source parameter shall be
defined as below
&rtc_counter {
status = "okay";
wakeup-source;
};
Co-authored-by: Okan Sahin <okan.sahin@analog.com>
Signed-off-by: Sadik Ozer <sadik.ozer@analog.com>
9 lines
257 B
Text
9 lines
257 B
Text
# Copyright (c) 2024 Analog Devices, Inc.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config COUNTER_RTC_MAX32
|
|
bool "MAX32xxx counter rtc driver"
|
|
default y
|
|
depends on DT_HAS_ADI_MAX32_RTC_COUNTER_ENABLED
|
|
help
|
|
Enable the counter rtc driver for MAX32 MCUs.
|