paul@0 | 1 | -- vim: ft=lua ts=2 et sw=2 |
paul@0 | 2 | |
paul@0 | 3 | -- Test LCD peripheral. The target platform is the Ben NanoNote. |
paul@0 | 4 | |
paul@0 | 5 | local L4 = require("L4"); |
paul@0 | 6 | |
paul@0 | 7 | local l = L4.default_loader; |
paul@0 | 8 | |
paul@0 | 9 | local io_buses = { |
paul@0 | 10 | devices = l:new_channel(); -- exposes CPM, GPIO, LCD |
paul@0 | 11 | }; |
paul@0 | 12 | |
paul@0 | 13 | l:start({ |
paul@0 | 14 | caps = { |
paul@0 | 15 | devices = io_buses.devices:svr(), |
paul@0 | 16 | icu = L4.Env.icu, |
paul@0 | 17 | sigma0 = L4.cast(L4.Proto.Factory, L4.Env.sigma0):create(L4.Proto.Sigma0), |
paul@0 | 18 | }, |
paul@0 | 19 | log = { "IO", "y" }, |
paul@0 | 20 | l4re_dbg = L4.Dbg.Warn, |
paul@0 | 21 | }, |
paul@0 | 22 | "rom/io -vvvv rom/hw_devices.io rom/mips-qi_lb60-lcd.io"); |
paul@0 | 23 | |
paul@0 | 24 | l:start({ |
paul@0 | 25 | caps = { |
paul@0 | 26 | icu = L4.Env.icu, |
paul@0 | 27 | vbus = io_buses.devices, |
paul@0 | 28 | }, |
paul@0 | 29 | }, |
paul@0 | 30 | "rom/ex_qi_lb60_lcd"); |