pan class="macro">await</span><span class="macro">!</span>(<span class="ident">spi</span>.<span class="ident">read</span>())<span class="question-mark">?</span>;
        }

        <span class="prelude-val">Ok</span>((<span class="ident">spi</span>, <span class="ident">buffer</span>))
    }
}
</pre></div>
<ul>
<li>Buffered serial interface with periodic flushing in interrupt handler</li>
</ul>

<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="kw">extern</span> <span class="kw"