Skip to content

Commit

Permalink
Remove rt::nvic module
Browse files Browse the repository at this point in the history
There's no point in just setting irq priorities. The commit removes
the nvic module, since the critical bits are now implemented in
assembly.
  • Loading branch information
mciantyre committed Nov 29, 2020
1 parent f1e5cb8 commit 6cdf0f1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 31 deletions.
13 changes: 10 additions & 3 deletions src/rt.rs
@@ -1,9 +1,17 @@
//! Rust entry point
//! Runtime support
//!
//! The useful bits are written in assembly. See `start.s` for the
//! reset handler implementation. The reset handler eventually calls
//! `t4_init()`, which finishes setup, and calls the `cortex-m-rt`
//! `Reset()` handler.
//!
//! Code that's in this module is running before `.data` is initialized,
//! and before `.bss` is zeroed. This code should only touch ARM and
//! peripheral memory.

pub use cortex_m_rt::*;

mod cache;
mod nvic;

/// System entrypoint, invoked by reset handler
///
Expand All @@ -14,7 +22,6 @@ mod nvic;
/// to first be initialized by cortex-m-rt.
#[no_mangle]
unsafe extern "C" fn t4_init() {
nvic::init();
cache::init();

// Remain in 'run' when transitioning to low power mode.
Expand Down
28 changes: 0 additions & 28 deletions src/rt/nvic.rs

This file was deleted.

0 comments on commit 6cdf0f1

Please sign in to comment.