samples: drivers: counter: alarm: Fix nordic DKs

After reworking counter driver to use device tree this sample
stopped to compile for nordic DKs. Providing overlays to fix
the compliation.

Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
Krzysztof Chruscinski 2023-03-22 09:39:13 +01:00 committed by Fabio Baltieri
commit a5865949d9
6 changed files with 13 additions and 5 deletions

View file

@ -3,10 +3,6 @@
# Copyright (c) 2019 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
config COUNTER_RTC0
bool
default y if SOC_FAMILY_NRF
config COUNTER_SAM0_TC32
bool
default y if BOARD_ATSAMD20_XPRO

View file

@ -0,0 +1,3 @@
&rtc0 {
status = "okay";
};

View file

@ -0,0 +1,3 @@
&rtc0 {
status = "okay";
};

View file

@ -0,0 +1,3 @@
&rtc0 {
status = "okay";
};

View file

@ -0,0 +1,3 @@
&rtc0 {
status = "okay";
};

View file

@ -21,7 +21,7 @@ struct counter_alarm_cfg alarm_cfg;
#define TIMER DT_NODELABEL(tc0)
#elif defined(CONFIG_COUNTER_MICROCHIP_MCP7940N)
#define TIMER DT_NODELABEL(extrtc0)
#elif defined(CONFIG_COUNTER_RTC0)
#elif defined(CONFIG_COUNTER_NRF_RTC)
#define TIMER DT_NODELABEL(rtc0)
#elif defined(CONFIG_COUNTER_TIMER_STM32)
#define TIMER DT_INST(0, st_stm32_counter)