Attribute Macro rp2040_hal::entry
source · #[entry]
Expand description
Attribute to declare the entry point of the program
This is based on and can be used like the entry attribute from cortex-m-rt.
It extends that macro with code to unlock all spinlocks at the beginning
of main
. As spinlocks are not automatically unlocked on software resets,
this can prevent unexpected deadlocks when running from a debugger.