Skip to content

Commit f0b1a8a

Browse files
Add counter_nxp_lpit_api test case and enable test for mimxrt1180_evk
Signed-off-by: Felix Wang <fei.wang_3@nxp.com>
1 parent 30207d7 commit f0b1a8a

File tree

8 files changed

+800
-0
lines changed

8 files changed

+800
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
cmake_minimum_required(VERSION 3.20.0)
4+
5+
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
6+
project(counter_nxp_lpit_api)
7+
8+
FILE(GLOB app_sources src/*.c)
9+
target_sources(app PRIVATE ${app_sources})
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#
2+
# Copyright 2025 NXP
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
7+
CONFIG_COUNTER_MCUX_LPIT=y
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
/*
2+
* Copyright 2025 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&lpit1 {
8+
status = "okay";
9+
};
10+
11+
&lpit1_channel0 {
12+
status = "okay";
13+
};
14+
15+
&lpit1_channel1 {
16+
status = "okay";
17+
};
18+
19+
&lpit1_channel2 {
20+
status = "okay";
21+
};
22+
23+
&lpit1_channel3 {
24+
status = "okay";
25+
};
26+
27+
&lpit2 {
28+
status = "okay";
29+
};
30+
31+
&lpit2_channel0 {
32+
status = "okay";
33+
};
34+
35+
&lpit2_channel1 {
36+
status = "okay";
37+
};
38+
39+
&lpit2_channel2 {
40+
status = "okay";
41+
};
42+
43+
&lpit2_channel3 {
44+
status = "okay";
45+
};
46+
47+
&lpit3 {
48+
status = "okay";
49+
};
50+
51+
&lpit3_channel0 {
52+
status = "okay";
53+
};
54+
55+
&lpit3_channel1 {
56+
status = "okay";
57+
};
58+
59+
&lpit3_channel2 {
60+
status = "okay";
61+
};
62+
63+
&lpit3_channel3 {
64+
status = "okay";
65+
};
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#
2+
# Copyright 2025 NXP
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
7+
CONFIG_COUNTER_MCUX_LPIT=y
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
/*
2+
* Copyright 2025 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&lpit1 {
8+
status = "okay";
9+
};
10+
11+
&lpit1_channel0 {
12+
status = "okay";
13+
};
14+
15+
&lpit1_channel1 {
16+
status = "okay";
17+
};
18+
19+
&lpit1_channel2 {
20+
status = "okay";
21+
};
22+
23+
&lpit1_channel3 {
24+
status = "okay";
25+
};
26+
27+
&lpit2 {
28+
status = "okay";
29+
};
30+
31+
&lpit2_channel0 {
32+
status = "okay";
33+
};
34+
35+
&lpit2_channel1 {
36+
status = "okay";
37+
};
38+
39+
&lpit2_channel2 {
40+
status = "okay";
41+
};
42+
43+
&lpit2_channel3 {
44+
status = "okay";
45+
};
46+
47+
&lpit3 {
48+
status = "okay";
49+
};
50+
51+
&lpit3_channel0 {
52+
status = "okay";
53+
};
54+
55+
&lpit3_channel1 {
56+
status = "okay";
57+
};
58+
59+
&lpit3_channel2 {
60+
status = "okay";
61+
};
62+
63+
&lpit3_channel3 {
64+
status = "okay";
65+
};
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
CONFIG_COUNTER=y
2+
CONFIG_BT=n
3+
CONFIG_ZTEST=y
4+
CONFIG_TEST_USERSPACE=y
5+
CONFIG_LOG=y

0 commit comments

Comments
 (0)