Landfall

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

84:21b57dd374bb
2020-06-17 Paul Boddie Added a mention of listlibs.sh which will need to be invoked for some examples. jz4780-lcd
paul@0 1
# this is a configuration to start 'ex_ci20_i2c'
paul@0 2
paul@0 3
local L4 = require("L4");
paul@0 4
paul@0 5
local l = L4.default_loader;
paul@0 6
paul@0 7
local io_buses =
paul@0 8
  {
paul@0 9
    i2c = l:new_channel();
paul@0 10
  };
paul@0 11
paul@0 12
l:start({
paul@0 13
  caps = {
paul@0 14
      i2c = io_buses.i2c:svr(),
paul@0 15
      icu = L4.Env.icu,
paul@0 16
      sigma0 = L4.cast(L4.Proto.Factory, L4.Env.sigma0):create(L4.Proto.Sigma0),
paul@0 17
    },
paul@0 18
    log = { "IO", "y" },
paul@0 19
    l4re_dbg = L4.Dbg.Warn,
paul@0 20
  },
paul@0 21
  "rom/io -vvvv rom/hw_devices.io rom/mips-ci20-i2c.io");
paul@0 22
paul@0 23
l:start({
paul@0 24
  caps = {
paul@0 25
      icu = L4.Env.icu,
paul@0 26
      vbus = io_buses.i2c,
paul@0 27
    },
paul@0 28
  },
paul@0 29
  "rom/ex_ci20_i2c");