[][src]Attribute Macro msp430_rt_macros::pre_init

#[pre_init]

Attribute to mark which function will be called at the beginning of the reset handler.

IMPORTANT: This attribute can appear at most once in the dependency graph.

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

#[pre_init]
unsafe fn before_main() {
    // do something here
}