File tree 10 files changed +20
-0
lines changed
10 files changed +20
-0
lines changed Original file line number Diff line number Diff line change
1
+ // SPDX-License-Identifier: MIT OR Apache-2.0
2
+
1
3
//! This build script copies the `memory.x` file from the crate root into
2
4
//! a directory where the linker can always find it at build time.
3
5
//! For many projects this is optional, as the linker always searches the
Original file line number Diff line number Diff line change
1
+ // SPDX-License-Identifier: MIT OR Apache-2.0
2
+
1
3
//! How to use the heap and a dynamic memory allocator
2
4
//!
3
5
//! This example depends on the alloc-cortex-m crate so you'll have to add it to your Cargo.toml:
Original file line number Diff line number Diff line change
1
+ // SPDX-License-Identifier: MIT OR Apache-2.0
2
+
1
3
//! Debugging a crash (exception)
2
4
//!
3
5
//! Most crash conditions trigger a hard fault exception, whose handler is defined via
Original file line number Diff line number Diff line change
1
+ // SPDX-License-Identifier: MIT OR Apache-2.0
2
+
1
3
//! Using a device crate
2
4
//!
3
5
//! Crates generated using [`svd2rust`] are referred to as device crates. These crates provide an
Original file line number Diff line number Diff line change
1
+ // SPDX-License-Identifier: MIT OR Apache-2.0
2
+
1
3
//! Overriding an exception handler
2
4
//!
3
5
//! You can override an exception handler using the [`#[exception]`][1] attribute.
Original file line number Diff line number Diff line change
1
+ // SPDX-License-Identifier: MIT OR Apache-2.0
2
+
1
3
//! Prints "Hello, world!" on the host console using semihosting
2
4
3
5
#![ no_main]
Original file line number Diff line number Diff line change
1
+ // SPDX-License-Identifier: MIT OR Apache-2.0
2
+
1
3
//! Sends "Hello, world!" through the ITM port 0
2
4
//!
3
5
//! ITM is much faster than semihosting. Like 4 orders of magnitude or so.
Original file line number Diff line number Diff line change
1
+ // SPDX-License-Identifier: MIT OR Apache-2.0
2
+
1
3
//! Changing the panicking behavior
2
4
//!
3
5
//! The easiest way to change the panicking behavior is to use a different [panic handler crate][0].
Original file line number Diff line number Diff line change
1
+ // SPDX-License-Identifier: MIT OR Apache-2.0
2
+
1
3
//! Conditionally compiling tests with std and our executable with no_std.
2
4
//!
3
5
//! Rust's built in unit testing framework requires the standard library,
Original file line number Diff line number Diff line change
1
+ // SPDX-License-Identifier: MIT OR Apache-2.0
2
+
1
3
#![ no_std]
2
4
#![ no_main]
3
5
You can’t perform that action at this time.
0 commit comments