Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
|
|
these are the "static method" (methods that don't take `self`) versions of
NVIC::{enable,disable} in the same vein as the existing NVIC::{pend,unpend}
this commit also deprecates the existing NVIC::{enable,disable} methods and
notes that NVIC::enable is unsound because it should be an `unsafe` method (like
interrupt::enable and basepri::write, it can break critical sections) but it's
marked as safe. Its replacement, NVIC::unmask, has the correct unsafety setting:
it's an `unsafe` function.
|
|
|
|
|
|
138: scb: add static version of system_reset as sys_reset r=korken89 a=hdhoang
As suggested in https://github.com/ah-/anne-key/pull/94. I branched this off v0.5.8 to verify the function in that PR, and against rtfm v0.3 in https://github.com/hdhoang/anne-key/commit/d6fb831cbbb46bc10a6184b78bf13e00245234d6
I have cloned the body of `system_reset`, do you think we should call one from the other (e.g. ignoring `self` in `system_reset`, or stealing `Peripherals` in `system_reset2`)?
Co-authored-by: Hoàng Đức Hiếu <code@hdhoang.space>
|
|
|
|
|
|
106: Stir register and debugger check r=adamgreig a=thenewwazoo
Adds support for requesting an interrupt via the STIR register and checking whether a debugger is attached.
Co-authored-by: Brandon Matthews <bmatthews@zipcar.com>
Co-authored-by: Brandon Matthews <bmatthews@optimaltour.us>
|
|
127: Cortex M0(+) DWT fixes r=adamgreig a=korken89
The current DWT setup has a lot of registers that are not available in Cortex-M0(+), fixes are added here.
Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
|
|
|
|
97: Rename `shcrs` to `shcsr` in `scb::RegisterBlock` r=adamgreig a=rajivr
Commit `c290aa4e` introduced `shcrs` field to `scb::RegisterBlock`.
In CMSIS, this field is `shcsr`.
https://github.com/ARM-software/CMSIS_5/blob/5.3.0/CMSIS/Core/Include/core_cm4.h#L449
This patch changes `shcrs` to `shcsr`.
Signed-off-by: Rajiv Ranganath <rajiv.ranganath@gmail.com>
Co-authored-by: Rajiv Ranganath <rajiv.ranganath@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
NVIC::{un,}pend are static methods that don't require an instance of NVIC to be
invoked.
|
|
lints have changed between nightly and stable
|
|
it was there to maybe support adding DebugMonitor in the future but it has
already been added
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
112: Add PendSV exception set and clear to SCB r=adamgreig a=ekohandel
This change adds the ability to easily set, clear, and inquire the status of the PendSV exception via the SCB peripheral on all Cortex-M platforms.
Co-authored-by: Abe Kohandel <e.kohandel@gmail.com>
|
|
the preferred way to import macros in Rust 2018 is via `use`. If you import
`iprintln` and try to use you'll get an error if the `iprint` macro has not been
imported as well.
This commit makes `iprintln` work w/o having to import `iprint` as well.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
by shipping pre-assembled object files. This is the same approach as the one
used in rust-embedded/cortex-m#95
|