{"id":3226,"date":"2012-06-18T02:49:06","date_gmt":"2012-06-18T06:49:06","guid":{"rendered":"https:\/\/example.com\/?postname=stm32f4-usart-functions"},"modified":"2012-06-18T02:49:06","modified_gmt":"2012-06-18T06:49:06","slug":"stm32f4-usart-functions","status":"publish","type":"post","link":"http:\/\/atomsofttech.com\/blog\/uncategorized\/stm32f4-usart-functions\/","title":{"rendered":"STM32F4 USART Functions"},"content":{"rendered":"<p>Some useful functions to send data\u2026 <\/p>\n<div style=\"border-bottom:silver 1px solid;text-align:left;border-left:silver 1px solid;line-height:12pt;background-color:#f4f4f4;margin:20px 0 10px;width:97.5%;font-family:'Courier New', courier, monospace;direction:ltr;max-height:200px;font-size:8pt;overflow:auto;border-top:silver 1px solid;cursor:text;border-right:silver 1px solid;padding:4px;\" id=\"codeSnippetWrapper\">\n<pre style=\"text-align:left;line-height:12pt;background-color:#f4f4f4;margin:0;width:100%;font-family:'Courier New', courier, monospace;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;padding:0;\"><span style=\"color:#0000ff;\">void<\/span> putchar(USART_TypeDef* myUSART, uint32_t data)<br>{<br>    myUSART-&gt;DR = (<span style=\"color:#0000ff;\">char<\/span>)data;<br>    <span style=\"color:#0000ff;\">while<\/span>(((myUSART-&gt;SR &gt;&gt; 6) &amp; 0x01) == 0);<br>}<br><br><span style=\"color:#0000ff;\">void<\/span> putstr(USART_TypeDef* myUSART, <span style=\"color:#0000ff;\">char<\/span> *data)<br>{<br>    <span style=\"color:#0000ff;\">while<\/span>(*data)<br>      putchar(myUSART,*data++);<br>}<\/pre>\n<p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Some useful functions to send data\u2026 void putchar(USART_TypeDef* myUSART, uint32_t data){ myUSART-&gt;DR = (char)data; while(((myUSART-&gt;SR &gt;&gt; 6) &amp; 0x01) == 0);}void putstr(USART_TypeDef* myUSART, char *data){ while(*data) putchar(myUSART,*data++);}<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-3226","post","type-post","status-publish","format-standard","hentry"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/atomsofttech.com\/blog\/wp-json\/wp\/v2\/posts\/3226","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/atomsofttech.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/atomsofttech.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/atomsofttech.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/atomsofttech.com\/blog\/wp-json\/wp\/v2\/comments?post=3226"}],"version-history":[{"count":0,"href":"http:\/\/atomsofttech.com\/blog\/wp-json\/wp\/v2\/posts\/3226\/revisions"}],"wp:attachment":[{"href":"http:\/\/atomsofttech.com\/blog\/wp-json\/wp\/v2\/media?parent=3226"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/atomsofttech.com\/blog\/wp-json\/wp\/v2\/categories?post=3226"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/atomsofttech.com\/blog\/wp-json\/wp\/v2\/tags?post=3226"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}