diff --git a/Drv/Interfaces/I2cInterface.fppi b/Drv/Interfaces/I2cInterface.fppi new file mode 100644 index 0000000000..6c639b7fc2 --- /dev/null +++ b/Drv/Interfaces/I2cInterface.fppi @@ -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 diff --git a/Drv/LinuxI2cDriver/LinuxI2cDriver.fpp b/Drv/LinuxI2cDriver/LinuxI2cDriver.fpp index 833197fb1d..93fbda91f6 100644 --- a/Drv/LinuxI2cDriver/LinuxI2cDriver.fpp +++ b/Drv/LinuxI2cDriver/LinuxI2cDriver.fpp @@ -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 - - } + + } }