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

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

commit a56cf41c263ba371590895bcdc873b2e3944d693
Author: Acfboy <[email protected]>
AuthorDate: Thu Jul 30 01:20:41 2026 +0800

    sim/mw: add mw configuration for Microwindows demo
    
    Add the sim:mw defconfig and board documentation entry for the
    Microwindows demo.  This configuration uses the virtual keyboard
    (event mode), touchscreen, and X11-based framebuffer.
    
    Signed-off-by: Acfboy <[email protected]>
    Assisted-by: Opencode/Deepseek-V4-pro
---
 .../platforms/sim/sim/boards/sim/index.rst         | 17 +++++++++++
 boards/sim/sim/sim/configs/mw/defconfig            | 35 ++++++++++++++++++++++
 2 files changed, 52 insertions(+)

diff --git a/Documentation/platforms/sim/sim/boards/sim/index.rst 
b/Documentation/platforms/sim/sim/boards/sim/index.rst
index 30d3e4f022a..c672ad53dc5 100644
--- a/Documentation/platforms/sim/sim/boards/sim/index.rst
+++ b/Documentation/platforms/sim/sim/boards/sim/index.rst
@@ -925,6 +925,23 @@ mtdrwb
 This is the ``apps/examples/mtdrwb`` test using a MTD RAM driver to simulate 
the
 FLASH part.
 
+mw
+--
+
+Microwindows demo configuration using virtual keyboard (event mode),
+touchscreen, and X11-based framebuffer.
+
+Build the demo with::
+
+   cd nuttx
+   tools/configure.sh sim:mw
+   make -j$(nproc)
+
+This builds a host-native ``./nuttx`` binary that opens an X11 window.
+Keyboard input goes to the window that has focus; touch events are generated
+by mouse clicks within the window.  See
+:doc:`/applications/graphics/microwindows/index` for Microwindows details.
+
 nettest
 -------
 
diff --git a/boards/sim/sim/sim/configs/mw/defconfig 
b/boards/sim/sim/sim/configs/mw/defconfig
new file mode 100644
index 00000000000..d35c0fda64c
--- /dev/null
+++ b/boards/sim/sim/sim/configs/mw/defconfig
@@ -0,0 +1,35 @@
+#
+# This file is autogenerated: PLEASE DO NOT EDIT IT.
+#
+# You can use "make menuconfig" to make any modifications to the installed 
.config file.
+# You can then do "make savedefconfig" to generate a new defconfig file that 
includes your
+# modifications.
+#
+CONFIG_ARCH="sim"
+CONFIG_ARCH_BOARD="sim"
+CONFIG_ARCH_BOARD_SIM=y
+CONFIG_ARCH_CHIP="sim"
+CONFIG_ARCH_SIM=y
+CONFIG_DEBUG_SYMBOLS=y
+CONFIG_DRIVERS_VIDEO=y
+CONFIG_EXAMPLES_MICROWINDOWS=y
+CONFIG_EXAMPLES_MICROWINDOWS_PROGNAME="mwdemo"
+CONFIG_FRAME_POINTER=y
+CONFIG_GRAPHICS_MICROWINDOWS=y
+CONFIG_IDLETHREAD_STACKSIZE=4096
+CONFIG_INIT_ENTRYPOINT="mwdemo_main"
+CONFIG_INIT_STACKSIZE=32768
+CONFIG_INPUT=y
+CONFIG_MICROWINDOWS_MOUSE_TS=y
+CONFIG_MICROWINDOWS_MWIN=y
+CONFIG_PSEUDOTERM=y
+CONFIG_SIM_FBHEIGHT=768
+CONFIG_SIM_FBWIDTH=1024
+CONFIG_SIM_KEYBOARD=y
+CONFIG_SIM_TOUCHSCREEN=y
+CONFIG_SIM_WALLTIME_SIGNAL=y
+CONFIG_SIM_X11FB=y
+CONFIG_START_DAY=12
+CONFIG_START_MONTH=6
+CONFIG_START_YEAR=2026
+CONFIG_VIDEO_FB=y

Reply via email to