<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.chalmersrobotics.se/w/index.php?action=history&amp;feed=atom&amp;title=Programmering_STM32</id>
	<title>Programmering STM32 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.chalmersrobotics.se/w/index.php?action=history&amp;feed=atom&amp;title=Programmering_STM32"/>
	<link rel="alternate" type="text/html" href="https://wiki.chalmersrobotics.se/w/index.php?title=Programmering_STM32&amp;action=history"/>
	<updated>2026-11-18T07:55:58Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.1</generator>
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
	<entry>
		<id>https://wiki.chalmersrobotics.se/w/index.php?title=Programmering_STM32&amp;diff=2492&amp;oldid=prev</id>
		<title>Kassor at 19:11, 7 March 2022</title>
		<link rel="alternate" type="text/html" href="https://wiki.chalmersrobotics.se/w/index.php?title=Programmering_STM32&amp;diff=2492&amp;oldid=prev"/>
		<updated>2022-03-07T19:11:33Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:11, 7 March 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l214&quot;&gt;Line 214:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 214:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Vart hittar man libbet?&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Vart hittar man libbet?&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Vart köper man dom?&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Vart köper man dom?&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Guider]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kassor</name></author>
	</entry>
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
	<entry>
		<id>https://wiki.chalmersrobotics.se/w/index.php?title=Programmering_STM32&amp;diff=2154&amp;oldid=prev</id>
		<title>Sterna: /* Felsökning */</title>
		<link rel="alternate" type="text/html" href="https://wiki.chalmersrobotics.se/w/index.php?title=Programmering_STM32&amp;diff=2154&amp;oldid=prev"/>
		<updated>2017-12-29T09:18:05Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Felsökning&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:18, 29 December 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l194&quot;&gt;Line 194:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 194:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===ADCn verkar ge konstiga värden===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===ADCn verkar ge konstiga värden===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Kontrollera att du initierat rätt pinne och att den är korrekt initierad. Om du försöker göra ADC-mätningar på en pinne som itne är confad som ADC kommer den att skicka ut slumpmässiga, ganska låga (&amp;lt;100) värden. På samma sätt kan du ha råkat växla på pinnarna om du gör mätningar på flera ADC-kanaler.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Kontrollera att du initierat rätt pinne och att den är korrekt initierad. Om du försöker göra ADC-mätningar på en pinne som itne är confad som ADC kommer den att skicka ut slumpmässiga, ganska låga (&amp;lt;100) värden. På samma sätt kan du ha råkat växla på pinnarna om du gör mätningar på flera ADC-kanaler.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;===Jag vill använda NSS-pinnen på en SPI till nåt annat===&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;SPIerna kan styra en NSS-pinne som chip select i lite olika utföranden. Men det är vanligt att du inte vill ha den hårdvarustyrd, utan hellre vill använda pinnen till nåt annat (kanske någon annan peripheral). Det man behöver göra för att SPIn ska inte ska ha kontroll över pinnen är att sätta SPI_NSS_Soft vid initieringen och sedan köra SPI_SSOutputCmd(SPI,ENABLE); (detta sätter SSM i CR1 och SSOE i CR2). Då får du kontroll över pinnen till annat.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Errata sheet - Men jag är säker på att jag har gjort rätt!===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Errata sheet - Men jag är säker på att jag har gjort rätt!===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Sterna</name></author>
	</entry>
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
	<entry>
		<id>https://wiki.chalmersrobotics.se/w/index.php?title=Programmering_STM32&amp;diff=1459&amp;oldid=prev</id>
		<title>Sterna: /* Debugger */</title>
		<link rel="alternate" type="text/html" href="https://wiki.chalmersrobotics.se/w/index.php?title=Programmering_STM32&amp;diff=1459&amp;oldid=prev"/>
		<updated>2016-09-07T14:25:21Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Debugger&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:25, 7 September 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l100&quot;&gt;Line 100:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 100:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Debugger===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Debugger===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Att använda en korrekt debugger och att kunna stega igenom koden samt kolla på variabler är ditt absolut bästa verktyg vid felsökning. Även om det tar flera timmar att sätta upp dit debugger (vilket det inte gör med hjälp av GNU ARM Eclipse plugin [Förberedelse_programmering_STM32#&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Anv.C3.A4nda_GNU_ARM_Eclipse&lt;/del&gt;-pluginet]) så kommer det vara värt det i timmar av felsökning.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Att använda en korrekt debugger och att kunna stega igenom koden samt kolla på variabler är ditt absolut bästa verktyg vid felsökning. Även om det tar flera timmar att sätta upp dit debugger (vilket det inte gör med hjälp av GNU ARM Eclipse plugin &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[&lt;/ins&gt;[Förberedelse_programmering_STM32#&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Använda_GNU_ARM_Eclipse&lt;/ins&gt;-pluginet&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]&lt;/ins&gt;]) så kommer det vara värt det i timmar av felsökning.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Bättra på lödningar===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Bättra på lödningar===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Sterna</name></author>
	</entry>
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
	<entry>
		<id>https://wiki.chalmersrobotics.se/w/index.php?title=Programmering_STM32&amp;diff=1458&amp;oldid=prev</id>
		<title>Sterna: /* Felsökning */</title>
		<link rel="alternate" type="text/html" href="https://wiki.chalmersrobotics.se/w/index.php?title=Programmering_STM32&amp;diff=1458&amp;oldid=prev"/>
		<updated>2016-09-07T14:23:59Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Felsökning&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:23, 7 September 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l98&quot;&gt;Line 98:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 98:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Felsökning==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Felsökning==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Om du setat länge med ett problem finns det några standardmisstag om man brukar göra. Kolla igenom följande checklista så kanske du hittar ditt problem. Ifall du stöter på ett konstigt problem som var svårt att lösa så lägg gärna med det i listan, så att nästa person som stöter på problemet får det lite lättare. Det är även bra som minnesregel till dig själv. Här ges även lite allmänna tips på felsökning:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Om du setat länge med ett problem finns det några standardmisstag om man brukar göra. Kolla igenom följande checklista så kanske du hittar ditt problem. Ifall du stöter på ett konstigt problem som var svårt att lösa så lägg gärna med det i listan, så att nästa person som stöter på problemet får det lite lättare. Det är även bra som minnesregel till dig själv. Här ges även lite allmänna tips på felsökning:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;===Debugger===&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Att använda en korrekt debugger och att kunna stega igenom koden samt kolla på variabler är ditt absolut bästa verktyg vid felsökning. Även om det tar flera timmar att sätta upp dit debugger (vilket det inte gör med hjälp av GNU ARM Eclipse plugin [Förberedelse_programmering_STM32#Anv.C3.A4nda_GNU_ARM_Eclipse-pluginet]) så kommer det vara värt det i timmar av felsökning.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Bättra på lödningar===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Bättra på lödningar===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Ingen kod är bättre än den hårdvara den körs på. Bättra på dina lödningar och mät så att signalen kommer fram.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Ingen kod är bättre än den hårdvara den körs på. Bättra på dina lödningar och mät så att signalen kommer fram.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Sterna</name></author>
	</entry>
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
	<entry>
		<id>https://wiki.chalmersrobotics.se/w/index.php?title=Programmering_STM32&amp;diff=1457&amp;oldid=prev</id>
		<title>Sterna: /* Den hänger sig i interrupt! */</title>
		<link rel="alternate" type="text/html" href="https://wiki.chalmersrobotics.se/w/index.php?title=Programmering_STM32&amp;diff=1457&amp;oldid=prev"/>
		<updated>2016-09-07T14:18:31Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Den hänger sig i interrupt!&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:18, 7 September 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l130&quot;&gt;Line 130:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 130:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Inte korrekt initad interruptvektor. Du måste ha den funktion som svarar mot din interruptvektor (där du hamnar vid interrupt). Dessa står i startup-filen (.s-filen). Dessa har typiskt formatet void PERIPH_Handler(){ do_interrupt_stuff } där PERIPH är den peripheral du har.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Inte korrekt initad interruptvektor. Du måste ha den funktion som svarar mot din interruptvektor (där du hamnar vid interrupt). Dessa står i startup-filen (.s-filen). Dessa har typiskt formatet void PERIPH_Handler(){ do_interrupt_stuff } där PERIPH är den peripheral du har.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Har du kvitterat (clearat) ditt interrupt? Detta bör göras så tidigt som möjligt i interruptet (men kan göras senare vid avancerade applikationer). Det finns inbyggda funktioner för detta. Exempelvis, för external interrupt (pinne som ger interrupt) heter den EXTI_ClearItPendingBit(EXTI_Linex), där x är vilket nummer. Timer-funktionen är TIM_ClearItPendingBit(xxx).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Har du kvitterat (clearat) ditt interrupt? Detta bör göras så tidigt som möjligt i interruptet (men kan göras senare vid avancerade applikationer). Det finns inbyggda funktioner för detta. Exempelvis, för external interrupt (pinne som ger interrupt) heter den EXTI_ClearItPendingBit(EXTI_Linex), där x är vilket nummer. Timer-funktionen är TIM_ClearItPendingBit(xxx).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;**För DMA är det lite speciellt. DMA har nämligen definierat seperata interrupt-flaggor för varje DMA-ström. Interrupten är dessutom kopplade till DMAn i sig, och inte till varje DMA-ström. Du måste välja rätt interruptflagga för att cleara ditt DMA-interrupt, annars kommer den hänga sig där. Exempelvis heter flaggan för DMA transfer complete för DMA-ström 0 DMA_IT_TCIF0 och DMA_IT_TCIF3 för ström 3. Notera att dessa flaggor kan vara felaktigt definierade i stdperiph för STM32F4.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*För vissa interrupt måste du också läsa av interruptkällan (typiskt interrupts som flera källor kan trigga, exempelvis EXTI_Line som kan triggas av flera pinnar) och cleara rätt interrupt-källa.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*För vissa interrupt måste du också läsa av interruptkällan (typiskt interrupts som flera källor kan trigga, exempelvis EXTI_Line som kan triggas av flera pinnar) och cleara rätt interrupt-källa.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Att blinka LEDs eller skriva sätta pinnar kan vara bra att göra i olika steg i ditt interrupt (och ditt program generellt sett). Då ser du hur långt den kommer. Använd LED_SET() som &amp;quot;prob&amp;quot; i programmet.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Att blinka LEDs eller skriva sätta pinnar kan vara bra att göra i olika steg i ditt interrupt (och ditt program generellt sett). Då ser du hur långt den kommer. Använd LED_SET() som &amp;quot;prob&amp;quot; i programmet&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, eller ännu hellre, använd en ordentlig debugger&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===De_init-funktionen===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===De_init-funktionen===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Sterna</name></author>
	</entry>
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
	<entry>
		<id>https://wiki.chalmersrobotics.se/w/index.php?title=Programmering_STM32&amp;diff=1380&amp;oldid=prev</id>
		<title>Sterna: /* Felsökning */</title>
		<link rel="alternate" type="text/html" href="https://wiki.chalmersrobotics.se/w/index.php?title=Programmering_STM32&amp;diff=1380&amp;oldid=prev"/>
		<updated>2015-04-29T07:08:45Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Felsökning&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 08:08, 29 April 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l186&quot;&gt;Line 186:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 186:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Min I2C fungerar inte===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Min I2C fungerar inte===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Varför använder du I2C? Det är ju jättedåligt. Vidare är STs I2C väldigt trasig. Den fungerar bäst med DMA. Kolla mer information i Erratan.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Varför använder du I2C? Det är ju jättedåligt. Vidare är STs I2C väldigt trasig. Den fungerar bäst med DMA. Kolla mer information i Erratan.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;===ADCn verkar ge konstiga värden===&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Kontrollera att du initierat rätt pinne och att den är korrekt initierad. Om du försöker göra ADC-mätningar på en pinne som itne är confad som ADC kommer den att skicka ut slumpmässiga, ganska låga (&amp;lt;100) värden. På samma sätt kan du ha råkat växla på pinnarna om du gör mätningar på flera ADC-kanaler.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Errata sheet - Men jag är säker på att jag har gjort rätt!===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Errata sheet - Men jag är säker på att jag har gjort rätt!===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Sterna</name></author>
	</entry>
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
	<entry>
		<id>https://wiki.chalmersrobotics.se/w/index.php?title=Programmering_STM32&amp;diff=1349&amp;oldid=prev</id>
		<title>Sterna: /* De_init-funktionen */</title>
		<link rel="alternate" type="text/html" href="https://wiki.chalmersrobotics.se/w/index.php?title=Programmering_STM32&amp;diff=1349&amp;oldid=prev"/>
		<updated>2015-04-07T12:39:05Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;De_init-funktionen&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:39, 7 April 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l134&quot;&gt;Line 134:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 134:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===De_init-funktionen===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===De_init-funktionen===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Många peripherals (t.ex. DMA och I2C) har en de_init-funktion (t.ex. DMA_DeInit(DMA1_Channel4)). Den nollställer alla inställningar på peripheralen och bör köras innan man initierar peripheralen, annars finns det risk att den inte fungerar.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Många peripherals (t.ex. DMA och I2C) har en de_init-funktion (t.ex. DMA_DeInit(DMA1_Channel4)). Den nollställer alla inställningar på peripheralen och bör köras innan man initierar peripheralen, annars finns det risk att den inte fungerar&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;. Använd även gärna InitStruct-init-funktionen som nollställer alla fält i din initstruct&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Logikanalysator/Oscilloskop===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Logikanalysator/Oscilloskop===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Sterna</name></author>
	</entry>
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
	<entry>
		<id>https://wiki.chalmersrobotics.se/w/index.php?title=Programmering_STM32&amp;diff=1348&amp;oldid=prev</id>
		<title>Sterna: /* Har du kopplat alternate function till pinnen? */</title>
		<link rel="alternate" type="text/html" href="https://wiki.chalmersrobotics.se/w/index.php?title=Programmering_STM32&amp;diff=1348&amp;oldid=prev"/>
		<updated>2015-04-07T12:37:09Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Har du kopplat alternate function till pinnen?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:37, 7 April 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l110&quot;&gt;Line 110:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 110:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Har du kopplat alternate function till pinnen?===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Har du kopplat alternate function till pinnen?===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;AF till pinnen kopplas med funktionen GPIO_PinAFConfig(GPIO_PORT,GPIO_PinSource,GPIO_AF). Info finns i filen GPIO.c.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;AF till pinnen kopplas med funktionen GPIO_PinAFConfig(GPIO_PORT,GPIO_PinSource,GPIO_AF). Info finns i filen GPIO.c &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;samt i device-sheeten för processorn (alltså inte referensmanualen)&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Har du kört din init-funktion?===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Har du kört din init-funktion?===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Nej, det har du inte. Kolla igen.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Nej, det har du inte. Kolla igen.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Sterna</name></author>
	</entry>
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
	<entry>
		<id>https://wiki.chalmersrobotics.se/w/index.php?title=Programmering_STM32&amp;diff=1347&amp;oldid=prev</id>
		<title>Sterna: /* Min PWM funkar inte! */</title>
		<link rel="alternate" type="text/html" href="https://wiki.chalmersrobotics.se/w/index.php?title=Programmering_STM32&amp;diff=1347&amp;oldid=prev"/>
		<updated>2015-04-07T12:34:57Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Min PWM funkar inte!&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:34, 7 April 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l116&quot;&gt;Line 116:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 116:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Detta gör man med Periph_CMD(Enable) (t.ex. TIM_Cmd(TIMx,ENABLE), SPI_Cmd(SPIx,ENABLE) eller USART_Cmd(USARTx,ENABLE)).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Detta gör man med Periph_CMD(Enable) (t.ex. TIM_Cmd(TIMx,ENABLE), SPI_Cmd(SPIx,ENABLE) eller USART_Cmd(USARTx,ENABLE)).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Min PWM funkar inte!===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Min PWM funkar inte!===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Notera att för vissa timers (TIM1, TIM8, TIM15-17 på STM32F1xx och endast TIM1,8 på F4) så måste man anropa &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;en &lt;/del&gt;extra &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;funktion &lt;/del&gt;som sätter igång PWM. Detta görs med funktionen TIM_CtrlPWMOutputs(TIMx,ENABLE). Denna funktion kan också användas för att stänga av PWM på pinnen (vilket kan vara smidigt ibland)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Notera att för vissa timers (TIM1, TIM8, TIM15-17 på STM32F1xx och endast TIM1,8 på F4) så måste man anropa extra &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;funktioner &lt;/ins&gt;som sätter igång PWM &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(det finns lite säkerhetstjafs här)&lt;/ins&gt;. Detta görs med funktionen TIM_CtrlPWMOutputs(TIMx,ENABLE). Denna funktion kan också användas för att stänga av PWM på pinnen (vilket kan vara smidigt ibland)&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;. För de avancerade timers som har break-funktion (TIM1 och 8 primärt) behöver man även se till att Automatic Output är enabled. Detta kan man göra ange i TIM_BDTRInitTypeDef-structen och sedan köra TIM_BDTRConfig.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Kontrollera även feldatabladet, t.ex. på TIM1, utgångskomparator kanal 1 på STM32F100 så krockar timern och UART1 vilket gör att timern inte kan användas om uarten används.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Kontrollera även feldatabladet, t.ex. på TIM1, utgångskomparator kanal 1 på STM32F100 så krockar timern och UART1 vilket gör att timern inte kan användas om uarten används.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Sterna</name></author>
	</entry>
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
<br />
<b>Warning</b>:  unexpected NAN value was coerced to string in <b>/home/chalmer3/crfwiki/w/includes/language/Language.php</b> on line <b>3215</b><br />
	<entry>
		<id>https://wiki.chalmersrobotics.se/w/index.php?title=Programmering_STM32&amp;diff=1318&amp;oldid=prev</id>
		<title>Sterna: /* Kodstilar */</title>
		<link rel="alternate" type="text/html" href="https://wiki.chalmersrobotics.se/w/index.php?title=Programmering_STM32&amp;diff=1318&amp;oldid=prev"/>
		<updated>2015-01-28T12:34:40Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Kodstilar&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:34, 28 January 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l42&quot;&gt;Line 42:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 42:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Kodstilar===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Kodstilar===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Det finns lika många olika kodstilar som det finns kodare. Många av dessa argument är ett religiöst krig, så var vaksam. Du kan trampa på minerad mark. Här är några vanliga regler och tips:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Det finns lika många olika kodstilar som det finns kodare. Många av dessa argument är ett religiöst krig, så var vaksam. Du kan trampa på minerad mark. Här är några vanliga regler och tips:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Ska man ha måsvingen ( { ) på samma eller nästa rad?&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&amp;#039;&amp;#039;&lt;/ins&gt;Ska man ha måsvingen ( { ) på samma eller nästa rad?&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&amp;#039;&amp;#039;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Det är hugget som stucket. Vissa föredrar att ha det på samma rad och vissa föredrar nästa. Du ska dock INTE:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Det är hugget som stucket. Vissa föredrar att ha det på samma rad och vissa föredrar nästa. Du ska dock INTE:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*** Indentera måsvingen.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*** Indentera måsvingen.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*** Ha en tom rad innan måsvingen.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*** Ha en tom rad innan måsvingen.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*** Definiera BEGIN som { och END som } (ja, detta förekommer och är bara hemskt).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*** Definiera BEGIN som { och END som } (ja, detta förekommer och är bara hemskt).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Måste man alltid ha måsvingar, även om min kod i en if-sats/loop är bara en rad?&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&amp;#039;&amp;#039;&lt;/ins&gt;Måste man alltid ha måsvingar, även om min kod i en if-sats/loop är bara en rad?&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&amp;#039;&amp;#039;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** JA! Du skall ALLTID ha måsvingar! Någon gång kommer du att komma på att du behöver någon liten extra kodrad i din if-sats/loop och då kommer du glömma måsvingarna och då kommer du bli ledsen.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** JA! Du skall ALLTID ha måsvingar! Någon gång kommer du att komma på att du behöver någon liten extra kodrad i din if-sats/loop och då kommer du glömma måsvingarna och då kommer du bli ledsen.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Hur bör man indentera?&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&amp;#039;&amp;#039;&lt;/ins&gt;Hur bör man indentera?&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&amp;#039;&amp;#039;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Man SKALL indentera. Läsbar kod är bra kod och indentering ökar läsbarheten. Det är också belagt med dödsstraff att indentera med mellanslag (se till att ställa in din utvecklingsmiljö på att inte generera mellanslag när du trycker på tab). Man indenterar med tab.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Man SKALL indentera. Läsbar kod är bra kod och indentering ökar läsbarheten. Det är också belagt med dödsstraff att indentera med mellanslag (se till att ställa in din utvecklingsmiljö på att inte generera mellanslag när du trycker på tab). Man indenterar med tab.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Hur namnger man funktioner och variabler?&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&amp;#039;&amp;#039;&lt;/ins&gt;Hur namnger man funktioner och variabler?&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&amp;#039;&amp;#039;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Här finns det ett antal olika stilar. Vad som är viktigt är att skriva tydlige och beskrivande namn. Din utvecklingsmiljö har ofta autokomplettering. Variabler bör ha namn längre än 3 tecken. Nedan följer några vanliga namngivningskonventioner:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Här finns det ett antal olika stilar. Vad som är viktigt är att skriva tydlige och beskrivande namn. Din utvecklingsmiljö har ofta autokomplettering. Variabler bör ha namn längre än 3 tecken. Nedan följer några vanliga namngivningskonventioner:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*** Camelcase, vilket innebär att du namnger dina variabler/funktioner som GetSomeValue(); och int someValue;. Vanligt är att man börjar med stor bokstav på funktioner och har liten bokstav på variabler.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*** Camelcase, vilket innebär att du namnger dina variabler/funktioner som GetSomeValue(); och int someValue;. Vanligt är att man börjar med stor bokstav på funktioner och har liten bokstav på variabler.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l60&quot;&gt;Line 60:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 60:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**** c: Ett tecken (en character) som ska analyseras&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**** c: Ett tecken (en character) som ska analyseras&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**** ptr eller p: en pekare, ofta till en sträng eller en databuffer&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**** ptr eller p: en pekare, ofta till en sträng eller en databuffer&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Kommentarer&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&amp;#039;&amp;#039;&lt;/ins&gt;Kommentarer&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&amp;#039;&amp;#039;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** I bästa fall ska kommenterar inte behövas om man skriver bra kod. Men det kan ändå vara bra att dokumentera ungefär vad varje funktion gör och vad varje in-parameter är.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** I bästa fall ska kommenterar inte behövas om man skriver bra kod. Men det kan ändå vara bra att dokumentera ungefär vad varje funktion gör och vad varje in-parameter är.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Språk (Alltså naturligt språk)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&amp;#039;&amp;#039;&lt;/ins&gt;Språk (Alltså naturligt språk)&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&amp;#039;&amp;#039;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Vanligen skriver man kod på engelska, även kommentarer. Gör det. Det ser så dumt ut att skriva kod/kommentarer på andra språk.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Vanligen skriver man kod på engelska, även kommentarer. Gör det. Det ser så dumt ut att skriva kod/kommentarer på andra språk.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Sterna</name></author>
	</entry>
</feed>