class="comment">// omitted: pend / enable interrupt_handler</span>
    }
}

<span class="kw">fn</span> <span class="ident">interrupt_handler</span>() {
    <span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">serial</span> <span class="op">=</span> <span class="ident">SERIAL1</span>.<span class="ident">lock</span>();
    <span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">buffer</span> <span class="op">=</span> <span class="ident">BUFFER1</span>.<span class