blob: 47d015f493106acc5338d750ef244fb9eb1f0ec6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
|
<!DOCTYPE HTML>
<!-- Copyright (c) 2013 Texas Instruments Incorporated. All rights reserved. -->
<html>
<head>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
<title>I/O Control Demo 2</title>
<link rel="stylesheet" type="text/css" href="styles.css" />
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
<script src="javascript.js" language="JavaScript1.2" charset="utf-8"></script>
</head>
<body>
<!--#FormVars-->
<div id="heading">
<table width="100%">
<tr>
<td>
<a id="heading_ti" target="_" href="http://www.ti.com">
<img src="ti.jpg" alt="Texas Instruments">
</a>
</td>
<td width="100%">
<div id="heading_h1">
Tiva™ C Series TM4C129X Development Kit
</div>
<div id="heading_h2">
DK-TM4C129X
</div>
</td>
<td>
<a id="heading_tiva" target="_" href="http://www.ti.com/tiva">
<img src="tm4c.jpg" alt="TM4C">
</a>
</td>
</tr>
</table>
<hr><hr>
</div>
<div id="menu">
<ul>
<li><a href="about.htm" id="about">About TI</a></li>
<li><a href="overview.htm" id="overview">Tiva™ C Series Overview</a></li>
<li><a href="block.htm" id="block">TM4C129XNCZAD Block Diagram</a></li>
<li><a target="_" href="http://www.ti.com/tool/dk-tm4c129x">DK-TM4C129X Product Page</a></li>
<li><a target="_" href="http://www.ti.com/tiva-c">Tiva™ TM4C129x Family Product Page</a></li>
<li><a href="io_http.htm" id="io_http">I/O Control Demo 1<br>(HTTP Requests)</a></li>
<li><a href="io_cgi.ssi" id="io_cgi">I/O Control Demo 2<br>(SSI/CGI)</a></li>
</ul>
<img src="dk-tm4c129x.jpg" alt="DK-TM4C129X">
</div>
<div id="content">
<table width="100%">
<tbody>
<tr>
<td align="left" valign="top" width="75%">
<center>
<h2 align="center">I/O Control Demo 2</h2>
</center>
<hr size="2" width="100%">
<ul></ul>This demonstration shows another method of performing control and status reporting. This time, we use Server Side Include tags to replace text in the page as it is being server from the Tiva C Series DK board and standard HTML forms to send data to a CGI handler
running on the board. This example does cause the page to be reloaded whenever form data is submitted but it involves less complex HTML to perform the task.
<br>
<br>
<table align="center" border="1" width="80%">
<tbody>
<tr>
<td>
<form method="get" action="iocontrol.cgi" name="iocontrol">
<table align="center" border="0" cellpadding="2" cellspacing="2" width="100%">
<tbody>
<tr>
<td align="left" valign="top">
<b>Control</b>
</td>
<td align="center" valign="top">
<b>Current</b>
</td>
<td align="center" valign="top">
<b>New</b>
</td>
</tr>
<tr>
<td align="left" valign="top">LED State</td>
<td align="center" valign="top">
<!--#LEDtxt-->
</td>
<td align="center" valign="top">
<input name="LEDOn" value="1" type="checkbox">
</td>
</tr>
<tr>
<td align="left" valign="top">Animation Speed</td>
<td align="center" valign="top">
<!--#speed-->
</td>
<td align="center" valign="top">
<input value="10" maxlength="3" size="4" name="speed_percent">
</td>
</tr>
<tr>
<td colspan="3" rowspan="1" align="center" valign="middle">
<input name="Update" value="Update Settings" type="submit">
</td>
</tr>
</tbody>
</table>
</form>
</td>
</tr>
</tbody>
</table>
<ul></ul>
<br>
<table align="center" border="1" cellpadding="2" cellspacing="2" width="80%">
<tbody>
<tr>
<td align="left" valign="top">
<form method="get" action="settxt.cgi" name="settxt">
<table border="0" cellpadding="2" cellspacing="2" width="100%">
<tbody>
<tr align="center">
<td valign="top">
<b>Display this text on the screen:<br></b>
<input maxlength="40" size="40" name="DispText">
<input name="Display" value="Send Text" type="submit">
</td>
</tr>
</tbody>
</table>
</form>
</td>
</tr>
</tbody>
</table>
<br>
</td>
</tr>
</tbody>
</table>
</div>
<div id="footing">
<hr><hr>
Copyright © 2013-2014 Texas Instruments Incorporated. All rights reserved.
</div>
</body>
</html>
|