Skip to content

Commit 51a9fbd

Browse files
committed
eclic: move eclic-mode-hack.S into Rust
Uses inline assembly to move the code from `eclic-mode-hack.S` into Rust. The generated assembly is different. This commit should be reverted if regressions are noticed on real hardware.
1 parent 6fce78c commit 51a9fbd

File tree

6 files changed

+268
-377
lines changed

6 files changed

+268
-377
lines changed

assemble.sh

Lines changed: 0 additions & 11 deletions
This file was deleted.

bin/gd32vf103xx-hal.a

-4.99 KB
Binary file not shown.

build.rs

Lines changed: 0 additions & 21 deletions
This file was deleted.

eclic-mode-hack.S

Lines changed: 0 additions & 345 deletions
This file was deleted.

src/eclic.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
use crate::pac::{ECLIC, Interrupt};
22

3+
/// The code is based on vendor provided HAL libraries.
4+
/// Most code come from Firmware\RISCV\env_Eclipse\start.S
5+
pub mod mode;
6+
37
const EFFECTIVE_LEVEL_PRIORITY_BITS: u8 = 4;
48

59
#[repr(u8)]

0 commit comments

Comments
 (0)