aboutsummaryrefslogtreecommitdiff
path: root/src (follow)
AgeCommit message (Collapse)AuthorFilesLines
2019-10-29Add another missing #[inline].Gravatar Mara Bos 1-0/+1
2019-10-29Add `#[inline]` to some more functions.Gravatar Mara Bos 5-0/+27
Now the only public non-inline functions left are: - write_all - write_aligned - All (derived) Debug implementations (Checked using Clippy's missing_inline_in_public_items lint.)
2019-10-29Add `#[inline]` to lots of trivial functions.Gravatar Mara Bos 8-0/+75
2019-10-28Merge #172Gravatar bors[bot] 11-49/+53
172: Make Clippy happy. r=therealprof a=m-ou-se Co-authored-by: Mara Bos <m-ou.se@m-ou.se>
2019-10-15add a safe method to software unlock the DWTGravatar Jorge Aparicio 1-0/+9
today the alternative is an unsafe write to the LAR register
2019-10-09Make Clippy happy.Gravatar Mara Bos 11-49/+53
2019-09-21Deprecate nonexistent registers on thumbv8m.baseGravatar Jamie McClymont 1-3/+24
First step in resolving #155
2019-09-10Make some trivial functions eligible for inliningGravatar Jonas Schievink 1-0/+14
2019-09-08Remove unnecessary unsafe blockGravatar Jonas Schievink 1-1/+1
2019-09-08Fix errors and warningsGravatar Jonas Schievink 1-16/+14
2019-09-06Allow writing to the CONTROL registerGravatar Jonas Schievink 1-2/+63
2019-08-11Add {M,P}SPLIM access routines found on ARMv8-MGravatar Aurabindo Jayamohanan 3-0/+100
Signed-off-by: Aurabindo Jayamohanan <mail@aurabindo.in>
2019-07-29Fix missing `crate::`Gravatar Adam Greig 2-2/+2
2019-07-29Update for 2018 editionGravatar Adam Greig 13-70/+59
2019-07-24Define MSRV to be 1.31.0 and unconditionally use const-fnGravatar Adam Greig 1-4/+3
2019-06-19add NVIC::{mask,unmask}Gravatar Jorge Aparicio 1-5/+26
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.
2019-06-13Remove debug_assert from Peripherals::stealGravatar Matti Virkkunen 1-2/+0
2019-04-24Derive Debug, PartialEq and Eq for more typesGravatar Jonas Schievink 3-2/+3
2019-04-14Merge #138Gravatar bors[bot] 1-0/+20
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>
2019-04-13deprecate system_reset in favor of static sys_resetGravatar Hoàng Đức Hiếu 1-3/+2
2019-03-21scb: add static version of system_reset as system_reset2Gravatar Hoàng Đức Hiếu 1-0/+21
2019-03-12Merge #106Gravatar bors[bot] 3-6/+54
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>
2019-03-12Merge #127Gravatar bors[bot] 2-1/+29
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>
2019-03-12Fix STIR register test, remove armv6m-related offsets in NVICGravatar Brandon Matthews 1-5/+2
2019-03-12Merge #97Gravatar bors[bot] 2-2/+2
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>
2019-03-12Update is_debugger_attached so as not to clear S_RESET_ST and S_RETIRE_STGravatar Brandon Matthews 1-8/+14
2019-03-12Fix rebase syntax error; disable STIR test on armv6mGravatar Brandon Matthews 2-0/+2
2019-03-12Expand is_debugger_attached noteGravatar Brandon Matthews 1-2/+5
2019-03-12Add explanatory note about C_DEBUGENGravatar Brandon Matthews 1-3/+9
2019-03-12Add note that NVIC::request is not available on armv6mGravatar Brandon Matthews 1-0/+2
2019-03-12Exclude unused import and elide nvic::request for armv6mGravatar Brandon Matthews 1-2/+3
2019-03-12Add STIR register address testGravatar Brandon Matthews 1-0/+1
2019-03-12Add support for debugger checkGravatar Brandon Matthews 1-2/+6
2019-03-12Add STIR register to NVIC peripheralGravatar Brandon Matthews 1-1/+27
2018-12-15Fix for error in TravisGravatar Emil Fresk 1-1/+3
2018-12-15Test fixesGravatar Emil Fresk 1-0/+8
2018-12-15Fixes for DWT on Cortex-M0Gravatar Emil Fresk 1-0/+18
2018-12-09Upgrade to aligned 0.3Gravatar Raphael Nestler 1-3/+3
2018-11-20Add api to set SLEEPONEXIT bit in SCR registerGravatar Simon Vandel Sillesen 1-0/+18
2018-10-27deprecate NVIC.{clear,set}_pending in favor of NVIC::{un,}pendGravatar Jorge Aparicio 1-5/+25
NVIC::{un,}pend are static methods that don't require an instance of NVIC to be invoked.
2018-10-26deny warnings only on nightlyGravatar Jorge Aparicio 1-1/+0
lints have changed between nightly and stable
2018-10-26remove hidden variantGravatar Jorge Aparicio 1-5/+0
it was there to maybe support adding DebugMonitor in the future but it has already been added
2018-10-26add DebugMonitor variant to SystemHandlerGravatar Jorge Aparicio 1-2/+6
2018-10-26fix shiftGravatar Jorge Aparicio 1-2/+2
2018-10-24fix warningGravatar Jorge Aparicio 1-1/+0
2018-10-24add high level API to set priority of system handlersGravatar Jorge Aparicio 2-0/+118
2018-10-01Autoformat scb.rs by rustfmtGravatar qwerty19106 1-13/+14
2018-10-01Remove blank lineGravatar qwerty19106 1-1/+0
2018-10-01Fix function names and remove exclusive accessGravatar qwerty19106 1-3/+3
2018-09-24Fix duplicate PendSV.Gravatar qwerty19106 1-56/+28