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

📄 synth-gui.html

📁 有关ecos2。0介绍了实时嵌入式的结构以及线程调度的实现和内存的管理等
💻 HTML
📖 第 1 页 / 共 2 页
字号:
>.    </P><DIVCLASS="INFORMALFIGURE"><ANAME="AEN18027"><P></P><DIVCLASS="MEDIAOBJECT"><P><IMGSRC="menu_view.png"ALIGN="CENTER"></P></DIV><P></P></DIV><P>The <SPANCLASS="GUIMENU">Help</SPAN> menu can be used to activate online helpfor eCos generally, for the synthetic target as a whole, and forspecific devices supported by the generic target. The Preferencesdialog can be used to select the browser that will be used.    </P><DIVCLASS="INFORMALFIGURE"><ANAME="AEN18033"><P></P><DIVCLASS="MEDIAOBJECT"><P><IMGSRC="menu_help.png"ALIGN="CENTER"></P></DIV><P></P></DIV><DIVCLASS="NOTE"><BLOCKQUOTECLASS="NOTE"><P><B>Note: </B>At the time of writing there is no well-defined toplevel index filefor all eCos documentation. Hence the relevant menu item is disabled.Documentation for the synthetic target and the supported devicesis stored as part of the package itself so can usually be found fairlyeasily. It may be necessary to set the <TTCLASS="ENVAR">ECOS_REPOSITORY</TT>environment variable.    </P></BLOCKQUOTE></DIV></DIV><DIVCLASS="REFSECT1"><ANAME="SYNTH-GUI-TEXT"></A><H2>The Main Text Window</H2><P>The central text window holds the console output from the eCosapplication: the screen shot above shows DHCP initialization data fromthe TCP/IP stack, and some output from the <TTCLASS="FUNCTION">main</TT>thread at the bottom. Some devices can insert text of their own, forexample the ethernet device support can be configured to show detailsof incoming and outgoing packets. Mixing the output from the eCosapplication and the various devices can make it easier to understandthe order in which events occur.    </P><P>The appearance of text from different sources can be controlled bymeans of filters, and it is also possible to hide some of the text.For example, if tracing is enabled in the eCos configuration then thetrace output can be given its own colour scheme, making it stand outfrom the rest of the output. In addition the trace output is generallyvoluminous so it can be hidden by default, made visible only to findout more about what was happening when a particular problem occurred.Similarly the ethernet device support can output details of thevarious packets being transferred, and using a different backgroundcolour for this output again makes it easier to distinguish fromconsole output.    </P><P>The default appearance for most filters is controlled via the<AHREF="synth-running.html#SYNTH-RUNNING-TDF">target definition file</A>. Anexample entry might be:    </P><TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="PROGRAMLISTING">  filter trace {^TRACE:.*} -foreground HotPink1 -hide 1</PRE></TD></TR></TABLE><P>The various colours and the hide flag for each filter can be changedat run-time, using the <SPANCLASS="GUIMENUITEM">System Filters</SPAN> itemon the <SPANCLASS="GUIMENU">View</SPAN> menu. This will bring up a dialog likethe following:    </P><DIVCLASS="INFORMALFIGURE"><ANAME="AEN18051"><P></P><DIVCLASS="MEDIAOBJECT"><P><IMGSRC="filters.png"ALIGN="CENTER"></P></DIV><P></P></DIV><P>It should be noted that the text window is line-oriented, notcharacter-oriented. If an eCos application sends a partial line oftext then that will remain buffered until a newline character isreceived, rather than being displayed immediately. This avoidsconfusion when there is concurrent output from several sources.    </P><P>By default the text window is read-only. This means it will not allowcut, paste and clear operations, and keyboard input will be ignored.The <SPANCLASS="GUIMENU">Edit</SPAN> menu has a checkbutton <SPANCLASS="GUIMENUITEM">ReadOnly</SPAN> which can be toggled to allow write operations. Forexample, a user could type in a reminder of what was happening at thistime, or paste in part of a gdb session. Such keyboard input does notget forwarded to the eCos application: if the latter requires keyboardinput then that should happen via a separate keyboard device.    </P></DIV><DIVCLASS="REFSECT1"><ANAME="SYNTH-GUI-LAYOUT"></A><H2>Positioning Optional Windows</H2><P>Some devices may create their own subwindows, for example to monitorethernet traffic or to provide additional I/O facilities such asemulated LED's or buttons. Usually the target definition file can beused to control the <AHREF="synth-gui.html#SYNTH-GUI-LAYOUT">layout</A> ofthese windows. This requires an understanding of the overall layout ofthe display.    </P><DIVCLASS="INFORMALFIGURE"><ANAME="AEN18063"><P></P><DIVCLASS="MEDIAOBJECT"><P><IMGSRC="layout.png"ALIGN="CENTER"></P></DIV><P></P></DIV><P>Subwindows are generally packed in one of eight frames surrounding thecentral text window: <TTCLASS="VARNAME">.main.nw</TT>,<TTCLASS="VARNAME">.main.n</TT>, <TTCLASS="VARNAME">.main.ne</TT>,<TTCLASS="VARNAME">.main.w</TT>, <TTCLASS="VARNAME">.main.e</TT>,<TTCLASS="VARNAME">.main.sw</TT>, <TTCLASS="VARNAME">.main.s</TT>, and<TTCLASS="VARNAME">.main.se</TT>. To position a row of LED's above the textwindow and towards the left, a target definition file could contain anentry such as:    </P><TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="PROGRAMLISTING">synth_device led {    pack -in .main.n -side left    &#8230;}</PRE></TD></TR></TABLE><P>Similarly, to put a traffic monitor window on the right of the textwindow would involve something like:    </P><TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="PROGRAMLISTING">    &#8230;    monitor_pack -in .main.e -side bottom    &#8230;</PRE></TD></TR></TABLE><P>Often it will be sufficient to specify a container frame and one of<TTCLASS="CONSTANT">left</TT>, <TTCLASS="CONSTANT">right</TT>,<TTCLASS="CONSTANT">top</TT> or <TTCLASS="CONSTANT">bottom</TT>. Full controlover the positioning requires an understanding of Tcl/Tk and inparticular the packing algorithm, and an appropriate reference workshould be consulted.    </P></DIV><DIVCLASS="REFSECT1"><ANAME="SYNTH-GUI-GLOBAL-CONFIG"></A><H2>Global Settings</H2><DIVCLASS="NOTE"><BLOCKQUOTECLASS="NOTE"><P><B>Note: </B>This section still to be written - it should document the interactionbetween X resources and ecosynth, and how users can control settingssuch as the main foreground and background colours.    </P></BLOCKQUOTE></DIV></DIV><DIVCLASS="NAVFOOTER"><HRALIGN="LEFT"WIDTH="100%"><TABLESUMMARY="Footer navigation table"WIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top"><AHREF="synth-running.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="ecos-ref.html"ACCESSKEY="H">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="synth-console.html"ACCESSKEY="N">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">Running a Synthetic Target Application</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="hal-synth-arch.html"ACCESSKEY="U">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">The Console Device</TD></TR></TABLE></DIV></BODY></HTML>

⌨️ 快捷键说明

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