whitespace cleanup, mostly for docs
Remove useless space/tab at end of lines. Remove spaces in indentation and replace with tab. Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
This commit is contained in:
parent
17fb7ead4b
commit
7c5acf8660
|
@ -121,7 +121,7 @@
|
|||
]]></markup_code>
|
||||
<right_column>
|
||||
|
||||
Quick start guide on how to configure a target.
|
||||
Quick start guide on how to configure a target.
|
||||
</right_column>
|
||||
</pagetext>
|
||||
|
||||
|
@ -248,19 +248,19 @@
|
|||
</tcl>
|
||||
<tr><td class="formtext" style="padding-top:1px;">Type</td><td>
|
||||
<select name="form_type">
|
||||
<option
|
||||
<tcl>if {[string compare $form_type ""]==0} { append buffer {selected="selected"} } </tcl>
|
||||
value ="">auto</option>
|
||||
<option
|
||||
<tcl>if {[string compare $form_type "elf"]==0} { append buffer {selected="selected"} } </tcl>
|
||||
value ="elf">elf</option>
|
||||
<option
|
||||
<tcl>if {[string compare $form_type "bin"]==0} { append buffer {selected="selected"} } </tcl>
|
||||
value ="bin">binary</option>
|
||||
<option
|
||||
<tcl>if {[string compare $form_type "ihex"]==0} { append buffer {selected="selected"} } </tcl>
|
||||
value ="ihex">ihex</option>
|
||||
<!-- broken <option value ="s19">s19</option> -->
|
||||
<option
|
||||
<tcl>if {[string compare $form_type ""]==0} { append buffer {selected="selected"} } </tcl>
|
||||
value ="">auto</option>
|
||||
<option
|
||||
<tcl>if {[string compare $form_type "elf"]==0} { append buffer {selected="selected"} } </tcl>
|
||||
value ="elf">elf</option>
|
||||
<option
|
||||
<tcl>if {[string compare $form_type "bin"]==0} { append buffer {selected="selected"} } </tcl>
|
||||
value ="bin">binary</option>
|
||||
<option
|
||||
<tcl>if {[string compare $form_type "ihex"]==0} { append buffer {selected="selected"} } </tcl>
|
||||
value ="ihex">ihex</option>
|
||||
<!-- broken <option value ="s19">s19</option> -->
|
||||
</select>
|
||||
</td>
|
||||
|
||||
|
@ -404,7 +404,7 @@
|
|||
are used on this page. There are default implementations that do nothing.
|
||||
|
||||
<p><b>Upload firmware</b> - Power cycle target, reset target and program raw binary file to flash bank 0, offset 0 and verify flash programming. Leave target powered on.</p>
|
||||
<p><b>Test</b> - Power up target, run 10 second target test. Output is provided via the DCC output channel. </p>
|
||||
<p><b>Test</b> - Power up target, run 10 second target test. Output is provided via the DCC output channel. </p>
|
||||
<p><b>Power on</b> - Power on target.</p>
|
||||
<p><b>Power off</b> - Power off target.</p>
|
||||
<p><b>Serial number</b> - A target script can use this string in the production procedure. Type "help production" for more info.</p>
|
||||
|
@ -570,7 +570,7 @@ append console [encode [capture_catch poll]]
|
|||
</level2menu>
|
||||
<level2menu href="downloadmem.tcl" title="Download" titlestyle="color:#4e6627;">
|
||||
<![CDATA[
|
||||
Copy memory range to developer machine
|
||||
Copy memory range to developer machine
|
||||
]]>
|
||||
</level2menu>
|
||||
|
||||
|
@ -652,15 +652,15 @@ append console [encode [capture_catch poll]]
|
|||
<td class="buttonspacesmall"> </td><td><input type="submit" name="form_action" value="Fill"></td></tr>
|
||||
<tr><td class="formtext">Type</td><td style="padding-top:1px;">
|
||||
<select name="form_type">
|
||||
<option
|
||||
<tcl>if {[string compare $form_type "mdb"]==0} { append buffer {selected="selected"} } </tcl> value ="mdb">8 bit
|
||||
</option>
|
||||
<option
|
||||
<tcl>if {[string compare $form_type "mdh"]==0} { append buffer {selected="selected"} } </tcl> value ="mdh">16 bit
|
||||
</option>
|
||||
<option
|
||||
<tcl>if {[string compare $form_type "mdw"]==0} { append buffer {selected="selected"} } </tcl>value ="mdw">32 bit
|
||||
</option>
|
||||
<option
|
||||
<tcl>if {[string compare $form_type "mdb"]==0} { append buffer {selected="selected"} } </tcl> value ="mdb">8 bit
|
||||
</option>
|
||||
<option
|
||||
<tcl>if {[string compare $form_type "mdh"]==0} { append buffer {selected="selected"} } </tcl> value ="mdh">16 bit
|
||||
</option>
|
||||
<option
|
||||
<tcl>if {[string compare $form_type "mdw"]==0} { append buffer {selected="selected"} } </tcl>value ="mdw">32 bit
|
||||
</option>
|
||||
</select>
|
||||
|
||||
</td></tr>
|
||||
|
@ -698,7 +698,7 @@ append console [encode [capture_catch poll]]
|
|||
<right_column>
|
||||
<![CDATA[
|
||||
<p>Browse and edit target memory.<br>
|
||||
Length is in bytes, maximum 4096 bytes.</p>
|
||||
Length is in bytes, maximum 4096 bytes.</p>
|
||||
<p>An error message is shown when trying to browse or edit memory which cases a CPU fault.</p>
|
||||
<p>CPU will be halted if required.</p>
|
||||
<p><b>Modify</b> - Will modify only one byte, half-word or word starting at Address.</p>
|
||||
|
@ -783,7 +783,7 @@ append console [encode [capture_catch poll]]
|
|||
</level2menu>
|
||||
<level2menu href="guiupload.tcl" title="Upload File" titlestyle="color:#4e6627;">
|
||||
<![CDATA[
|
||||
Upload file
|
||||
Upload file
|
||||
]]>
|
||||
</level2menu>
|
||||
|
||||
|
@ -800,11 +800,11 @@ append console [encode [capture_catch poll]]
|
|||
|
||||
append buffer {<form action="openocd.tcl" method="post">} "\n"
|
||||
append buffer {Command<br>}
|
||||
append buffer {<textarea style="overflow:auto;" rows="5" cols="65" name="form_command" wrap="off">}
|
||||
append buffer {<textarea style="overflow:auto;" rows="5" cols="65" name="form_command" wrap="off">}
|
||||
append buffer [to_textarea $form_command]
|
||||
append buffer {</textarea><br>}
|
||||
append buffer {<input type="submit" value="Run" name="form_action" ><br>}
|
||||
append buffer {<textarea style="overflow:auto;" rows="21" cols="65" name="form_edittext" readonly=1 wrap="off">}
|
||||
append buffer {<textarea style="overflow:auto;" rows="21" cols="65" name="form_edittext" readonly=1 wrap="off">}
|
||||
append buffer [to_textarea $form_edittext]
|
||||
append buffer {</textarea><br>}
|
||||
|
||||
|
@ -897,7 +897,7 @@ append console [encode [capture_catch poll]]
|
|||
]]></markup_code>
|
||||
<right_column>
|
||||
|
||||
Quick start guide on how to configure a target.
|
||||
Quick start guide on how to configure a target.
|
||||
</right_column>
|
||||
</pagetext>
|
||||
|
||||
|
@ -929,11 +929,11 @@ append console [encode [capture_catch poll]]
|
|||
<tcl>
|
||||
foreach i {9600 19200 38400 57600 115200} {
|
||||
</tcl>
|
||||
<option <tcl>if {[string compare $form_baudrate $i]==0} { append buffer {selected="selected"} } </tcl>
|
||||
value ="<tcl>append buffer $i</tcl>"><tcl>append buffer $i</tcl></option>
|
||||
<tcl>
|
||||
}
|
||||
</tcl>
|
||||
<option <tcl>if {[string compare $form_baudrate $i]==0} { append buffer {selected="selected"} } </tcl>
|
||||
value ="<tcl>append buffer $i</tcl>"><tcl>append buffer $i</tcl></option>
|
||||
<tcl>
|
||||
}
|
||||
</tcl>
|
||||
</select>
|
||||
|
||||
<p>
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>OpenOCD debugger</title>
|
||||
<meta http-equiv="Content-Type" content="text/html" charset="utf-8"/>
|
||||
<meta http-equiv="Content-Type" content="text/html" charset="utf-8"/>
|
||||
<link href="menuweb.css" rel="stylesheet" type="text/css"/>
|
||||
|
||||
</head>
|
||||
|
@ -142,96 +142,96 @@
|
|||
</xsl:for-each>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="6" style="height:30px;width:535px;background-image:url('menu_cuts/center_top.png');background-repeat: no-repeat;background-position:top right;">
|
||||
<div style="width:500px;background-color:#ffffff;height:100%;">
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="6" style="background-color:#ffffff;text-indent:30px;height:40px;">
|
||||
<H1><xsl:value-of select="pageheading"/></H1>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="height:100%;">
|
||||
<td colspan="6" style="background-color:#ffffff;padding-left:30px;padding-right:30px;width=535px;height:100%;">
|
||||
<tr>
|
||||
<td colspan="6" style="height:30px;width:535px;background-image:url('menu_cuts/center_top.png');background-repeat: no-repeat;background-position:top right;">
|
||||
<div style="width:500px;background-color:#ffffff;height:100%;">
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="6" style="background-color:#ffffff;text-indent:30px;height:40px;">
|
||||
<H1><xsl:value-of select="pageheading"/></H1>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="height:100%;">
|
||||
<td colspan="6" style="background-color:#ffffff;padding-left:30px;padding-right:30px;width=535px;height:100%;">
|
||||
<xsl:value-of disable-output-escaping="yes" select="pagetext/markup_code"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tcl>
|
||||
<!-- This is the output from any OpenOCD commands -->
|
||||
set toggle_details [formfetch toggle_details]
|
||||
if {[string length $toggle_details]==0} {
|
||||
set toggle_details 0
|
||||
}
|
||||
set show_details [load_var show_details]
|
||||
if {[string length $show_details]==0} {
|
||||
set show_details 0
|
||||
}
|
||||
if {$toggle_details==1} {
|
||||
set show_details [expr 1-$show_details]
|
||||
save_var show_details $show_details
|
||||
}
|
||||
</td>
|
||||
</tr>
|
||||
<tcl>
|
||||
<!-- This is the output from any OpenOCD commands -->
|
||||
set toggle_details [formfetch toggle_details]
|
||||
if {[string length $toggle_details]==0} {
|
||||
set toggle_details 0
|
||||
}
|
||||
set show_details [load_var show_details]
|
||||
if {[string length $show_details]==0} {
|
||||
set show_details 0
|
||||
}
|
||||
if {$toggle_details==1} {
|
||||
set show_details [expr 1-$show_details]
|
||||
save_var show_details $show_details
|
||||
}
|
||||
|
||||
if {[string length $console]!=0} {
|
||||
</tcl>
|
||||
<tr style="height:100%;">
|
||||
<td colspan="6" style="height:100%;background-color:red;">
|
||||
if {[string length $console]!=0} {
|
||||
</tcl>
|
||||
<tr style="height:100%;">
|
||||
<td colspan="6" style="height:100%;background-color:red;">
|
||||
<table class="textgray" style="padding:0px;border-collapse:collapse;background-color:#ffffff;width:100%">
|
||||
<td style="width:25px;"> </td>
|
||||
<tcl>
|
||||
if {$show_details==1} {
|
||||
append buffer <xsl:text disable-output-escaping="yes"><![CDATA[<]]></xsl:text>
|
||||
append buffer {td style="background-color:#dddddd;padding-left:5px;padding-right:5px;padding-top:3px;padding-bottom:3px;"}
|
||||
append buffer <xsl:text disable-output-escaping="yes"><![CDATA[>]]></xsl:text>
|
||||
} else {
|
||||
append buffer <xsl:text disable-output-escaping="yes"><![CDATA[<]]></xsl:text>
|
||||
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;"}
|
||||
append buffer <xsl:text disable-output-escaping="yes"><![CDATA[>]]></xsl:text>
|
||||
}
|
||||
</tcl>
|
||||
<a class="openocd">
|
||||
<td style="width:25px;"> </td>
|
||||
<tcl>
|
||||
if {$show_details==1} {
|
||||
append buffer <xsl:text disable-output-escaping="yes"><![CDATA[<]]></xsl:text>
|
||||
append buffer {td style="background-color:#dddddd;padding-left:5px;padding-right:5px;padding-top:3px;padding-bottom:3px;"}
|
||||
append buffer <xsl:text disable-output-escaping="yes"><![CDATA[>]]></xsl:text>
|
||||
} else {
|
||||
append buffer <xsl:text disable-output-escaping="yes"><![CDATA[<]]></xsl:text>
|
||||
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;"}
|
||||
append buffer <xsl:text disable-output-escaping="yes"><![CDATA[>]]></xsl:text>
|
||||
}
|
||||
</tcl>
|
||||
<a class="openocd">
|
||||
<xsl:attribute name="href"><xsl:value-of select="$pagetogenerate"/>?toggle_details=1</xsl:attribute>
|
||||
<tcl>
|
||||
if {$show_details==1} {
|
||||
append buffer "Hide details"
|
||||
append buffer <br/>
|
||||
append buffer <br/>
|
||||
} else {
|
||||
append buffer {<div style="position:relative;top:7px;text-align:center;">}
|
||||
append buffer "Show details"
|
||||
append buffer {</div>}
|
||||
}
|
||||
</tcl>
|
||||
</a>
|
||||
<tcl>
|
||||
if {$show_details==1} {
|
||||
append buffer $console
|
||||
}
|
||||
</tcl>
|
||||
</a>
|
||||
<tcl>
|
||||
if {$show_details==1} {
|
||||
append buffer $console
|
||||
}
|
||||
</tcl>
|
||||
<xsl:text disable-output-escaping="yes"><![CDATA[<]]></xsl:text>/td<xsl:text disable-output-escaping="yes"><![CDATA[>]]></xsl:text>
|
||||
<tcl>
|
||||
if {$show_details!=1} {
|
||||
append buffer {<td> </td>}
|
||||
}
|
||||
if {$show_details!=1} {
|
||||
append buffer {<td> </td>}
|
||||
}
|
||||
</tcl>
|
||||
<td style="width:25px;"> </td>
|
||||
</table>
|
||||
</td>
|
||||
<td style="width:25px;"> </td>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tcl>
|
||||
<tcl>
|
||||
}
|
||||
</tcl>
|
||||
<tr>
|
||||
<td colspan="6" style="height:30px;background-image:url('menu_cuts/center_bottom.png');background-repeat: no-repeat;background-position:top right;">
|
||||
<div style="width:500px;background-color:#ffffff;height:100%;">
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<tr>
|
||||
<td colspan="6" style="height:30px;background-image:url('menu_cuts/center_bottom.png');background-repeat: no-repeat;background-position:top right;">
|
||||
<div style="width:500px;background-color:#ffffff;height:100%;">
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td style="width:6px;">
|
||||
</td>
|
||||
|
@ -240,36 +240,36 @@
|
|||
<tr>
|
||||
<td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab2_selected.png');background-repeat: no-repeat;">
|
||||
<div class="textgray" style="position:relative;top:7px;;font-weight:bold;text-align:center;width:100px;">
|
||||
Documentation
|
||||
Documentation
|
||||
</div>
|
||||
</td>
|
||||
<td width="40px">
|
||||
|
||||
</td>
|
||||
<td>
|
||||
</td>
|
||||
</td>
|
||||
<td width="40px">
|
||||
|
||||
</td>
|
||||
<td>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" style="height:10px;width:245px;background-image:url('menu_cuts/right_top_small.png');"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" style="background-color:#d8d7d7;width:245px;padding-left:10px;padding-buttom:10px;line-height:17px;">
|
||||
<a href="http://openocd.berlios.de/doc/openocd.pdf" target="_blank">OpenOCD Manual</a><br/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td colspan="3" style="background-color:#d8d7d7;height:15px;"></td></tr>
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
<table style="padding:0px;border-collapse:collapse;">
|
||||
<td style="background-color:#d8d7d7;width:10px;height:1px"></td>
|
||||
<td style="background-color:#999999;width:225px; height:1px;"></td>
|
||||
<td style="background-color:#d8d7d7;width:10px;height:1px"></td>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td colspan="3" style="background-color:#d8d7d7;height:15px;"></td></tr>
|
||||
<tr style="height:100%;">
|
||||
<td class="textgray" colspan="3" style="height:100%;background-color:#d8d7d7;padding-left:10px;padding-right:10px;">
|
||||
<tr>
|
||||
<td colspan="3" style="height:10px;width:245px;background-image:url('menu_cuts/right_top_small.png');"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" style="background-color:#d8d7d7;width:245px;padding-left:10px;padding-buttom:10px;line-height:17px;">
|
||||
<a href="http://openocd.berlios.de/doc/openocd.pdf" target="_blank">OpenOCD Manual</a><br/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td colspan="3" style="background-color:#d8d7d7;height:15px;"></td></tr>
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
<table style="padding:0px;border-collapse:collapse;">
|
||||
<td style="background-color:#d8d7d7;width:10px;height:1px"></td>
|
||||
<td style="background-color:#999999;width:225px; height:1px;"></td>
|
||||
<td style="background-color:#d8d7d7;width:10px;height:1px"></td>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td colspan="3" style="background-color:#d8d7d7;height:15px;"></td></tr>
|
||||
<tr style="height:100%;">
|
||||
<td class="textgray" colspan="3" style="height:100%;background-color:#d8d7d7;padding-left:10px;padding-right:10px;">
|
||||
<xsl:choose>
|
||||
<xsl:when test="(pagetext/right_column)">
|
||||
<xsl:value-of disable-output-escaping="yes" select="pagetext/right_column"/>
|
||||
|
@ -278,13 +278,13 @@
|
|||
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" style="height:30px;background-image:url('menu_cuts/right_bottom.png');">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" style="height:30px;background-image:url('menu_cuts/right_bottom.png');">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
|
|
|
@ -86,7 +86,7 @@ td
|
|||
{
|
||||
padding: 0px;
|
||||
font-size: 12px;
|
||||
vertical-align:top;
|
||||
vertical-align:top;
|
||||
|
||||
}
|
||||
|
||||
|
@ -95,7 +95,7 @@ td
|
|||
color: #cccccc;
|
||||
padding: 0px;
|
||||
font-size: 12px;
|
||||
vertical-align:top;
|
||||
vertical-align:top;
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
Here you'll find a simple example tested with PIC32 Starter kit (source code and .elf file). It will blink repeatedly the LEDs on the board.
|
||||
The program was compiled and written on the target using MPLAB IDE v 8.0 that comes with the kit because openocd is missing currently the ability
|
||||
to program the flash for this specific target. It is possible in the future this limitation to be removed.
|
||||
|
Loading…
Reference in New Issue