mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2024-12-23 20:51:31 +11:00
f8de8755cc
* Add an rp2040 specific #[entry] macro. This macro extends the one from cortex-m-rt by code to unlock all spinlocks on boot. * Idiomatic pointer arithmetic Apply suggestion by @9names, improving address calculations. (This doesn't change the generated code at opt levels 2 or "z".) Co-authored-by: 9names <60134748+9names@users.noreply.github.com>
28 lines
684 B
Markdown
28 lines
684 B
Markdown
# `rp2040-hal-macros`
|
|
|
|
Macros used by rp2040-hal.
|
|
|
|
## Entry macro
|
|
|
|
Extension of the `cortex-m-rt` `#[entry]` with rp2040 specific initialization code.
|
|
|
|
Currently, it just unlocks all spinlocks before calling the entry function.
|
|
|
|
# License
|
|
|
|
Licensed under either of
|
|
|
|
- Apache License, Version 2.0 (`APACHE2.0` or
|
|
http://www.apache.org/licenses/LICENSE-2.0)
|
|
|
|
- MIT license (`MIT` or http://opensource.org/licenses/MIT)
|
|
|
|
at your option.
|
|
|
|
## Contribution
|
|
|
|
Unless you explicitly state otherwise, any contribution intentionally submitted
|
|
for inclusion in the work by you, as defined in the Apache-2.0 license, shall be
|
|
dual licensed as above, without any additional terms or conditions.
|
|
|