<?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: Libmaple refactoring</title>
		<link>http://forums.leaflabs.com/topic.php?id=729</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:09:55 +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=729" rel="self" type="application/rss+xml" />

		<item>
			<title>mbolivar on "Libmaple refactoring"</title>
			<link>http://forums.leaflabs.com/topic.php?id=729#post-4277</link>
			<pubDate>Mon, 11 Apr 2011 15:30:03 +0000</pubDate>
			<dc:creator>mbolivar</dc:creator>
			<guid isPermaLink="false">4277@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;anton,&#60;/p&#62;
&#60;p&#62;That seems reasonable.  We saw your pull request this morning; thanks for the patch!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>anton on "Libmaple refactoring"</title>
			<link>http://forums.leaflabs.com/topic.php?id=729#post-4266</link>
			<pubDate>Sun, 10 Apr 2011 21:17:48 +0000</pubDate>
			<dc:creator>anton</dc:creator>
			<guid isPermaLink="false">4266@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;How about something like this?&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;#define HSO_FREQ 8000000UL

#define RCC_PLLMUL RCC_PLLMUL_9

#define CLOCK_SPEED_HZ (HSO_FREQ * RCC_PLLMUL)
#define CLOCK_SPEED_MHZ (CLOCK_SPEED_HZ / 1000000UL)         

#define RCC_AHB_SYSCLK_DIV RCC_AHB_SYSCLK_DIV_1
#define RCC_APB1_HCLK_DIV RCC_APB1_HCLK_DIV_2
#define RCC_APB2_HCLK_DIV RCC_APB2_HCLK_DIV_1

#define CYCLES_PER_MICROSECOND  CLOCK_SPEED_MHZ
#define SYSTICK_RELOAD_VAL     (CLOCK_SPEED_HZ / 1000 - 1) /* takes a cycle to reload */

#define PCLK1   (CLOCK_SPEED_HZ / RCC_APB1_HCLK_DIV)
#define PCLK2   (CLOCK_SPEED_HZ / RCC_APB2_HCLK_DIV)&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>anton on "Libmaple refactoring"</title>
			<link>http://forums.leaflabs.com/topic.php?id=729#post-4263</link>
			<pubDate>Sun, 10 Apr 2011 07:51:51 +0000</pubDate>
			<dc:creator>anton</dc:creator>
			<guid isPermaLink="false">4263@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;RCC_I2C2 in rcc.c and rcc.h placed in STM32_HIGH_DENSITY section&#60;br /&#62;
although medium density chips also have two i2c.&#60;/p&#62;
&#60;p&#62;Is it possible to put all frequency-related constants in boards/boardname.h file?&#60;br /&#62;
Including ERROR_USART_CLK_SPEED from util.c and PCLK1 from stm32.h
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
