Skip to content

Commit 104db64

Browse files
rob-robinson-14rlubos
authored andcommitted
tests: zephyr: drivers: counter: Add test support for nRF7120
Provide overlay file including prescalers for nrf7120 when running counter_basic_api tests. Update NRFX_COREDEP_DELAY_US_LOOP_CYCLES to default value of 3 based on measurements on emulator and FPGA. Signed-off-by: Robert Robinson <[email protected]>
1 parent fe3d595 commit 104db64

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

boards/nordic/nrf7120pdk/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,3 @@
22
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
33

44
zephyr_library_sources(board.c)
5-
6-
zephyr_compile_definitions_ifdef(CONFIG_BOARD_NRF7120PDK_NRF7120_CPUAPP_EMU NRFX_COREDEP_DELAY_US_LOOP_CYCLES=6)
7-
zephyr_compile_definitions_ifdef(CONFIG_BOARD_NRF7120PDK_NRF7120_CPUAPP NRFX_COREDEP_DELAY_US_LOOP_CYCLES=6)
Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,34 @@
11
&timer00 {
2+
prescaler = <6>;
23
status = "okay";
34
};
45

5-
// Timer 10 not working on the board, will be fixed in the future
6-
// &timer10 {
7-
// status = "okay";
8-
// };
6+
&timer10 {
7+
prescaler = <4>;
8+
status = "okay";
9+
};
910

1011
&timer20 {
12+
prescaler = <4>;
1113
status = "okay";
1214
};
1315

1416
&timer21 {
17+
prescaler = <4>;
1518
status = "okay";
1619
};
1720

1821
&timer22 {
22+
prescaler = <4>;
1923
status = "okay";
2024
};
2125

2226
&timer23 {
27+
prescaler = <4>;
2328
status = "okay";
2429
};
2530

2631
&timer24 {
32+
prescaler = <4>;
2733
status = "okay";
2834
};

0 commit comments

Comments
 (0)