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:
Antonio Borneo 2009-12-30 07:48:49 +08:00 committed by David Brownell
parent 17fb7ead4b
commit 7c5acf8660
22 changed files with 401 additions and 402 deletions

View File

@ -121,7 +121,7 @@
]]></markup_code> ]]></markup_code>
<right_column> <right_column>
Quick start guide on how to configure a target. Quick start guide on how to configure a target.
</right_column> </right_column>
</pagetext> </pagetext>
@ -248,19 +248,19 @@
</tcl> </tcl>
<tr><td class="formtext" style="padding-top:1px;">Type</td><td> <tr><td class="formtext" style="padding-top:1px;">Type</td><td>
<select name="form_type"> <select name="form_type">
<option <option
<tcl>if {[string compare $form_type ""]==0} { append buffer {selected="selected"} } </tcl> <tcl>if {[string compare $form_type ""]==0} { append buffer {selected="selected"} } </tcl>
value ="">auto</option> value ="">auto</option>
<option <option
<tcl>if {[string compare $form_type "elf"]==0} { append buffer {selected="selected"} } </tcl> <tcl>if {[string compare $form_type "elf"]==0} { append buffer {selected="selected"} } </tcl>
value ="elf">elf</option> value ="elf">elf</option>
<option <option
<tcl>if {[string compare $form_type "bin"]==0} { append buffer {selected="selected"} } </tcl> <tcl>if {[string compare $form_type "bin"]==0} { append buffer {selected="selected"} } </tcl>
value ="bin">binary</option> value ="bin">binary</option>
<option <option
<tcl>if {[string compare $form_type "ihex"]==0} { append buffer {selected="selected"} } </tcl> <tcl>if {[string compare $form_type "ihex"]==0} { append buffer {selected="selected"} } </tcl>
value ="ihex">ihex</option> value ="ihex">ihex</option>
<!-- broken <option value ="s19">s19</option> --> <!-- broken <option value ="s19">s19</option> -->
</select> </select>
</td> </td>
@ -404,7 +404,7 @@
are used on this page. There are default implementations that do nothing. 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>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 on</b> - Power on target.</p>
<p><b>Power off</b> - Power off 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> <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>
<level2menu href="downloadmem.tcl" title="Download" titlestyle="color:#4e6627;"> <level2menu href="downloadmem.tcl" title="Download" titlestyle="color:#4e6627;">
<![CDATA[ <![CDATA[
Copy memory range to developer machine Copy memory range to developer machine
]]> ]]>
</level2menu> </level2menu>
@ -652,15 +652,15 @@ append console [encode [capture_catch poll]]
<td class="buttonspacesmall">&nbsp</td><td><input type="submit" name="form_action" value="Fill"></td></tr> <td class="buttonspacesmall">&nbsp</td><td><input type="submit" name="form_action" value="Fill"></td></tr>
<tr><td class="formtext">Type</td><td style="padding-top:1px;"> <tr><td class="formtext">Type</td><td style="padding-top:1px;">
<select name="form_type"> <select name="form_type">
<option <option
<tcl>if {[string compare $form_type "mdb"]==0} { append buffer {selected="selected"} } </tcl> value ="mdb">8 bit <tcl>if {[string compare $form_type "mdb"]==0} { append buffer {selected="selected"} } </tcl> value ="mdb">8 bit
</option> </option>
<option <option
<tcl>if {[string compare $form_type "mdh"]==0} { append buffer {selected="selected"} } </tcl> value ="mdh">16 bit <tcl>if {[string compare $form_type "mdh"]==0} { append buffer {selected="selected"} } </tcl> value ="mdh">16 bit
</option> </option>
<option <option
<tcl>if {[string compare $form_type "mdw"]==0} { append buffer {selected="selected"} } </tcl>value ="mdw">32 bit <tcl>if {[string compare $form_type "mdw"]==0} { append buffer {selected="selected"} } </tcl>value ="mdw">32 bit
</option> </option>
</select> </select>
</td></tr> </td></tr>
@ -698,7 +698,7 @@ append console [encode [capture_catch poll]]
<right_column> <right_column>
<![CDATA[ <![CDATA[
<p>Browse and edit target memory.<br> <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>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>CPU will be halted if required.</p>
<p><b>Modify</b> - Will modify only one byte, half-word or word starting at Address.</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>
<level2menu href="guiupload.tcl" title="Upload File" titlestyle="color:#4e6627;"> <level2menu href="guiupload.tcl" title="Upload File" titlestyle="color:#4e6627;">
<![CDATA[ <![CDATA[
Upload file Upload file
]]> ]]>
</level2menu> </level2menu>
@ -800,11 +800,11 @@ append console [encode [capture_catch poll]]
append buffer {<form action="openocd.tcl" method="post">} "\n" append buffer {<form action="openocd.tcl" method="post">} "\n"
append buffer {Command<br>} 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 [to_textarea $form_command]
append buffer {</textarea><br>} append buffer {</textarea><br>}
append buffer {<input type="submit" value="Run" name="form_action" ><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 [to_textarea $form_edittext]
append buffer {</textarea><br>} append buffer {</textarea><br>}
@ -897,7 +897,7 @@ append console [encode [capture_catch poll]]
]]></markup_code> ]]></markup_code>
<right_column> <right_column>
Quick start guide on how to configure a target. Quick start guide on how to configure a target.
</right_column> </right_column>
</pagetext> </pagetext>
@ -929,11 +929,11 @@ append console [encode [capture_catch poll]]
<tcl> <tcl>
foreach i {9600 19200 38400 57600 115200} { foreach i {9600 19200 38400 57600 115200} {
</tcl> </tcl>
<option <tcl>if {[string compare $form_baudrate $i]==0} { append buffer {selected="selected"} } </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> value ="<tcl>append buffer $i</tcl>"><tcl>append buffer $i</tcl></option>
<tcl> <tcl>
} }
</tcl> </tcl>
</select> </select>
<p> <p>

View File

@ -16,7 +16,7 @@
<html> <html>
<head> <head>
<title>OpenOCD debugger</title> <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"/> <link href="menuweb.css" rel="stylesheet" type="text/css"/>
</head> </head>
@ -142,96 +142,96 @@
</xsl:for-each> </xsl:for-each>
</tr> </tr>
</table> </table>
</td> </td>
</tr> </tr>
<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;"> <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 style="width:500px;background-color:#ffffff;height:100%;">
&nbsp; &nbsp;
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td colspan="6" style="background-color:#ffffff;text-indent:30px;height:40px;"> <td colspan="6" style="background-color:#ffffff;text-indent:30px;height:40px;">
<H1><xsl:value-of select="pageheading"/></H1> <H1><xsl:value-of select="pageheading"/></H1>
</td> </td>
</tr> </tr>
<tr style="height:100%;"> <tr style="height:100%;">
<td colspan="6" style="background-color:#ffffff;padding-left:30px;padding-right:30px;width=535px;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"/> <xsl:value-of disable-output-escaping="yes" select="pagetext/markup_code"/>
</td> </td>
</tr> </tr>
<tcl> <tcl>
<!-- This is the output from any OpenOCD commands --> <!-- This is the output from any OpenOCD commands -->
set toggle_details [formfetch toggle_details] set toggle_details [formfetch toggle_details]
if {[string length $toggle_details]==0} { if {[string length $toggle_details]==0} {
set toggle_details 0 set toggle_details 0
} }
set show_details [load_var show_details] set show_details [load_var show_details]
if {[string length $show_details]==0} { if {[string length $show_details]==0} {
set show_details 0 set show_details 0
} }
if {$toggle_details==1} { if {$toggle_details==1} {
set show_details [expr 1-$show_details] set show_details [expr 1-$show_details]
save_var show_details $show_details save_var show_details $show_details
} }
if {[string length $console]!=0} { if {[string length $console]!=0} {
</tcl> </tcl>
<tr style="height:100%;"> <tr style="height:100%;">
<td colspan="6" style="height:100%;background-color:red;"> <td colspan="6" style="height:100%;background-color:red;">
<table class="textgray" style="padding:0px;border-collapse:collapse;background-color:#ffffff;width:100%"> <table class="textgray" style="padding:0px;border-collapse:collapse;background-color:#ffffff;width:100%">
<td style="width:25px;">&nbsp;</td> <td style="width:25px;">&nbsp;</td>
<tcl> <tcl>
if {$show_details==1} { if {$show_details==1} {
append buffer <xsl:text disable-output-escaping="yes"><![CDATA[<]]></xsl:text> 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 {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> append buffer <xsl:text disable-output-escaping="yes"><![CDATA[>]]></xsl:text>
} else { } else {
append buffer <xsl:text disable-output-escaping="yes"><![CDATA[<]]></xsl:text> 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 {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> append buffer <xsl:text disable-output-escaping="yes"><![CDATA[>]]></xsl:text>
} }
</tcl> </tcl>
<a class="openocd"> <a class="openocd">
<xsl:attribute name="href"><xsl:value-of select="$pagetogenerate"/>?toggle_details=1</xsl:attribute> <xsl:attribute name="href"><xsl:value-of select="$pagetogenerate"/>?toggle_details=1</xsl:attribute>
<tcl> <tcl>
if {$show_details==1} { if {$show_details==1} {
append buffer "Hide details" append buffer "Hide details"
append buffer <br/> append buffer <br/>
} else { } else {
append buffer {<div style="position:relative;top:7px;text-align:center;">} append buffer {<div style="position:relative;top:7px;text-align:center;">}
append buffer "Show details" append buffer "Show details"
append buffer {</div>} append buffer {</div>}
} }
</tcl> </tcl>
</a> </a>
<tcl> <tcl>
if {$show_details==1} { if {$show_details==1} {
append buffer $console append buffer $console
} }
</tcl> </tcl>
<xsl:text disable-output-escaping="yes"><![CDATA[<]]></xsl:text>/td<xsl:text disable-output-escaping="yes"><![CDATA[>]]></xsl:text> <xsl:text disable-output-escaping="yes"><![CDATA[<]]></xsl:text>/td<xsl:text disable-output-escaping="yes"><![CDATA[>]]></xsl:text>
<tcl> <tcl>
if {$show_details!=1} { if {$show_details!=1} {
append buffer {<td>&nbsp;</td>} append buffer {<td>&nbsp;</td>}
} }
</tcl> </tcl>
<td style="width:25px;">&nbsp;</td> <td style="width:25px;">&nbsp;</td>
</table> </table>
</td> </td>
</tr> </tr>
<tcl> <tcl>
} }
</tcl> </tcl>
<tr> <tr>
<td colspan="6" style="height:30px;background-image:url('menu_cuts/center_bottom.png');background-repeat: no-repeat;background-position:top right;"> <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 style="width:500px;background-color:#ffffff;height:100%;">
&nbsp; &nbsp;
</div> </div>
</td> </td>
</tr> </tr>
</table> </table>
</td> </td>
<td style="width:6px;"> <td style="width:6px;">
</td> </td>
@ -240,36 +240,36 @@
<tr> <tr>
<td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab2_selected.png');background-repeat: no-repeat;"> <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;"> <div class="textgray" style="position:relative;top:7px;;font-weight:bold;text-align:center;width:100px;">
Documentation Documentation
</div> </div>
</td> </td>
<td width="40px"> <td width="40px">
&nbsp; &nbsp;
</td> </td>
<td> <td>
</td> </td>
</tr> </tr>
<tr> <tr>
<td colspan="3" style="height:10px;width:245px;background-image:url('menu_cuts/right_top_small.png');"></td> <td colspan="3" style="height:10px;width:245px;background-image:url('menu_cuts/right_top_small.png');"></td>
</tr> </tr>
<tr> <tr>
<td colspan="3" style="background-color:#d8d7d7;width:245px;padding-left:10px;padding-buttom:10px;line-height:17px;"> <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/> <a href="http://openocd.berlios.de/doc/openocd.pdf" target="_blank">OpenOCD Manual</a><br/>
</td> </td>
</tr> </tr>
<tr><td colspan="3" style="background-color:#d8d7d7;height:15px;"></td></tr> <tr><td colspan="3" style="background-color:#d8d7d7;height:15px;"></td></tr>
<tr> <tr>
<td colspan="3"> <td colspan="3">
<table style="padding:0px;border-collapse:collapse;"> <table style="padding:0px;border-collapse:collapse;">
<td style="background-color:#d8d7d7;width:10px;height:1px"></td> <td style="background-color:#d8d7d7;width:10px;height:1px"></td>
<td style="background-color:#999999;width:225px; height:1px;"></td> <td style="background-color:#999999;width:225px; height:1px;"></td>
<td style="background-color:#d8d7d7;width:10px;height:1px"></td> <td style="background-color:#d8d7d7;width:10px;height:1px"></td>
</table> </table>
</td> </td>
</tr> </tr>
<tr><td colspan="3" style="background-color:#d8d7d7;height:15px;"></td></tr> <tr><td colspan="3" style="background-color:#d8d7d7;height:15px;"></td></tr>
<tr style="height:100%;"> <tr style="height:100%;">
<td class="textgray" colspan="3" style="height:100%;background-color:#d8d7d7;padding-left:10px;padding-right:10px;"> <td class="textgray" colspan="3" style="height:100%;background-color:#d8d7d7;padding-left:10px;padding-right:10px;">
<xsl:choose> <xsl:choose>
<xsl:when test="(pagetext/right_column)"> <xsl:when test="(pagetext/right_column)">
<xsl:value-of disable-output-escaping="yes" select="pagetext/right_column"/> <xsl:value-of disable-output-escaping="yes" select="pagetext/right_column"/>
@ -278,13 +278,13 @@
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</td> </td>
</tr> </tr>
<tr> <tr>
<td colspan="3" style="height:30px;background-image:url('menu_cuts/right_bottom.png');"> <td colspan="3" style="height:30px;background-image:url('menu_cuts/right_bottom.png');">
&nbsp; &nbsp;
</td> </td>
</tr> </tr>
</table> </table>
</td> </td>

View File

@ -86,7 +86,7 @@ td
{ {
padding: 0px; padding: 0px;
font-size: 12px; font-size: 12px;
vertical-align:top; vertical-align:top;
} }
@ -95,7 +95,7 @@ td
color: #cccccc; color: #cccccc;
padding: 0px; padding: 0px;
font-size: 12px; font-size: 12px;
vertical-align:top; vertical-align:top;
} }

View File

@ -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. 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 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. to program the flash for this specific target. It is possible in the future this limitation to be removed.