Skip to content

Commit 7c5c4ef

Browse files
committed
tests: display: add test case using display_harness
add a test case for display using display harness Signed-off-by: Hake Huang <hake.huang@nxp.com>
1 parent 6752db1 commit 7c5c4ef

14 files changed

+591
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
cmake_minimum_required(VERSION 3.20.0)
4+
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
5+
project(display)
6+
7+
target_sources(app PRIVATE src/main.c)
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Copyright (c) 2024 Renesas Electronics Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
CONFIG_HEAP_MEM_POOL_SIZE=90440
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#
2+
# Copyright 2025 NXP
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
CONFIG_PM=y
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/*
2+
* Copyright 2025 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&standby {
8+
status = "okay";
9+
};
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#
2+
# Copyright 2022, NXP
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
7+
# Sample will allocate buffer equal to: (panelwidth / 8) * (panelwidth / 4) * pixel depth. For a
8+
# 1280x720 display in a 32-bpp format (e.g. ARGB8888), this is (720 / 8) * (720 / 4) * 4 = 64800
9+
# bytes. We include 128 bytes of padding for kernel heap structures
10+
CONFIG_HEAP_MEM_POOL_SIZE=64928
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#
2+
# Copyright 2023, NXP
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
7+
# Sample will allocate buffer equal to: (panelwidth / 8) * (panelwidth / 4) * pixel depth. For a
8+
# 1280x720 display in a 32-bpp format (e.g. ARGB8888), this is (720 / 8) * (720 / 4) * 4 = 64800
9+
# bytes. We include 128 bytes of padding for kernel heap structures
10+
CONFIG_HEAP_MEM_POOL_SIZE=64928
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#
2+
# Copyright 2023, NXP
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
7+
# Sample will allocate buffer equal to: (panelwidth / 8) * (panelwidth / 4) * pixel depth. For a
8+
# 1280x720 display in a 32-bpp format (e.g. ARGB8888), this is (720 / 8) * (720 / 4) * 4 = 64800
9+
# bytes. We include 128 bytes of padding for kernel heap structures
10+
CONFIG_HEAP_MEM_POOL_SIZE=64928
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Copyright (c) 2025 ST Microelectronics
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
# On STM32N6 DK board, display being larger, it requires
5+
# more memory to draw squares on the display (40K)
6+
CONFIG_HEAP_MEM_POOL_SIZE=65536
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Copyright (c) 2025 ST Microelectronics
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
# On STM32N6 DK board, display being larger, it requires
5+
# more memory to draw squares on the display (40K)
6+
CONFIG_HEAP_MEM_POOL_SIZE=65536
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#
2+
# Copyright (c) 2025 STMicroelectronics
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
7+
CONFIG_HEAP_MEM_POOL_SIZE=172840
8+
CONFIG_IDLE_STACK_SIZE=8192
9+
CONFIG_PRIVILEGED_STACK_SIZE=8192
10+
CONFIG_MAIN_STACK_SIZE=4096

0 commit comments

Comments
 (0)