2010-05-10 02:07:17 +03:00
|
|
|
# driver <name> = '<filename>' load a file into memory to be run priviledged.
|
|
|
|
# program <name> = '<filename>' load a file into memory to be run normally.
|
2012-09-26 20:03:36 +03:00
|
|
|
# file <name> = '<filename>' load a file into memory as a Block.
|
2010-08-22 23:03:06 +03:00
|
|
|
# receive <name> / <type> [, <index>] = <cap> prepare to accept a capability from a named program.
|
|
|
|
# sysreq <cap> use a capability as the system request keyboard.
|
|
|
|
# give <name> / <type> [, <index>] = <cap> give this capability to this program when it requests it.
|
|
|
|
# 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.
|
|
|
|
|
2010-05-10 02:07:17 +03:00
|
|
|
driver driver_gpio = "gpio.elf"
|
2010-08-22 23:03:06 +03:00
|
|
|
receive driver_gpio / Keyboard , 0 = keyboard
|
|
|
|
receive driver_gpio / Keyboard , 1 = sysreq
|
|
|
|
receive driver_gpio / Event = sdmmc_gpio
|
|
|
|
sysreq sysreq
|
|
|
|
|
2012-01-14 19:17:23 +02:00
|
|
|
#driver driver_nand = "nand.elf"
|
|
|
|
#receive driver_nand / WBlock = nand
|
2010-09-02 00:27:14 +03:00
|
|
|
|
2012-01-14 19:17:23 +02:00
|
|
|
#driver driver_ums = "usb-mass-storage.elf"
|
|
|
|
#give driver_ums / WBlock = nand
|
2010-05-01 00:13:49 +03:00
|
|
|
|
2010-08-24 00:55:51 +03:00
|
|
|
#driver driver_boot = "boot.elf"
|
|
|
|
#receive driver_boot / Boot = boot
|
2010-08-22 23:03:06 +03:00
|
|
|
|
2010-08-24 00:55:51 +03:00
|
|
|
#file kernel = "kernel.raw"
|
|
|
|
#program booter = "booter.elf"
|
2012-09-26 20:03:36 +03:00
|
|
|
#give booter / Block = kernel
|
2010-08-24 00:55:51 +03:00
|
|
|
#give booter / Boot = boot
|
2010-05-01 00:13:49 +03:00
|
|
|
|
2012-01-14 19:17:23 +02:00
|
|
|
driver driver_lcd = "lcd.elf"
|
|
|
|
receive driver_lcd / Display = display
|
|
|
|
receive driver_lcd / Setting = display_bright
|
2010-05-01 00:13:49 +03:00
|
|
|
|
2012-01-14 19:17:23 +02:00
|
|
|
driver driver_buzzer = "buzzer.elf"
|
|
|
|
receive driver_buzzer / Buzzer = buzzer
|
2010-08-24 00:55:51 +03:00
|
|
|
|
2015-07-01 08:48:10 +03:00
|
|
|
program alarm = "alarm.elf"
|
|
|
|
receive alarm / UI = ui
|
2010-08-24 00:55:51 +03:00
|
|
|
|
2015-07-01 08:48:10 +03:00
|
|
|
program gui = "gui.elf"
|
|
|
|
give gui / UI = ui
|
|
|
|
give gui / Display = display
|
|
|
|
give gui / Setting = display_bright
|
|
|
|
give gui / Buzzer = buzzer
|
|
|
|
give gui / Keyboard = keyboard
|
2010-08-22 23:03:06 +03:00
|
|
|
|
|
|
|
#driver sdmmc = "sd+mmc.elf"
|
2012-09-26 20:03:36 +03:00
|
|
|
#receive sdmmc / WBlock = sdmmc
|
2010-08-10 11:09:50 +03:00
|
|
|
#give sdmmc / Event = sdmmc_gpio
|
2010-08-22 23:03:06 +03:00
|
|
|
|
|
|
|
#program partition = "partition.elf"
|
2012-09-26 20:03:36 +03:00
|
|
|
#receive partition / WBlock, 0 = p0
|
|
|
|
#receive partition / WBlock, 1 = p1
|
|
|
|
#receive partition / WBlock, 2 = p2
|
|
|
|
#receive partition / WBlock, 3 = p3
|
|
|
|
#give partition / WBlock = sdmmc
|
2010-08-22 23:03:06 +03:00
|
|
|
|
|
|
|
#program fat = "fat.elf"
|
|
|
|
#receive fat / Directory = root
|
2012-09-26 20:03:36 +03:00
|
|
|
#give fat / WBlock = p0
|
2010-05-01 00:13:49 +03:00
|
|
|
|
2010-08-22 23:03:06 +03:00
|
|
|
#program test = "test.elf"
|
|
|
|
#give test / Directory = root
|
2010-05-01 00:13:49 +03:00
|
|
|
|
2015-07-01 08:48:10 +03:00
|
|
|
#file fontfile = "font.dat"
|
|
|
|
#program font = "font.elf"
|
|
|
|
#receive font / Font = font
|
|
|
|
#give font / Block = fontfile
|
2012-09-26 20:03:36 +03:00
|
|
|
#give font / Display = display
|
|
|
|
|
2015-07-01 08:48:10 +03:00
|
|
|
#driver driver_rtc = "rtc.elf"
|
|
|
|
#receive driver_rtc / RTC = rtc
|
2012-09-26 20:03:36 +03:00
|
|
|
|
2015-07-01 08:48:10 +03:00
|
|
|
#driver alarm = "alarm.elf"
|
|
|
|
#give alarm / Keyboard = keyboard
|
|
|
|
#give alarm / Display = display
|
|
|
|
#give alarm / Buzzer = buzzer
|
|
|
|
#give alarm / Font = font
|
|
|
|
#give alarm / RTC = rtc
|
|
|
|
#receive alarm / Event = alarm
|