1 -- vim: ft=lua ts=2 et sw=2 2 3 -- Configuration file for Io. 4 5 local hw = Io.system_bus() 6 7 Io.add_vbus("cpm", Io.Vi.System_bus 8 { 9 CPM = wrap(hw:match("jz4730-cpm")); 10 }) 11 12 Io.add_vbus("gpio", Io.Vi.System_bus 13 { 14 GPIO = wrap(hw:match("jz4730-gpio")); 15 }) 16 17 Io.add_vbus("lcd", Io.Vi.System_bus 18 { 19 LCD = wrap(hw:match("jz4740-lcd")); 20 }) 21 22 Io.add_vbus("pwm", Io.Vi.System_bus 23 { 24 GPIO = wrap(hw:match("jz4730-gpio")); 25 PWM = wrap(hw:match("jz4730-pwm")); 26 })