<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>LeafLabs Garden &#187; Topic: found bug in timer_oc_set_mode in timer.h</title>
		<link>http://forums.leaflabs.com/topic.php?id=1102</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:14:18 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://forums.leaflabs.com/search.php</link>
		</textInput>
		<atom:link href="http://forums.leaflabs.com/rss.php?topic=1102" rel="self" type="application/rss+xml" />

		<item>
			<title>ala42 on "found bug in timer_oc_set_mode in timer.h"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1102#post-6855</link>
			<pubDate>Wed, 12 Oct 2011 17:12:00 +0000</pubDate>
			<dc:creator>ala42</dc:creator>
			<guid isPermaLink="false">6855@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Could you also fix the micros() bug listed at &#60;a href=&#34;http://forums.leaflabs.com/topic.php?id=1098&#34; rel=&#34;nofollow&#34;&#62;http://forums.leaflabs.com/topic.php?id=1098&#60;/a&#62; ?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mbolivar on "found bug in timer_oc_set_mode in timer.h"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1102#post-6834</link>
			<pubDate>Wed, 12 Oct 2011 08:24:07 +0000</pubDate>
			<dc:creator>mbolivar</dc:creator>
			<guid isPermaLink="false">6834@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Oops; fixed. Thanks for catching this!&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;https://github.com/leaflabs/libmaple/commit/3b9f0a03bfb719c84a2239c064b51050fddcb6a6&#34; rel=&#34;nofollow&#34;&#62;https://github.com/leaflabs/libmaple/commit/3b9f0a03bfb719c84a2239c064b51050fddcb6a6&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ala42 on "found bug in timer_oc_set_mode in timer.h"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1102#post-6802</link>
			<pubDate>Sun, 09 Oct 2011 19:07:43 +0000</pubDate>
			<dc:creator>ala42</dc:creator>
			<guid isPermaLink="false">6802@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;timer_oc_set_mode is called with a channel variable from 1-4. The code&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;uint8 bit1 = (channel &#38;gt;&#38;gt; 1) &#38;amp; 1;
  /* channel == 1,2 -&#38;gt; CCMR1; channel == 3,4 -&#38;gt; CCMR2 */
  __io uint32 *ccmr = &#38;amp;(dev-&#38;gt;regs).gen-&#38;gt;CCMR1 + bit1;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;is buggy, as 1 and 2 differ in bit 1, so channel 1 and 2 do not use the same CCMR register, as they should. Use&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;uint8 bit1 = ((channel-1) &#38;gt;&#38;gt; 1) &#38;amp; 1;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;instead.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
