Landfall

Annotated conf/landfall-examples/mips-ci20-i2c.io

154:f1ed3ebe0ddd
17 months ago Paul Boddie Fixed parameter type. Without this fix, C++ treats the method as being distinct from the base class method of the same name, and thus the operation cannot be invoked via IPC. idl4re-libipc-libsystypes
paul@0 1
-- vi:ft=lua
paul@0 2
-- configuration file for io
paul@0 3
paul@0 4
local hw = Io.system_bus()
paul@0 5
paul@0 6
local bus = Io.Vi.System_bus
paul@0 7
{
paul@0 8
  CPM = wrap(hw:match("jz4780-cpm"));
paul@0 9
  GPIO = wrap(hw:match("jz4780-gpio"));
paul@0 10
  I2C = wrap(hw:match("jz4780-i2c"));
paul@0 11
}
paul@0 12
paul@0 13
Io.add_vbus("i2c", bus)