Macro cortex_m_rt::pre_init [−][src]
macro_rules! pre_init { ($handler:path) => { ... }; }
Macro to set the function to be called at the beginning of the reset handler.
The function must have the signature of unsafe fn()
.
The function passed will be called before static variables are initialized. Any access of static variables will result in undefined behavior.
Examples
ⓘThis example is not tested
pre_init!(foo::bar); mod foo { pub unsafe fn bar() { // do something here } }