class="rust rust-example-rendered">
<span class="kw">extern</span> <span class="kw">crate</span> <span class="ident">embedded_hal</span>;
<span class="attribute">#[<span class="ident">macro_use</span>(<span class="ident">block</span>)]</span>
<span class="kw">extern</span> <span class="kw">crate</span> <span class="ident">nb</span>;

<span class="kw">use</span> <span class="ident">stm32f30x_hal</span>::<span class="ident">Serial1</span>;
<span class="kw">use</span> <span class="ident">embedded_hal</span>::<