1
0
mirror of git://projects.qi-hardware.com/iris.git synced 2024-07-01 00:44:31 +03:00
iris/init.config
2010-05-10 01:07:17 +02:00

30 lines
1.2 KiB
Plaintext

# driver <name> = '<filename>' load a file into memory to be run priviledged.
# program <name> = '<filename>' load a file into memory to be run normally.
driver driver_lcd = "lcd.elf"
driver driver_buzzer = "buzzer.elf"
driver driver_gpio = "gpio.elf"
program alarm = "alarm.elf"
program gui = "gui.elf"
# receive <name> / <type> [, <index>] = <cap> prepare to accept a capability from a named program.
receive driver_lcd / Display = display
receive driver_lcd / Setting = display_bright
receive driver_buzzer / Buzzer = buzzer
receive driver_gpio / Keyboard , 0 = keyboard
receive driver_gpio / Keyboard , 1 = sysreq
receive alarm / UI = ui
# sysreq <cap> use a capability as the system request keyboard.
sysreq sysreq
# give <name> / <type> [, <index>] = <cap> give this capability to this program when it requests it.
give gui / UI = ui
give gui / Display = display
give gui / Setting = display_bright
give gui / Buzzer = buzzer
give gui / Keyboard = keyboard
# include <file> include a file as another config file.
# at end of file, the initial threads are killed and the drivers and programs are run as soon as all their dependencies are provided.