1 # converted to .tcl by html2tcl.tcl
48 <html xmlns
="http://www.w3.org/TR/REC-html40">
50 <title
>Zylin ZY1000 JTAG debugger
</title
>
51 <meta charset
="utf-8" content
="text/html" http-equiv
="Content-Type"/>
52 <link type
="text/css" rel
="stylesheet" href
="menuweb.css"/>
57 set upload_filename
/ram
/upload
60 <body style
="margin:0px;">
61 <div style
="width:974px;height:85px;">
62 <div style
="float:left;position:relative;left:32px;width:478px;">
64 <img src
="menu_cuts/logo_top.png" style
="border:0px;"/>
67 <div style
="float:left;position:relative;height:26px; width:278px;left:122px;background-image:url('menu_cuts/top_right.png');">
68 <div style
="position:relative;left:15px;top:4px;" class
="textlight">
70 append buffer
[capture version
]
75 <table style
="padding:0px;border-collapse:collapse;">
77 <td style
="width:33px;">
78 <div style
="width:20px;height:510px;">
82 <td style
="vertical-align:top;height:100%;width:140px;padding:0px;">
83 <table style
="padding:0px;border-collapse:collapse;height:100%;width:140px;">
84 <tr style
="height:59px;">
88 <td style
="width:140px;height:38px;background-image:url('menu_cuts/v_tab.png');background-repeat: no-repeat;">
89 <div style
="position:relative;left:10px;top:10px;font-weight:bold;">
90 <a href
="openocd.tcl" style
="">Run Command
</a
>
95 <td style
="width:140px;height:38px;background-image:url('menu_cuts/v_tab.png');background-repeat: no-repeat;">
96 <div style
="position:relative;left:10px;top:10px;font-weight:bold;">
97 <a href
="guiupload.tcl" style
="">Upload File to ZY1000
</a
>
102 <td style
="width:140px;height:38px;background-image:url('menu_cuts/v_tab_selected.png');background-repeat: no-repeat;">
103 <div style
="position:relative;left:10px;top:10px;font-weight:bold;">
104 <a href
="log.tcl#tail" style
="">View Tail of Log
</a
>
109 <td style
="width:140px;height:35px;background-image:url('menu_cuts/v_1.png')"/>
112 <td style
="width:140px;background-image:url('menu_cuts/v_2_tile.png')"/>
115 <td style
="width:140px;height:140px;background-image:url('menu_cuts/v_3.png')"/>
119 <td style
="vertical-align:top;padding:0px;height:100%">
120 <table style
="padding:0px;border-collapse:collapse;height:100%;">
123 <table style
="padding:0px;border-collapse:collapse;">
125 <td style
="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
126 <div style
="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
127 <a href
="index.tcl">Config Target
</a
>
130 <td style
="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
131 <div style
="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
132 <a href
="flashinfo.tcl">Flash
</a
>
135 <td style
="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
136 <div style
="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
137 <a href
="browsemem.tcl">Memory
</a
>
140 <td style
="width:103px;height:29px;background-image:url('menu_cuts/h_tab1_selected.png');background-repeat: no-repeat;">
141 <div style
="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
142 <a href
="openocd.tcl" style
="font-weight: bold;">OpenOCD
</a
>
150 <td style
="height:30px;width:535px;background-image:url('menu_cuts/center_top.png');background-repeat: no-repeat;background-position:top right;" colspan
="6">
151 <div style
="width:500px;background-color:#ffffff;height:100%;">
157 <td style
="background-color:#ffffff;text-indent:30px;height:40px;" colspan
="6">
158 <H1
>View Tail of Log
</H1
>
161 <tr style
="height:100%;">
162 <td style
="background-color:#ffffff;padding-left:30px;padding-right:30px;width=535px;height:100%;" colspan
="6">
165 append buffer
"<code style=\"white-space: nowrap;\">"
166 append buffer
[encode
[log
]]
167 append buffer
{<p
><p
><p
><a name
="tail"/>}
168 append buffer
{<a href
="log.tcl}
169 append buffer "?rnd
=[rand
]"
170 append buffer {#tail">Refresh
</a
>}
172 append buffer
"</code>";
181 set toggle_details
[formfetch toggle_details
]
182 if {[string length
$toggle_details]==0} {
185 set show_details
[load_var show_details
]
186 if {[string length
$show_details]==0} {
189 if {$toggle_details==1} {
190 set show_details
[expr 1-$show_details]
191 save_var show_details
$show_details
194 if {[string length
$console]!=0} {
197 <tr style
="height:100%;">
198 <td style
="height:100%;background-color:red;" colspan
="6">
199 <table style
="padding:0px;border-collapse:collapse;background-color:#ffffff;width:100%" class
="textgray">
200 <td style
="width:25px;"> 
;</td
>
203 if {$show_details==1} {
205 append buffer
{td style
="background-color:#dddddd;padding-left:5px;padding-right:5px;padding-top:3px;padding-bottom:3px;"}
209 append buffer
{td style
="background-image:url('menu_cuts/h_tab_free.png');width:110px;height:29px;background-repeat: no-repeat;background-position:top left;"}
214 <a class
="openocd" href
="log.tcl?toggle_details=1">
217 if {$show_details==1} {
218 append buffer
"Hide details"
221 append buffer
{<div style
="position:relative;top:7px;text-align:center;">}
222 append buffer
"Show details"
223 append buffer
{</div
>}
230 if {$show_details==1} {
231 append buffer
$console
234 append buffer
{</td
>}
236 if {$show_details!=1} {
237 append buffer
{<td
> 
;</td
>}
241 <td style
="width:25px;"> 
;</td
>
251 <td style
="height:30px;background-image:url('menu_cuts/center_bottom.png');background-repeat: no-repeat;background-position:top right;" colspan
="6">
252 <div style
="width:500px;background-color:#ffffff;height:100%;">
259 <td style
="width:6px;"/>
260 <td style
="width:245px;height:100%">
261 <table style
="padding:0px;border-collapse:collapse;height:100%;">
263 <td style
="width:103px;height:29px;background-image:url('menu_cuts/h_tab2_selected.png');background-repeat: no-repeat;">
264 <div style
="position:relative;top:7px;;font-weight:bold;text-align:center;width:100px;" class
="textgray">
274 <td style
="height:10px;width:245px;background-image:url('menu_cuts/right_top_small.png');" colspan
="3"/>
277 <td style
="background-color:#d8d7d7;width:245px;padding-left:10px;padding-buttom:10px;line-height:17px;" colspan
="3">
278 <a target
="_blank" href
="http://www.zylin.com/zy1000/ZY1000_Quick_Start_Guide.pdf">Quick Start Manual
</a
>
280 <a target
="_blank" href
="http://www.zylin.com/zy1000/openocd.pdf">OpenOCD Manual
</a
>
282 <a target
="_blank" href
="http://www.zylin.com/zy1000_contact.html">Contact Zylin AS
</a
>
286 <td style
="background-color:#d8d7d7;height:15px;" colspan
="3"/>
290 <table style
="padding:0px;border-collapse:collapse;">
291 <td style
="background-color:#d8d7d7;width:10px;height:1px"/>
292 <td style
="background-color:#999999;width:225px; height:1px;"/>
293 <td style
="background-color:#d8d7d7;width:10px;height:1px"/>
298 <td style
="background-color:#d8d7d7;height:15px;" colspan
="3"/>
300 <tr style
="height:100%;">
301 <td style
="height:100%;background-color:#d8d7d7;padding-left:10px;padding-right:10px;" colspan
="3" class
="textgray"/>
304 <td style
="height:30px;background-image:url('menu_cuts/right_bottom.png');" colspan
="3">
314 <img border
="0" src
="menu_cuts/logo_bottom.png"/>
341 write_chunked
$buffer