-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: created I2cDriver Interface * Changing `asynchronous` to `synchronous` in comments --------- Co-authored-by: M Starch <LeStarch@googlemail.com>
- Loading branch information
1 parent
3c2ac53
commit 3d49971
Showing
2 changed files
with
12 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|
||
@ Port for guarded synchronous writing to I2C | ||
guarded input port write: Drv.I2c | ||
|
||
@ Port for guarded synchronous reading from I2C | ||
guarded input port read: Drv.I2c | ||
|
||
@ Port for synchronous writing and reading from I2C | ||
guarded input port writeRead: Drv.I2cWriteRead |
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 |
---|---|---|
@@ -1,13 +1,9 @@ | ||
module Drv { | ||
|
||
passive component LinuxI2cDriver { | ||
include "../Interfaces/I2cInterface.fppi" | ||
|
||
guarded input port write: Drv.I2c | ||
|
||
guarded input port read: Drv.I2c | ||
|
||
guarded input port writeRead: Drv.I2cWriteRead | ||
|
||
} | ||
|
||
} | ||
|
||
} |