forked from tock/libtock-rs
-
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.
Adds support to the i2c master slave sycall api for libtock-rs. The current implementation implements all the functionality synchronously. This api was testing using 2 Particle Boron boards (nrf52840 based) setup as a master and slave device. Additionally, this api was also tested by communicating with an MCP9808 sensor as an I2C master, again using the Particle Boron. Signed-off-by: Wilfred Mallawa <wilfred.mallawa@wdc.com>
- Loading branch information
Showing
4 changed files
with
458 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[package] | ||
name = "libtock_i2c_master_slave" | ||
version = "0.1.0" | ||
authors = [ | ||
"Tock Project Developers <tock-dev@googlegroups.com>", | ||
"Wilfred Mallawa <wilfred.mallawa@wdc.com>", | ||
] | ||
license = "Apache-2.0 OR MIT" | ||
edition = "2021" | ||
repository = "https://www.github.com/tock/libtock-rs" | ||
rust-version.workspace = true | ||
description = "libtock I2C master-slave driver" | ||
|
||
[dependencies] | ||
libtock_platform = { path = "../../platform" } | ||
|
Oops, something went wrong.