⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 synth-gui.html

📁 有关ecos2。0介绍了实时嵌入式的结构以及线程调度的实现和内存的管理等
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!-- Copyright (C) 2003 Red Hat, Inc.                                --><!-- This material may be distributed only subject to the terms      --><!-- and conditions set forth in the Open Publication License, v1.0  --><!-- or later (the latest version is presently available at          --><!-- http://www.opencontent.org/openpub/).                           --><!-- Distribution of the work or derivative of the work in any       --><!-- standard (paper) book form is prohibited unless prior           --><!-- permission is obtained from the copyright holder.               --><HTML><HEAD><TITLE>The I/O Auxiliary's User Interface</TITLE><meta name="MSSmartTagsPreventParsing" content="TRUE"><METANAME="GENERATOR"CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+"><LINKREL="HOME"TITLE="eCos Reference Manual"HREF="ecos-ref.html"><LINKREL="UP"TITLE="eCos Synthetic Target"HREF="hal-synth-arch.html"><LINKREL="PREVIOUS"TITLE="Running a Synthetic Target Application"HREF="synth-running.html"><LINKREL="NEXT"TITLE="The Console Device"HREF="synth-console.html"></HEAD><BODYCLASS="REFENTRY"BGCOLOR="#FFFFFF"TEXT="#000000"LINK="#0000FF"VLINK="#840084"ALINK="#0000FF"><DIVCLASS="NAVHEADER"><TABLESUMMARY="Header navigation table"WIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><THCOLSPAN="3"ALIGN="center">eCos Reference Manual</TH></TR><TR><TDWIDTH="10%"ALIGN="left"VALIGN="bottom"><AHREF="synth-running.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom"></TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="synth-console.html"ACCESSKEY="N">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><H1><ANAME="SYNTH-GUI">The I/O Auxiliary's User Interface</H1><DIVCLASS="REFNAMEDIV"><ANAME="AEN17960"></A><H2>Name</H2>User Interface&nbsp;--&nbsp;Controlling the I/O Auxiliary</DIV><DIVCLASS="REFSECT1"><ANAME="SYNTH-GUI-DESCRIPTION"></A><H2>Description</H2><P>The synthetic target auxiliary is designed to support both extensionsand user customization. Support for the desired devices is dynamicallyloaded, and each device can extend the user interface. For example itis possible for a device to add menu options, place new buttons on thetoolbar, create its own sub-window within the overall layout, or evencreate entire new toplevel windows. These subwindows or toplevelscould show graphs of activity such as interrupts or packets beingtransferred. They could also allow users to interact with the eCosapplication, for example by showing a number of buttons which will bemapped on to digital inputs in the eCos application. Differentapplications will have their own I/O requirements, changing thehost-side support files that get loaded and that may modify the userinterface. The I/O auxiliary also reads in user configuration scriptswhich can enhance the interface in the same way. Therefore the exactuser interface will depend on the user and on the eCos applicationbeing run. However the overall layout is likely to remain the same.    </P><DIVCLASS="INFORMALFIGURE"><ANAME="AEN17966"><P></P><DIVCLASS="MEDIAOBJECT"><P><IMGSRC="screen_main.png"ALIGN="CENTER"></P></DIV><P></P></DIV><P>The title bar identifies the window as belonging to an eCos synthetictarget application and lists both the application name and its processid. The latter is especially useful if the application was starteddirectly from a shell prompt and the user now wants to attach a gdbsession. The window has a conventional menu bar with the usualentries, plus a toolbar with buttons for common operations such as cutand paste. Balloon help is supported.    </P><P>There is a central <AHREF="synth-gui.html#SYNTH-GUI-TEXT">text window</A>,possibly surrounded by various sub-windows for various devices. Forexample there could be a row of emulated LED's above the text window,and monitors of ethernet traffic and interrupt activity on the right.At the bottom of the window is a status line, including a smallanimation that shows whether or not the eCos application is stillrunning.    </P></DIV><DIVCLASS="REFSECT1"><ANAME="SYNTH-GUI-MENUS"></A><H2>Menus and the Toolbar</H2><P>Usually there will be four menus on the menu bar:<SPANCLASS="GUIMENU">File</SPAN>, <SPANCLASS="GUIMENU">Edit</SPAN>,<SPANCLASS="GUIMENU">View</SPAN> and <SPANCLASS="GUIMENU">Help</SPAN>.    </P><DIVCLASS="INFORMALFIGURE"><ANAME="AEN17980"><P></P><DIVCLASS="MEDIAOBJECT"><P><IMGSRC="menu_file.png"ALIGN="CENTER"></P></DIV><P></P></DIV><P>On the <SPANCLASS="GUIMENU">File</SPAN> menu there are three entries related tosaving the current contents of the central text window.<SPANCLASS="GUIMENUITEM">Save</SPAN> is used to save the currently visiblecontents of the text window. Any text that is hidden because offilters will not be written to the savefile. If there has been aprevious <SPANCLASS="GUIMENUITEM">Save</SPAN> or <SPANCLASS="GUIMENUITEM">SaveAs</SPAN> operation then the existing savefile will be re-used,otherwise the user will be asked to select a suitable file.<SPANCLASS="GUIMENUITEM">Save As</SPAN> also saves just the currentlyvisible contents but will always prompt the user for a filename.<SPANCLASS="GUIMENUITEM">Save All</SPAN> can be used to save the fullcontents of the text window, including any text that is currentlyhidden. It will always prompt for a new filename, to avoid confusionwith partial savefiles.    </P><P>Usually the eCos application will be run from inside gdb or from ashell prompt. Killing off the application while it is being debuggedin a gdb session is not a good idea, it would be better to use gdb'sown <BCLASS="COMMAND">kill</B> command. Alternatively the eCosapplication itself can use the <TTCLASS="FUNCTION">CYG_TEST_EXIT</TT> or<TTCLASS="FILENAME">cyg_hal_sys_exit</TT> functionality. However it ispossible to terminate the application from the I/O auxiliary using<SPANCLASS="GUIMENUITEM">Kill eCos</SPAN>. A clean shutdown will beattempted, but that can fail if the application is currently haltedinside gdb or if it has crashed completely. As a last resort<TTCLASS="CONSTANT">SIGKILL</TT> will be used.    </P><P>When operating in graphical mode the I/O auxiliary will normallycontinue to run even after the eCos application has exited. Thisallows the user to examine the last few lines of output, and perhapsperform actions such as saving the output to a file. The<SPANCLASS="GUIMENUITEM">Exit</SPAN> menu item can be used to shut down theauxiliary. Note that this behaviour can be changed with command linearguments <AHREF="synth-running.html#SYNTH-RUNNING-ARGUMENTS"><TTCLASS="OPTION">--exit</TT></A> and<AHREF="synth-running.html#SYNTH-RUNNING-ARGUMENTS"><TTCLASS="OPTION">--no-exit</TT></A>.    </P><P>If <SPANCLASS="GUIMENUITEM">Exit</SPAN> is used while the eCos applicationis still running then the I/O auxiliary will first attempt toterminate the application cleanly, and then exit.    </P><DIVCLASS="INFORMALFIGURE"><ANAME="AEN18005"><P></P><DIVCLASS="MEDIAOBJECT"><P><IMGSRC="menu_edit.png"ALIGN="CENTER"></P></DIV><P></P></DIV><P>The <SPANCLASS="GUIMENU">Edit</SPAN> menu contains the usual entries fortext manipulation: <SPANCLASS="GUIMENUITEM">Cut</SPAN>,<SPANCLASS="GUIMENUITEM">Copy</SPAN>, <SPANCLASS="GUIMENUITEM">Paste</SPAN>,<SPANCLASS="GUIMENUITEM">Clear</SPAN> and <SPANCLASS="GUIMENUITEM">SelectAll</SPAN>. These all operate on the central text window. Bydefault this window cannot be edited so the cut, paste and clearoperations are disabled. If the user wants to edit the contents of thetext window then the <SPANCLASS="GUIMENUITEM">Read Only</SPAN> checkbuttonshould be toggled.    </P><P>The <SPANCLASS="GUIMENUITEM">Preferences</SPAN> menu item brings up amiscellaneous preferences dialog. One of the preferences relates toonline help: the I/O auxiliary does not currently have a built-in htmlviewer; instead it will execute an external browser of some sort. Withthe example settings shown, the I/O auxiliary will first attempt tointeract with an existing mozilla session. If that fails it will tryto run a new mozilla instance, or as a last result use the Gnome helpviewer.     </P><DIVCLASS="INFORMALFIGURE"><ANAME="AEN18019"><P></P><DIVCLASS="MEDIAOBJECT"><P><IMGSRC="preferences.png"ALIGN="CENTER"></P></DIV><P></P></DIV><P>The <SPANCLASS="GUIMENU">View</SPAN> menu contains the <SPANCLASS="GUIMENUITEM">SystemFilters</SPAN> entry, used to edit the settings for the current<AHREF="synth-gui.html#SYNTH-GUI-TEXT">filters</A

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -