2
0
Fork 0
genodepkgs/tests/solo5/time.dhall

40 lines
1.0 KiB
Plaintext
Raw Normal View History

2020-01-17 01:24:34 +01:00
-- SPDX-License-Identifier: CC0-1.0
2019-10-22 19:20:26 +02:00
let Genode = env:DHALL_GENODE
2020-04-13 20:26:01 +02:00
let Init = Genode.Init
2020-01-17 19:27:04 +01:00
2020-04-13 20:26:01 +02:00
let Child = Init.Child
let init =
Init::{
, children = toMap
{ solo5 =
Child.flat
Child.Attributes::{
, binary = "solo5-test_time"
, exitPropagate = True
2020-04-13 20:26:01 +02:00
, resources = Init.Resources::{
, caps = 256
, ram = Genode.units.MiB 3
}
, routes =
2020-04-13 20:26:01 +02:00
[ Init.ServiceRoute.parent "Timer"
, Init.ServiceRoute.child "Rtc" "rtc_drv"
]
}
2020-04-13 20:26:01 +02:00
, rtc_drv =
Child.flat
Child.Attributes::{
, binary = "rtc_drv"
2020-04-13 20:26:01 +02:00
, exitPropagate = True
, provides = [ "Rtc" ]
2020-04-13 20:26:01 +02:00
, routes = [ Init.ServiceRoute.parent "IO_PORT" ]
}
}
}
2020-04-13 20:26:01 +02:00
in Init.toChild
init
Init.Attributes::{ routes = [ Init.ServiceRoute.parent "IO_PORT" ] }