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

		<item>
			<title>stafil on "Set Serial Parameters"</title>
			<link>http://forums.leaflabs.com/topic.php?id=52#post-28519</link>
			<pubDate>Thu, 22 Aug 2013 02:23:33 +0000</pubDate>
			<dc:creator>stafil</dc:creator>
			<guid isPermaLink="false">28519@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;How I set even parity and 7 wordlength?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bnewbold on "Set Serial Parameters"</title>
			<link>http://forums.leaflabs.com/topic.php?id=52#post-242</link>
			<pubDate>Fri, 11 Jun 2010 19:10:11 +0000</pubDate>
			<dc:creator>bnewbold</dc:creator>
			<guid isPermaLink="false">242@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;If you want to dig in to modifying libmaple (the C code underlying our implementation of the Arduino language), it will make more sense if you check it out seperately: &#60;a href=&#34;http://github.com/leaflabs/libmaple&#34; rel=&#34;nofollow&#34;&#62;http://github.com/leaflabs/libmaple&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;We use the support/scripts/copy-to-ide bash script to copy all the necessary files into the IDE when we do IDE releases; if you can figure out that script you could modify it or just do the same thing by hand to copy the files you edit into your IDE installation (in the hardware/leaflabs/cores/maple/ subdirectory). What's going on here is the Arduino IDE likes a flat directory structure but that's hard for mortal programmers to deal with, so even if you're just reading code the libmaple way is easier. &#60;/p&#62;
&#60;p&#62;The canonical reference for all hardware peripheral configuration is the STM32 reference manual (&#60;a href=&#34;http://www.st.com/stonline/products/literature/rm/13902.pdf)&#34; rel=&#34;nofollow&#34;&#62;http://www.st.com/stonline/products/literature/rm/13902.pdf)&#60;/a&#62;; there might be pointers in there?&#60;/p&#62;
&#60;p&#62;None of this answers your question... implementing new Serial features wasn't high on our priority queue but if I get time in a few days i'll take a peak and see if I can give you some tips! It sounds like you'd need to either rewrite the usart recieve interrupts to check even parity or configure the hardware peripheral (using register bit twiddling) to do it for you, and then optionally make those settings configurable first through low level C routines and then through additional methods for the HardwareSerial object.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>coreyfro on "Set Serial Parameters"</title>
			<link>http://forums.leaflabs.com/topic.php?id=52#post-239</link>
			<pubDate>Fri, 11 Jun 2010 17:09:14 +0000</pubDate>
			<dc:creator>coreyfro</dc:creator>
			<guid isPermaLink="false">239@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Been trying to figure this out personally, digging though usart.c and the web.  Not getting anywhere.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>coreyfro on "Set Serial Parameters"</title>
			<link>http://forums.leaflabs.com/topic.php?id=52#post-238</link>
			<pubDate>Fri, 11 Jun 2010 16:43:37 +0000</pubDate>
			<dc:creator>coreyfro</dc:creator>
			<guid isPermaLink="false">238@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I need to set some additional serial parameters, and since the Arduino solution used in the past is to write C for AVR, and Maple owners can't use that solution, I was wondering if there were any simple solutions for us.&#60;/p&#62;
&#60;p&#62;I'm getting in trouble with XBEE needing to be configured for parity_even for flashing bootloaders, but then having to use parity_none for user code (I don't think the STM32 detects parity like it does baud, though I tried setting parity_none in stm32loader.py.)  Changing parity takes unplugging and then reprogramming the XBEE modems.  I'd gladly use parity_even in my code.  I just don't have a means.&#60;/p&#62;
&#60;p&#62;Since there isn't a solution in the Arduino language, I don't know that you'd want to solve this for them.  This might be, however, a good example for mixing ARM code in the Maple IDE.&#60;/p&#62;
&#60;p&#62;Thanks.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
