aboutsummaryrefslogtreecommitdiff
path: root/cortex-m-rt/examples (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-11-04c-m-rt: mark Vector as repr(C)Gravatar Adam Greig 2-0/+2
2022-02-25Fix cortex-m-rt qemu test by removing 'nomem' from semihosting_syscall asm, ↵Gravatar Adam Greig 1-17/+13
add inline to most cortex_m::asm methods
2021-03-02Fix examples build for nightlyGravatar Adam Greig 1-0/+1
2020-08-23Fix examplesGravatar Jonas Schievink 2-5/+3
2020-07-21Run rustfmt to make CI happierGravatar Daniel Egger 1-2/+2
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
2020-01-26Add a test that enables ALL the warningsGravatar Jonas Schievink 1-0/+50
2019-11-21Remove Remaining Rand RemnantsGravatar Jonas Schievink 1-24/+0
2019-11-01Bump rand dependency to 0.7Gravatar Daniel Egger 1-2/+2
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
2019-08-19Enable building semihosting for Armv8mGravatar Aurabindo Jayamohanan 1-12/+0
Semihosting protocol has not changed for Arvmv8m and hence it need not be disabled for this architecture. Signed-off-by: Aurabindo Jayamohanan <mail@aurabindo.in>
2019-03-16Bump cortex-m dev-dep to 0.6 (it's only a dev-dep and so doesn't affect ↵Gravatar Jonathan 'theJPster' Pallant 1-4/+15
other packages) Disable the semihosting test on thumbv8, as it's currently unsupported in cortex-m-semihosting
2019-01-24doc: Remove obsolete references to entry!Gravatar chrysn 1-1/+1
2018-12-15static mut transform: forward `#[cfg]`Gravatar Jorge Aparicio 1-0/+25
2018-09-21remove unneeded code and dependencies.Gravatar Hideki Sekine 1-28/+2
2018-09-21make build pass.Gravatar Hideki Sekine 1-17/+19
2018-09-19[rust/ci/qemu] main for qemu run.Gravatar Hideki Sekine 1-0/+53
- taken from japaric/lm3s6965evb
2018-09-18update the unsafety exampleGravatar Jorge Aparicio 1-1/+1
2018-09-18use panic-halt instead of panic-{abort,semihosting}Gravatar Jorge Aparicio 16-16/+16
the former requires a feature gate; the later pulls in the cortex-m crate
2018-09-18respect declared unsafetyGravatar Jorge Aparicio 1-0/+36
the `#[entry]` and `#[exception]` attributes ignored the declared unsafety and always expanded to a safe function. This caused the following valid code to error at compile time: ``` rust #[entry] unsafe fn main() -> ! { foo(); //~^ ERROR call to unsafe function is unsafe and requires unsafe function or block loop {} } unsafe fn foo() {} ```
2018-09-07Added example using rand crate to ensure no_std compatibilityGravatar Daniel Egger 1-0/+24
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
2018-09-06relax checks of the signatures of `entry` and the exceptionsGravatar Jorge Aparicio 6-0/+100
2018-09-06add a test / example about using `static mut` vars in the entry pointGravatar Jorge Aparicio 1-0/+20
2018-08-31fix soundness issue; change the syntax of the `exception` attributeGravatar Jorge Aparicio 2-6/+8
2018-08-31turn macros into attributesGravatar Jorge Aparicio 7-31/+21
2018-08-15Merge branch 'master' into releaseGravatar Adam Greig 2-0/+52
2018-08-12Remove the setting of exceptions from the pre_init example as they are now ↵Gravatar Gabriel Smith 1-15/+1
defaulted Signed-off-by: Gabriel Smith <ga29smith@gmail.com>
2018-08-12Add example for using the pre_init macroGravatar Gabriel Smith 1-0/+36
Signed-off-by: Gabriel Smith <ga29smith@gmail.com>
2018-08-12remove exception handler overridesGravatar Jorge Aparicio 1-13/+1
they are not required anymore
2018-08-11v0.5.2Gravatar Jorge Aparicio 6-72/+38
2018-08-12Update linker script to put .data into FLASHGravatar Adam Greig 1-0/+42
Previously .data's LMA was specified by a computated address instead of placing it into FLASH explicitly, which means FLASH overflows caused by .data would not be detected by the linker. Fixes #86.
2018-08-07refactor the linker scriptGravatar Jorge Aparicio 1-0/+45
to make it more compatible with LLD. This commit contains no functional changes. fixes #70 Overview of changes: - Alignment checks are enabled now that rust-lld (LLD 7.0) supports the modulo operator. - Removed some private symbols (e.g. __foo) in favor of ADDR and SIZEOF. - Turned .got into a NOLOAD section now that rust-lld supports it. - Replaced `ABSOLUTE(.)` with `.` as an old LLD overlap bug seems to be gone and ABSOLUTE seems to cause problems, like #70, on bigger programs. - Made the linker assertion messages more uniform. - Extended test suite to check that linking works with both rust-lld and GNU LD.
2018-05-11add CI, add device specific check of the vector table size, ..Gravatar Jorge Aparicio 4-0/+147
- document the `main` symbol as an alternative to `entry!` - document `ResetTrampoline` - fix: `PendSV` is available on ARMv6-M - document that `entry!` and `exception!` must be called from accessible modules. - add a deny lint to `entry!` and `exception!` to prevent them from being invoked from inaccessible modules.