This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git

commit 56045e8e3d350f69a53d46afc963855be5e1d8d0
Author: chenrun1 <[email protected]>
AuthorDate: Thu Aug 17 12:21:47 2023 +0800

    memtester:Two new bit-width test items
    
    Because it may cause unaligned access problems with some hardware, these
    two tests are not turned on by default, and are enabled or disabled
    through Kconfig.
    
    Signed-off-by: chenrun1 <[email protected]>
---
 testing/memtester/Kconfig  | 7 +++++++
 testing/memtester/Makefile | 4 ++++
 2 files changed, 11 insertions(+)

diff --git a/testing/memtester/Kconfig b/testing/memtester/Kconfig
index 2b093be0e..9a4c17653 100644
--- a/testing/memtester/Kconfig
+++ b/testing/memtester/Kconfig
@@ -32,4 +32,11 @@ config UTILS_MEMTESTER_PRIORITY
        int "Task PRIORITY"
        default 100
 
+config UTILS_MEMTESTER_NARROW
+       bool "TEST_NARROW"
+       default n
+       ---help---
+               Turn on the "test_8bit_wide_random test_16bit_wide_random" 
tests, which
+               may result in unaligned access on some platforms.
+
 endif
diff --git a/testing/memtester/Makefile b/testing/memtester/Makefile
index 5f1d5aa60..97cef3bf6 100644
--- a/testing/memtester/Makefile
+++ b/testing/memtester/Makefile
@@ -26,6 +26,10 @@ CSRCS    += memtester/output.c
 
 MAINSRC   = memtester/memtester.c
 
+ifeq ($(CONFIG_UTILS_MEMTESTER_NARROW),y)
+  CFLAGS += -DTEST_NARROW_WRITES
+endif
+
 ifeq ($(wildcard memtester/.git),)
 VERSION ?= master
 memtester.zip:

Reply via email to