-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add embassy example - improve timer API - restructure examples - restructure and improve SPI - Add REB1 M95M01 NVM module
- Loading branch information
Showing
40 changed files
with
2,116 additions
and
566 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
[package] | ||
name = "bootloader" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
[dependencies] | ||
cortex-m = "0.7" | ||
cortex-m-rt = "0.7" | ||
embedded-hal = "1" | ||
embedded-hal-bus = "0.2" | ||
dummy-pin = "1" | ||
panic-rtt-target = { version = "0.1.3" } | ||
panic-halt = { version = "0.2" } | ||
rtt-target = { version = "0.5" } | ||
crc = "3" | ||
|
||
[dependencies.va108xx-hal] | ||
path = "../va108xx-hal" | ||
|
||
[dependencies.vorago-reb1] | ||
path = "../vorago-reb1" | ||
|
||
[features] | ||
default = [] | ||
rtt-panic = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#![no_std] | ||
|
||
use core::convert::Infallible; | ||
|
||
/// Simple trait which makes swapping the NVM easier. NVMs only need to implement this interface. | ||
pub trait NvmInterface { | ||
fn write(&mut self, address: u32, data: &[u8]) -> Result<(), Infallible>; | ||
fn read(&mut self, address: u32, buf: &mut [u8]) -> Result<(), Infallible>; | ||
fn verify(&mut self, address: u32, data: &[u8]) -> Result<bool, Infallible>; | ||
} |
Oops, something went wrong.