# HG changeset patch # User Paul Boddie # Date 1699808895 -3600 # Node ID 9e2c034b3a29a154bce07b38d39a645a8d849b01 # Parent 2d04505ba4ac7ff91d25b315d9965a314f56fe3f Added demonstration configuration files. diff -r 2d04505ba4ac -r 9e2c034b3a29 conf/landfall-examples/mips-ci20-spi-spectrum.cfg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/conf/landfall-examples/mips-ci20-spi-spectrum.cfg Sun Nov 12 18:08:15 2023 +0100 @@ -0,0 +1,62 @@ +-- vim: ft=lua ts=2 et sw=2 + +-- Start Mag to multiplex the framebuffer showing only a single program. +-- This example shows an animation showing off a spectrum of colours. +-- The target platform is the MIPS Creator CI20. + +local L4 = require("L4"); + +local l = L4.default_loader; + +-- Define general access to peripherals. + +local io_buses = { + common = l:new_channel(); + }; + +l:start({ + caps = { + common = io_buses.common:svr(), + icu = L4.Env.icu, + sigma0 = L4.cast(L4.Proto.Factory, L4.Env.sigma0):create(L4.Proto.Sigma0), + }, + }, + "rom/io rom/hw_devices.io rom/mips-ci20-common.io"); + +-- Expose a framebuffer device. + +local fbdrv_fb = l:new_channel(); + +l:start({ + caps = { + vbus = io_buses.common, + fb = fbdrv_fb:svr(), + }, + }, + "rom/fb-drv"); + +-- Multiplex the framebuffer. + +local mag_caps = { + mag = l:new_channel(), + svc = l:new_channel(), + }; + +l:start({ + caps = { + vbus = io_buses.common, -- needed by input driver + fb = fbdrv_fb, + mag = mag_caps.mag:svr(), + svc = mag_caps.svc:svr(), + }, + }, + "rom/mag"); + +-- Show the spectrum example. + +l:start({ + caps = { + fb = mag_caps.svc:create(L4.Proto.Goos, "g=240x240+0+0", "barheight=10"), + }, + }, + "rom/ex_fb_spectrum_cc"); diff -r 2d04505ba4ac -r 9e2c034b3a29 conf/landfall-examples/mips-ci20-spi-spectrum.list --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/conf/landfall-examples/mips-ci20-spi-spectrum.list Sun Nov 12 18:08:15 2023 +0100 @@ -0,0 +1,16 @@ + +modaddr 0x1100000 + +entry mips-ci20-spi-spectrum-example +bootstrap bootstrap -serial +kernel fiasco -serial_esc +roottask moe rom/mips-ci20-spi-spectrum.cfg +module mips-ci20-spi-spectrum.cfg +module mips-ci20-common.io +module plat-ingenic-jz4780/hw_devices.io +module l4re +module io +module ned +module fb-drv +module mag +module ex_fb_spectrum_cc