2010-05-01 00:13:49 +03:00
|
|
|
# load <name> = '<filename>' load a file into memory. Don't use this after killbootthreads.
|
|
|
|
load driver_lcd = "lcd.elf"
|
2010-05-03 17:46:14 +03:00
|
|
|
#load driver_buzzer = "buzzer.elf"
|
|
|
|
#load driver_gpio = "gpio.elf"
|
2010-05-05 01:07:55 +03:00
|
|
|
#load ball = "ball.elf"
|
2010-05-01 00:13:49 +03:00
|
|
|
|
|
|
|
# killbootthreads destroy bootinit, bootfs and bootstore.
|
|
|
|
killbootthreads
|
|
|
|
|
|
|
|
# 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
|
2010-05-03 17:46:14 +03:00
|
|
|
#receive driver_buzzer / Buzzer = buzzer
|
|
|
|
#receive driver_gpio / Keyboard , 0 = keyboard
|
|
|
|
#receive driver_gpio / Keyboard , 1 = sysreq
|
2010-05-01 00:13:49 +03:00
|
|
|
|
|
|
|
# driver <name> run a previously loaded program priviledged.
|
|
|
|
driver driver_lcd
|
2010-05-03 17:46:14 +03:00
|
|
|
#driver driver_buzzer
|
|
|
|
#driver driver_gpio
|
2010-05-01 00:13:49 +03:00
|
|
|
|
|
|
|
# wait wait until all expected capabilities are received.
|
|
|
|
wait
|
|
|
|
|
|
|
|
# sysreq <cap> use a capability as the system request keyboard.
|
|
|
|
sysreq sysreq
|
|
|
|
|
2010-05-05 01:07:55 +03:00
|
|
|
# give <name> / <type> [, <index>] = <cap> give this capability to this program when it requests it.
|
|
|
|
#give ball / Display = display
|
2010-05-01 00:13:49 +03:00
|
|
|
|
|
|
|
# run <name> run a previously loaded program (normally).
|
2010-05-05 01:07:55 +03:00
|
|
|
#run ball
|
2010-05-01 00:13:49 +03:00
|
|
|
|
|
|
|
# include <name> include a loaded file as another config file.
|