1 -- vi:ft=lua 2 -- configuration file for io 3 4 local hw = Io.system_bus() 5 6 local bus = Io.Vi.System_bus 7 { 8 CPM = wrap(hw:match("jz4780-cpm")); 9 GPIO = wrap(hw:match("jz4780-gpio")); 10 I2C = wrap(hw:match("jz4780-i2c")); 11 } 12 13 Io.add_vbus("i2c", bus)