Skip to content

Commit

Permalink
[Sw, Rust] Porting embedded-hal 1.0
Browse files Browse the repository at this point in the history
Signed-off-by: Douglas Reis <[email protected]>
  • Loading branch information
engdoreis committed Jul 17, 2024
1 parent d743a26 commit 1f26720
Show file tree
Hide file tree
Showing 21 changed files with 368 additions and 183 deletions.
66 changes: 46 additions & 20 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions sw/common/link.ld
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,22 @@ PROVIDE(_mp_hook = default_mp_hook);
PROVIDE(_start_trap = default_start_trap);
PROVIDE(_setup_interrupts = default_setup_interrupts);


PROVIDE(InstructionMisaligned = ExceptionHandler);
PROVIDE(InstructionFault = ExceptionHandler);
PROVIDE(IllegalInstruction = ExceptionHandler);
PROVIDE(Breakpoint = ExceptionHandler);
PROVIDE(LoadMisaligned = ExceptionHandler);
PROVIDE(LoadFault = ExceptionHandler);
PROVIDE(StoreMisaligned = ExceptionHandler);
PROVIDE(StoreFault = ExceptionHandler);
PROVIDE(UserEnvCall = ExceptionHandler);
PROVIDE(SupervisorEnvCall = ExceptionHandler);
PROVIDE(MachineEnvCall = ExceptionHandler);
PROVIDE(InstructionPageFault = ExceptionHandler);
PROVIDE(LoadPageFault = ExceptionHandler);
PROVIDE(StorePageFault = ExceptionHandler);

SECTIONS
{
.text : {
Expand Down
86 changes: 37 additions & 49 deletions sw/rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions sw/rust/demo/hello_world/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ build = "../../build.rs"

[dependencies]
panic-halt = "0.2.0"
riscv = "0.10"
riscv-rt = "0.11.0"
riscv = "0.11"
riscv-rt = "0.12"
riscv-semihosting = {git="https://github.com/riscv-rust/riscv-semihosting", branch="master", features=["user-mode"]}
8 changes: 4 additions & 4 deletions sw/rust/demo/lcd_hal/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ build = "../../build.rs"

[dependencies]
embedded-graphics = "0.8.0"
st7735-lcd = "0.9.0"
st7735-lcd = "0.10.0"
panic-halt = "0.2.0"
riscv = {version = "0.10.1", features = ["critical-section-single-hart"]}
riscv-rt = "0.11.0"
riscv = {version = "0.11.1", features = ["critical-section-single-hart"]}
riscv-rt = "0.12.2"
ibex-demo-system-hal = {path = "../../ibex-demo-system-hal"}
embedded-hal = "0.2.7"
embedded-hal = "1.0.0"
tinybmp = "0.5.0"

Loading

0 comments on commit 1f26720

Please sign in to comment.