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:
parent
40ec70fd2a
commit
a5865949d9
6 changed files with 13 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
&rtc0 {
|
||||
status = "okay";
|
||||
};
|
|
@ -0,0 +1,3 @@
|
|||
&rtc0 {
|
||||
status = "okay";
|
||||
};
|
|
@ -0,0 +1,3 @@
|
|||
&rtc0 {
|
||||
status = "okay";
|
||||
};
|
|
@ -0,0 +1,3 @@
|
|||
&rtc0 {
|
||||
status = "okay";
|
||||
};
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue