|
156 | 156 | //! |
157 | 157 | //! Our application would look like this: |
158 | 158 | //! |
159 | | -//! ```no_run |
| 159 | +//! ```ignore,no_run |
160 | 160 | //! // src/main.rs |
161 | 161 | //! #![no_main] |
162 | 162 | //! #![no_std] |
|
269 | 269 | //! |
270 | 270 | //! ## Example |
271 | 271 | //! |
272 | | -//! ``` no_run |
| 272 | +//! ``` ignore,no_run |
273 | 273 | //! extern crate some_allocator; // e.g., embedded_alloc::LlffHeap |
274 | 274 | //! |
275 | 275 | //! extern "C" { |
|
357 | 357 | //! |
358 | 358 | //! The following example shows how to implement the `_mp_hook` function in assembly. |
359 | 359 | //! |
360 | | -//! ``` no_run |
| 360 | +//! ``` ignore,no_run |
361 | 361 | //! core::arch::global_asm!( |
362 | 362 | //! r#".section .init.mp_hook, "ax" |
363 | 363 | //! .global _mp_hook |
|
433 | 433 | //! |
434 | 434 | //! This function can be redefined in the following way: |
435 | 435 | //! |
436 | | -//! ``` no_run |
| 436 | +//! ``` ignore,no_run |
437 | 437 | //! #[export_name = "ExceptionHandler"] |
438 | 438 | //! fn custom_exception_handler(trap_frame: &riscv_rt::TrapFrame) -> ! { |
439 | 439 | //! // ... |
|
542 | 542 | //! |
543 | 543 | //! The following example shows how to implement the `__pre_init` function in assembly. |
544 | 544 | //! |
545 | | -//! ``` no_run |
| 545 | +//! ``` ignore,no_run |
546 | 546 | //! core::arch::global_asm!( |
547 | 547 | //! r#".section .init.pre_init, "ax" |
548 | 548 | //! .global __pre_init |
|
574 | 574 | //! |
575 | 575 | //! Skips interrupts setup. |
576 | 576 | //! |
| 577 | +//! ## `no-xie-xip` |
| 578 | +//! |
| 579 | +//! Skips disabling interrupts (to support chips without XIE/XIP CSRs). |
| 580 | +//! |
| 581 | +//! ## `no-interrupts` |
| 582 | +//! |
| 583 | +//! Opts out of the default implementation for `_dispatch_core_interrupt` to support platforms |
| 584 | +//! with custom core interrupt sources. |
| 585 | +//! |
| 586 | +//! ## `no-exceptions` |
| 587 | +//! |
| 588 | +//! Opts out of the default implementation for `_dispatch_exception` to support platforms |
| 589 | +//! with custom exception sources. |
| 590 | +//! |
577 | 591 | //! ## `s-mode` |
578 | 592 | //! |
579 | 593 | //! Supervisor mode. While most registers/instructions have variants for both `mcause` and |
|
622 | 636 | //! |
623 | 637 | //! ### Example |
624 | 638 | //! |
625 | | -//! ```rust,no_run |
| 639 | +//! ```rust,ignore,no_run |
626 | 640 | //! core::arch::global_asm!( |
627 | 641 | //! r#" |
628 | 642 | //! .section .trap.start, "ax" |
|
639 | 653 | //! "# |
640 | 654 | //! ); |
641 | 655 | //! ``` |
| 656 | +//! |
| 657 | +//! ## `device` |
| 658 | +//! |
| 659 | +//! Automatically includes `device.x` (typically provided by PACs to provide weak aliases to interrupt handlers) |
| 660 | +//! in the linker script. |
| 661 | +//! |
| 662 | +//! ## `memory` |
| 663 | +//! |
| 664 | +//! Automatically includes [`memory.x`](#memoryx) (typically provided by BSPs) in the linker script. |
| 665 | +//! |
| 666 | +//! ## `defmt` |
| 667 | +//! |
| 668 | +//! Implements `defmt::Format` on certain types. |
| 669 | +//! |
642 | 670 | //! [attr-entry]: attr.entry.html |
643 | 671 | //! [attr-exception]: attr.exception.html |
644 | 672 | //! [attr-external-interrupt]: attr.external_interrupt.html |
|
0 commit comments