Age | Commit message (Collapse) | Author | Files | Lines |
|
339: Fix AIRCR PRIGROUP mask r=thejpster a=msamsonoff
Closes #338
Co-authored-by: Matthew W. Samsonoff <matt.samsonoff@gmail.com>
|
|
|
|
|
|
This follows the rust C-GETTER API guidelines.
|
|
This adds support for these counters:
* CPI counter
* Exception overhead counter
* LSU counter
* Folded-instruction counter
|
|
|
|
Co-authored-by: Vadim Kaushan <admin@disasm.info>
|
|
|
|
|
|
|
|
|
|
|
|
This was fixed in rust 1.49 already, fortunately. But as the MSRV is
still 1.38 we cannot drop the warning entirely yet.
|
|
|
|
closes https://github.com/rust-embedded/cortex-m/issues/336
|
|
There doesn't seem to be any reason why the call to `__primask_r` should
be wrapped by another function call.
|
|
313: Remove excessive #[allow(clippy::missing_inline_in_public_items)] r=adamgreig a=jonas-schievink
Closes https://github.com/rust-embedded/cortex-m/issues/179
Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
|
|
|
|
|
|
|
|
|
|
Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
Adds access to MSP_NS and the BXNS instruction.
Also adds __dsb which was missing.
Signed-off-by: Hugues de Valon <hugues.devalon@arm.com>
|
|
|
|
|
|
|
|
259: Rust assembly stubs r=thalesfragoso a=jonas-schievink
Disclaimer: I have not tested any of this (help wanted, we have no tests in here).
Thanks to @therealprof for nerd-sniping me into oblivion.
Fixes https://github.com/rust-embedded/cortex-m/issues/254
Fixes https://github.com/rust-embedded/cortex-m/issues/194
Fixes https://github.com/rust-embedded/cortex-m/issues/139
# Summary
* Remove the assembly files in favor of a new `asm.rs`, which uses unstable inline assembly and provides a C ABI interface.
* Replace the shell scripts by a [`cargo-xtask`](https://github.com/matklad/cargo-xtask/).
* While we're at it, also pre-build artifacts that are compatible with linker-plugin LTO, fixing https://github.com/rust-embedded/cortex-m/issues/139 (again, not tested)
This means that contributors and maintainers just need ~~a nightly Rust compiler installed~~ to run `cargo xtask assemble`. No binutils, no assembler, no `ar`, no GCC/Clang, and especially nothing from the godawful Arm servers, fixing https://github.com/rust-embedded/cortex-m/issues/194. You don't even have to install the correct nightly Rust toolchain, `cargo xtask` does it for you (and installs all the thumb targets too).
Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
|
|
|
|
|
|
|
|
|
|
Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
|
|
|
|
|
|
|
|
This commit introduces new associated constants to Core Peripherals.
(pointers to the register block)
This commit also adds a notice that 'ptr()' APIs will be deprecated in
v0.7.
|
|
|
|
241: Add new InterruptNumber trait r=therealprof a=adamgreig
This is a first go at the new trait needed for https://github.com/rust-embedded/svd2rust/pull/455 since we removed `Nr` from bare-metal.
In this case I've written it as `unsafe trait InterruptNumber: Into<u16>` rather than providing a conversion method inside the trait; I think this is neat and idiomatic but please correct me if there's a reason to not do it like this.
[Here's](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=4f2f8b9604b5a62298f9907780d844c7) a playground link showing an example implementation.
Co-authored-by: Adam Greig <adam@adamgreig.com>
|
|
|
|
|
|
|
|
Fixes the typo in the a1, a2, and a3 aliases of the RASR MPU register.
|
|
|
|
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
|
|
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
|