Landfall

Annotated conf/landfall-examples/mips-qi_lb60-keypad-driver.io

0:89a1bc19c1fc
2018-05-13 Paul Boddie Added device libraries and programs, configuration files and examples. Also added an installation script and copyright and licensing information.
paul@0 1
-- vim: ft=lua ts=2 et sw=2
paul@0 2
  
paul@0 3
-- Configuration file for Io.
paul@0 4
paul@0 5
local hw = Io.system_bus()
paul@0 6
paul@0 7
Io.add_vbus("cpm", Io.Vi.System_bus
paul@0 8
{
paul@0 9
  CPM = wrap(hw:match("jz4740-cpm"));
paul@0 10
})
paul@0 11
paul@0 12
Io.add_vbus("gpio", Io.Vi.System_bus
paul@0 13
{
paul@0 14
  GPIO = wrap(hw:match("jz4740-gpio"));
paul@0 15
})
paul@0 16
paul@0 17
Io.add_vbus("lcd", Io.Vi.System_bus
paul@0 18
{
paul@0 19
  LCD = wrap(hw:match("jz4740-lcd"));
paul@0 20
})