http://wiki.bralug.de/index.php?title=Tux_fliegt_zu_den_Sternen&feed=atom&action=history
Tux fliegt zu den Sternen - Versionsgeschichte
2024-03-29T10:12:22Z
Versionsgeschichte dieser Seite in BraLUG-Wiki
MediaWiki 1.19.1
http://wiki.bralug.de/index.php?title=Tux_fliegt_zu_den_Sternen&diff=8493&oldid=prev
Bergeruw: /* Stellaris Launchpad */
2013-11-10T00:11:33Z
<p><span dir="auto"><span class="autocomment">Stellaris Launchpad</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">Nächstältere Version-></td>
<td colspan='2' style="background-color: white; color:black;">Version vom 10. November 2013, 00:11 Uhr</td>
</tr><tr><td colspan="2" class="diff-lineno">Zeile 7:</td>
<td colspan="2" class="diff-lineno">Zeile 7:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=Stellaris Launchpad=</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=Stellaris Launchpad=</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">[[Bild:Stellaris launchpad.jpg|thumb|200px|Stellaris Launchpad]]</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[http://www.ti.com/tool/EK-LM4F120XL Herstellerseite...]</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[http://www.ti.com/tool/EK-LM4F120XL Herstellerseite...]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
</table>
Bergeruw
http://wiki.bralug.de/index.php?title=Tux_fliegt_zu_den_Sternen&diff=8477&oldid=prev
Bergeruw: /* Tipps und Tricks */
2013-11-01T19:31:07Z
<p><span dir="auto"><span class="autocomment">Tipps und Tricks</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">Nächstältere Version-></td>
<td colspan='2' style="background-color: white; color:black;">Version vom 1. November 2013, 19:31 Uhr</td>
</tr><tr><td colspan="2" class="diff-lineno">Zeile 154:</td>
<td colspan="2" class="diff-lineno">Zeile 154:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Nach dem Restart von udev (Befehl: /etc/init.d/udev restart) kann man auch als Nicht-root zugreifen.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Nach dem Restart von udev (Befehl: /etc/init.d/udev restart) kann man auch als Nicht-root zugreifen.</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del style="color: red; font-weight: bold; text-decoration: none;"></del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>==Benutzung der GPIO-Pins PD0, PD1, PB6, PB7==</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>==Benutzung der GPIO-Pins PD0, PD1, PB6, PB7==</div></td></tr>
<tr><td colspan="2" class="diff-lineno">Zeile 167:</td>
<td colspan="2" class="diff-lineno">Zeile 166:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Innerhalb des [[Scopeclock|Scopeclock-Projektes]] habe ich dies mit einem Digital-Analog-Wandler (TLC7528) und einer RTC (DS1307), welche beide eine Versorgungsspannung von 5V benötigen, erfolgreich ausprobiert. Als PullUp-Widerstände des I²C-Bus der RTC wurden dabei 4,7kOhm gegen die 3,3V der Launchpad-Spannungsversorgung geschaltet.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Innerhalb des [[Scopeclock|Scopeclock-Projektes]] habe ich dies mit einem Digital-Analog-Wandler (TLC7528) und einer RTC (DS1307), welche beide eine Versorgungsspannung von 5V benötigen, erfolgreich ausprobiert. Als PullUp-Widerstände des I²C-Bus der RTC wurden dabei 4,7kOhm gegen die 3,3V der Launchpad-Spannungsversorgung geschaltet.</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del style="color: red; font-weight: bold; text-decoration: none;"></del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>==Button 2 (PF0)==</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>==Button 2 (PF0)==</div></td></tr>
</table>
Bergeruw
http://wiki.bralug.de/index.php?title=Tux_fliegt_zu_den_Sternen&diff=8476&oldid=prev
Bergeruw: /* Stellaris Launchpad mit 5V-Peripherie-ICs */
2013-11-01T19:30:24Z
<p><span dir="auto"><span class="autocomment">Stellaris Launchpad mit 5V-Peripherie-ICs</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">Nächstältere Version-></td>
<td colspan='2' style="background-color: white; color:black;">Version vom 1. November 2013, 19:30 Uhr</td>
</tr><tr><td colspan="2" class="diff-lineno">Zeile 167:</td>
<td colspan="2" class="diff-lineno">Zeile 167:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Innerhalb des [[Scopeclock|Scopeclock-Projektes]] habe ich dies mit einem Digital-Analog-Wandler (TLC7528) und einer RTC (DS1307), welche beide eine Versorgungsspannung von 5V benötigen, erfolgreich ausprobiert. Als PullUp-Widerstände des I²C-Bus der RTC wurden dabei 4,7kOhm gegen die 3,3V der Launchpad-Spannungsversorgung geschaltet.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Innerhalb des [[Scopeclock|Scopeclock-Projektes]] habe ich dies mit einem Digital-Analog-Wandler (TLC7528) und einer RTC (DS1307), welche beide eine Versorgungsspannung von 5V benötigen, erfolgreich ausprobiert. Als PullUp-Widerstände des I²C-Bus der RTC wurden dabei 4,7kOhm gegen die 3,3V der Launchpad-Spannungsversorgung geschaltet.</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">==Button 2 (PF0)==</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"><pre></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">...</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">// Unlock PF0 so we can change it to a GPIO input</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">// Once we have enabled (unlocked) the commit register then re-lock it</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">// to prevent further changes.  PF0 is muxed with NMI thus a special case.</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">//</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">HWREG(BUTTONS_GPIO_BASE + GPIO_O_LOCK) = GPIO_LOCK_KEY_DD;</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">HWREG(BUTTONS_GPIO_BASE + GPIO_O_CR) |= 0x01;</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">HWREG(BUTTONS_GPIO_BASE + GPIO_O_LOCK) = 0;</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">...</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></pre></ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=Weiterführende Links=</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=Weiterführende Links=</div></td></tr>
</table>
Bergeruw
http://wiki.bralug.de/index.php?title=Tux_fliegt_zu_den_Sternen&diff=8475&oldid=prev
Bergeruw: /* Benutzung der GPIO-Pins PD0, PD1, PB6, PB7 */
2013-11-01T14:57:00Z
<p><span dir="auto"><span class="autocomment">Benutzung der GPIO-Pins PD0, PD1, PB6, PB7</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">Nächstältere Version-></td>
<td colspan='2' style="background-color: white; color:black;">Version vom 1. November 2013, 14:57 Uhr</td>
</tr><tr><td colspan="2" class="diff-lineno">Zeile 162:</td>
<td colspan="2" class="diff-lineno">Zeile 162:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>D.h. also, wenn man diese Pins benutzen möchte, sollten diese Widerstände ausgelötet oder andere Pins verwendet werden. In meinem Fall werde ich erst mal die Widerstände drin lassen, aber für PD0...PD2 andere Pins benutzen.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>D.h. also, wenn man diese Pins benutzen möchte, sollten diese Widerstände ausgelötet oder andere Pins verwendet werden. In meinem Fall werde ich erst mal die Widerstände drin lassen, aber für PD0...PD2 andere Pins benutzen.</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">==Stellaris Launchpad mit 5V-Peripherie-ICs==</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">Die MCU auf dem Launchpad wird mit 3,3V versorgt. Laut Datenblatt sind die GPIO-Eingänge 5V-tolerant und die Spannungen der GPIO-Ausgänge wird mit mindestens 2,4V (bei Hight) angegeben, was für die gängigen 5V-ICs reichen sollte. Glücklicherweise befindet sich auf dem Launchpad auch ein Anschluß, auf welchen die 5V der USB-Buchse abgenommen werden kann und über den die 5V-ICs versorgt werden könnten.</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">Innerhalb des [[Scopeclock|Scopeclock-Projektes]] habe ich dies mit einem Digital-Analog-Wandler (TLC7528) und einer RTC (DS1307), welche beide eine Versorgungsspannung von 5V benötigen, erfolgreich ausprobiert. Als PullUp-Widerstände des I²C-Bus der RTC wurden dabei 4,7kOhm gegen die 3,3V der Launchpad-Spannungsversorgung geschaltet.</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=Weiterführende Links=</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=Weiterführende Links=</div></td></tr>
</table>
Bergeruw
http://wiki.bralug.de/index.php?title=Tux_fliegt_zu_den_Sternen&diff=8474&oldid=prev
Bergeruw: /* Weiterführende Links */
2013-10-29T22:10:56Z
<p><span dir="auto"><span class="autocomment">Weiterführende Links</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">Nächstältere Version-></td>
<td colspan='2' style="background-color: white; color:black;">Version vom 29. Oktober 2013, 22:10 Uhr</td>
</tr><tr><td colspan="2" class="diff-lineno">Zeile 176:</td>
<td colspan="2" class="diff-lineno">Zeile 176:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* [https://eehusky.wordpress.com/2012/12/04/using-gcc-with-ti-stellaris-launchpad-a-more-in-depth-look/ https://eehusky.wordpress.com/2012/12/04/using-gcc-with-ti-stellaris-launchpad-a-more-in-depth-look/]</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* [https://eehusky.wordpress.com/2012/12/04/using-gcc-with-ti-stellaris-launchpad-a-more-in-depth-look/ https://eehusky.wordpress.com/2012/12/04/using-gcc-with-ti-stellaris-launchpad-a-more-in-depth-look/]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* [http://www.fischl.de/arm/sllogiclogger_logic_analyser_for_stellaris_launchpad/ http://www.fischl.de/arm/sllogiclogger_logic_analyser_for_stellaris_launchpad/]</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* [http://www.fischl.de/arm/sllogiclogger_logic_analyser_for_stellaris_launchpad/ http://www.fischl.de/arm/sllogiclogger_logic_analyser_for_stellaris_launchpad/]</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">* [http://e2e.ti.com/support/microcontrollers/tiva_arm/f/908/t/169023.aspx?pi275769 http://e2e.ti.com/support/microcontrollers/tiva_arm/f/908/t/169023.aspx?pi275769]</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=Kontakt=</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=Kontakt=</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[[Benutzer:bergeruw|Uwe]]</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[[Benutzer:bergeruw|Uwe]]</div></td></tr>
</table>
Bergeruw
http://wiki.bralug.de/index.php?title=Tux_fliegt_zu_den_Sternen&diff=8463&oldid=prev
Bergeruw: /* Zugriff auf /dev/ttyACMx als Nicht-root-Benutzer */
2013-10-22T07:28:30Z
<p><span dir="auto"><span class="autocomment">Zugriff auf /dev/ttyACMx als Nicht-root-Benutzer</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">Nächstältere Version-></td>
<td colspan='2' style="background-color: white; color:black;">Version vom 22. Oktober 2013, 07:28 Uhr</td>
</tr><tr><td colspan="2" class="diff-lineno">Zeile 154:</td>
<td colspan="2" class="diff-lineno">Zeile 154:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Nach dem Restart von udev (Befehl: /etc/init.d/udev restart) kann man auch als Nicht-root zugreifen.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Nach dem Restart von udev (Befehl: /etc/init.d/udev restart) kann man auch als Nicht-root zugreifen.</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">==Benutzung der GPIO-Pins PD0, PD1, PB6, PB7==</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">Nach zwei Tagen verzweifelter Fehlersuche in einem Programm bzw. der dazugehörigen Schaltung (PB0...PB7 und PD0...PD2 sollten als Ausgänge benutzt werden), habe ich durch Zufall einen interessanten [http://processors.wiki.ti.com/index.php/BoosterPack_Standards_and_Design_Guide#Shared_Pins_on_the_Stellaris_LaunchPad Hinweis] gefunden:</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">Um auf dem Stellaris Launchpad auch BoosterPacks für das MSP430-Launchpad weiterhin benutzen zu können, sind im Lieferzustand die GPIO-Pins PD0/PB6 und PD1/PB7 jeweils mit einem "Null-Ohm"-Widerstand (R9, R10) verbunden. </ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">D.h. also, wenn man diese Pins benutzen möchte, sollten diese Widerstände ausgelötet oder andere Pins verwendet werden. In meinem Fall werde ich erst mal die Widerstände drin lassen, aber für PD0...PD2 andere Pins benutzen.</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=Weiterführende Links=</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=Weiterführende Links=</div></td></tr>
</table>
Bergeruw
http://wiki.bralug.de/index.php?title=Tux_fliegt_zu_den_Sternen&diff=8461&oldid=prev
Bergeruw: /* Kommandozeilen-Toolchain auf Basis einer Energia-Installation */
2013-10-20T11:11:40Z
<p><span dir="auto"><span class="autocomment">Kommandozeilen-Toolchain auf Basis einer Energia-Installation</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">Nächstältere Version-></td>
<td colspan='2' style="background-color: white; color:black;">Version vom 20. Oktober 2013, 11:11 Uhr</td>
</tr><tr><td colspan="2" class="diff-lineno">Zeile 57:</td>
<td colspan="2" class="diff-lineno">Zeile 57:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>LIBC_PATH=$(shell $(CC) $(CFLAGS) -print-file-name=libc.a)</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>LIBC_PATH=$(shell $(CC) $(CFLAGS) -print-file-name=libc.a)</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>LIBM_PATH=$(shell $(CC) $(CFLAGS) -print-file-name=libm.a)</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>LIBM_PATH=$(shell $(CC) $(CFLAGS) -print-file-name=libm.a)</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">LIBSW_PATH=$(STELLARISWARE)/driverlib/gcc-cm4f/*.o</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>LFLAGS = --gc-sections --entry ResetISR</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>LFLAGS = --gc-sections --entry ResetISR</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>CPFLAGS = -Obinary</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>CPFLAGS = -Obinary</div></td></tr>
<tr><td colspan="2" class="diff-lineno">Zeile 73:</td>
<td colspan="2" class="diff-lineno">Zeile 74:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>$(TARGET).axf: $(OBJS)</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>$(TARGET).axf: $(OBJS)</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div> $(LD) -T $(LINKER_FILE) $(LFLAGS) -o $(TARGET).axf $(OBJS) $(LIBM_PATH) $(LIBC_PATH) $(LIB_GCC_PATH)</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div> $(LD) -T $(LINKER_FILE) $(LFLAGS) -o $(TARGET).axf $(OBJS) $(LIBM_PATH) $(LIBC_PATH) $(LIB_GCC_PATH<ins class="diffchange diffchange-inline">) $(LIBSW_PATH</ins>)</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>$(TARGET): $(TARGET).axf</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>$(TARGET): $(TARGET).axf</div></td></tr>
</table>
Bergeruw
http://wiki.bralug.de/index.php?title=Tux_fliegt_zu_den_Sternen&diff=8458&oldid=prev
Bergeruw: /* Kommandozeilen-Toolchain auf Basis einer Energia-Installation */
2013-10-19T11:47:17Z
<p><span dir="auto"><span class="autocomment">Kommandozeilen-Toolchain auf Basis einer Energia-Installation</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">Nächstältere Version-></td>
<td colspan='2' style="background-color: white; color:black;">Version vom 19. Oktober 2013, 11:47 Uhr</td>
</tr><tr><td colspan="2" class="diff-lineno">Zeile 20:</td>
<td colspan="2" class="diff-lineno">Zeile 20:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div></pre></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div></pre></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>Will man das Rad nicht ständig neu erfinden, sollte man die frei erhältliche [http://www.ti.com/tool/sw-ek-lm4f120xl StellarisWare] von TI installieren. Das heruntergeladene Archivfile entpackt man dazu in ein beliebiges Verzeichnis auf seinem Rechner und führt dort das Makefile aus:</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>Will man das Rad nicht ständig neu erfinden, sollte man die frei erhältliche [http://www.ti.com/tool/sw-ek-lm4f120xl StellarisWare] von TI <ins class="diffchange diffchange-inline">(alternativ auch von [https://github.com/yuvadm/stellaris hier]) </ins>installieren. Das heruntergeladene Archivfile entpackt man dazu in ein beliebiges Verzeichnis auf seinem Rechner und führt dort das Makefile aus:</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div><pre></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div><pre></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>$ make</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>$ make</div></td></tr>
</table>
Bergeruw
http://wiki.bralug.de/index.php?title=Tux_fliegt_zu_den_Sternen&diff=8457&oldid=prev
Bergeruw: /* Kommandozeilen-Toolchain auf Basis einer Energia-Installation */
2013-10-19T11:45:25Z
<p><span dir="auto"><span class="autocomment">Kommandozeilen-Toolchain auf Basis einer Energia-Installation</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">Nächstältere Version-></td>
<td colspan='2' style="background-color: white; color:black;">Version vom 19. Oktober 2013, 11:45 Uhr</td>
</tr><tr><td colspan="2" class="diff-lineno">Zeile 92:</td>
<td colspan="2" class="diff-lineno">Zeile 92:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Mit einem kleinen "Hello World", z.B.:</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Mit einem kleinen "Hello World", z.B.:</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div><pre></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div><pre></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">#include <stdint.h></ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>#include "inc/hw_gpio.h"</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>#include "inc/hw_gpio.h"</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>#include "inc/hw_memmap.h"</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>#include "inc/hw_memmap.h"</div></td></tr>
<tr><td colspan="2" class="diff-lineno">Zeile 100:</td>
<td colspan="2" class="diff-lineno">Zeile 101:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>#include "driverlib/sysctl.h"</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>#include "driverlib/sysctl.h"</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>      </div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>      </div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>#define LED_RED GPIO_PIN_1</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>#define LED_RED <ins class="diffchange diffchange-inline"> </ins>GPIO_PIN_1</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>#define LED_BLUE GPIO_PIN_2</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>#define LED_BLUE <ins class="diffchange diffchange-inline"> </ins>GPIO_PIN_2</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>#define LED_GREEN GPIO_PIN_3</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>#define LED_GREEN <ins class="diffchange diffchange-inline"> </ins>GPIO_PIN_3</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">uint8_t i;</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>      </div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>      </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>int main()</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>int main()</div></td></tr>
<tr><td colspan="2" class="diff-lineno">Zeile 109:</td>
<td colspan="2" class="diff-lineno">Zeile 112:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div> ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOF);</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div> ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOF);</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div> ROM_GPIOPinTypeGPIOOutput(GPIO_PORTF_BASE, LED_RED|LED_BLUE|LED_GREEN);</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div> ROM_GPIOPinTypeGPIOOutput(GPIO_PORTF_BASE, LED_RED|LED_BLUE|LED_GREEN);</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div> <del class="diffchange diffchange-inline">for </del>(<del class="diffchange diffchange-inline">;;</del>) {</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div> <ins class="diffchange diffchange-inline">i = 1;</ins></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline"> // set the red LED pin high, others low</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline"> while </ins>(<ins class="diffchange diffchange-inline">1</ins>) {</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div> ROM_GPIOPinWrite(GPIO_PORTF_BASE, LED_RED|LED_GREEN|LED_BLUE, 0);</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div> ROM_GPIOPinWrite(GPIO_PORTF_BASE, LED_RED|LED_GREEN|LED_BLUE, 0);</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div> ROM_GPIOPinWrite(GPIO_PORTF_BASE, LED_RED|LED_GREEN|LED_BLUE, <del class="diffchange diffchange-inline">LED_RED);</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div> ROM_GPIOPinWrite(GPIO_PORTF_BASE, LED_RED|LED_GREEN|LED_BLUE, <ins class="diffchange diffchange-inline">i</ins>);</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline"> ROM_SysCtlDelay(5000000);</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline"> ROM_GPIOPinWrite(GPIO_PORTF_BASE, LED_RED|LED_GREEN|LED_BLUE, 0);</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline"> ROM_GPIOPinWrite(GPIO_PORTF_BASE, LED_RED|LED_GREEN|LED_BLUE, LED_GREEN);</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline"> ROM_SysCtlDelay(5000000);</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline"> ROM_GPIOPinWrite(GPIO_PORTF_BASE, LED_RED|LED_GREEN|LED_BLUE, 0);</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline"> ROM_GPIOPinWrite(GPIO_PORTF_BASE, LED_RED|LED_GREEN|LED_BLUE, LED_BLUE</del>);</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div> ROM_SysCtlDelay(5000000);</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div> ROM_SysCtlDelay(5000000);</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"> i *= 2;</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"> if (i>8) i=1; </ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div> }</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div> }</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>}</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>}</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div></pre></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div></pre></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td colspan="2" class="diff-lineno">Zeile 137:</td>
<td colspan="2" class="diff-lineno">Zeile 137:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div></pre></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div></pre></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>Es sollten nacheinander alle drei Farben der RGB-LED auf dem Stellaris-Launchpad <del class="diffchange diffchange-inline">leuchten</del>.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>Es sollten nacheinander alle drei Farben der RGB-LED auf dem Stellaris-Launchpad <ins class="diffchange diffchange-inline">blinken</ins>.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=Tipps und Tricks=</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=Tipps und Tricks=</div></td></tr>
</table>
Bergeruw
http://wiki.bralug.de/index.php?title=Tux_fliegt_zu_den_Sternen&diff=8456&oldid=prev
Bergeruw: /* Kommandozeilen-Toolchain auf Basis einer Energia-Installation */
2013-10-19T11:02:35Z
<p><span dir="auto"><span class="autocomment">Kommandozeilen-Toolchain auf Basis einer Energia-Installation</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">Nächstältere Version-></td>
<td colspan='2' style="background-color: white; color:black;">Version vom 19. Oktober 2013, 11:02 Uhr</td>
</tr><tr><td colspan="2" class="diff-lineno">Zeile 88:</td>
<td colspan="2" class="diff-lineno">Zeile 88:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div> rm *.o *.d *.bin *.lst *.axf</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div> rm *.o *.d *.bin *.lst *.axf</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div></pre></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div></pre></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">Mit einem kleinen "Hello World", z.B.:</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"><pre></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">#include "inc/hw_gpio.h"</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">#include "inc/hw_memmap.h"</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">#include "inc/hw_sysctl.h"</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">#include "inc/hw_types.h"</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">#include "driverlib/gpio.h"</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">#include "driverlib/rom.h"</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">#include "driverlib/sysctl.h"</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">    </ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">#define LED_RED GPIO_PIN_1</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">#define LED_BLUE GPIO_PIN_2</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">#define LED_GREEN GPIO_PIN_3</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">    </ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">int main()</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">{</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"> ROM_SysCtlClockSet(SYSCTL_SYSDIV_4|SYSCTL_USE_PLL|SYSCTL_XTAL_16MHZ|SYSCTL_OSC_MAIN);</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"> ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOF);</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"> ROM_GPIOPinTypeGPIOOutput(GPIO_PORTF_BASE, LED_RED|LED_BLUE|LED_GREEN);</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"> for (;;) {</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"> // set the red LED pin high, others low</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"> ROM_GPIOPinWrite(GPIO_PORTF_BASE, LED_RED|LED_GREEN|LED_BLUE, 0);</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"> ROM_GPIOPinWrite(GPIO_PORTF_BASE, LED_RED|LED_GREEN|LED_BLUE, LED_RED);</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"> ROM_SysCtlDelay(5000000);</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"> ROM_GPIOPinWrite(GPIO_PORTF_BASE, LED_RED|LED_GREEN|LED_BLUE, 0);</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"> ROM_GPIOPinWrite(GPIO_PORTF_BASE, LED_RED|LED_GREEN|LED_BLUE, LED_GREEN);</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"> ROM_SysCtlDelay(5000000);</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"> ROM_GPIOPinWrite(GPIO_PORTF_BASE, LED_RED|LED_GREEN|LED_BLUE, 0);</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"> ROM_GPIOPinWrite(GPIO_PORTF_BASE, LED_RED|LED_GREEN|LED_BLUE, LED_BLUE);</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"> ROM_SysCtlDelay(5000000);</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"> }</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">}</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></pre></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">...kann man nun die Toolchain ausprobieren:</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"><pre></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">$ make</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">...</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">$ make flash</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">...</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">$ make clean</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">...</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></pre></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">Es sollten nacheinander alle drei Farben der RGB-LED auf dem Stellaris-Launchpad leuchten.</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=Tipps und Tricks=</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=Tipps und Tricks=</div></td></tr>
</table>
Bergeruw