mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-12 05:41:36 +00:00
Remove timer from hello run script (fix #629)
Currently, the hello run script of the hello_tutorial misses some services the timer driver needs on various platforms. The hello_tutorial is meant for educational purposes only. So it's desireable to keep it simple. Instead of complexifying the configuration, this commit just removes the timer from the example.
This commit is contained in:
parent
04b8418b54
commit
4f69bd9fb8
@ -15,14 +15,11 @@ install_config {
|
||||
<parent-provides>
|
||||
<service name="CAP"/>
|
||||
<service name="LOG"/>
|
||||
<service name="RM"/>
|
||||
</parent-provides>
|
||||
<default-route>
|
||||
<any-service> <parent/> <any-child/> </any-service>
|
||||
</default-route>
|
||||
<start name="timer">
|
||||
<resource name="RAM" quantum="1M"/>
|
||||
<provides><service name="Timer"/></provides>
|
||||
</start>
|
||||
<start name="hello_server">
|
||||
<resource name="RAM" quantum="1M"/>
|
||||
<provides><service name="Hello"/></provides>
|
||||
|
@ -14,7 +14,6 @@
|
||||
#include <base/env.h>
|
||||
#include <base/printf.h>
|
||||
#include <hello_session/client.h>
|
||||
#include <timer_session/connection.h>
|
||||
#include <hello_session/connection.h>
|
||||
|
||||
using namespace Genode;
|
||||
@ -23,15 +22,11 @@ int main(void)
|
||||
{
|
||||
Hello::Connection h;
|
||||
|
||||
Timer::Connection timer;
|
||||
|
||||
while (1) {
|
||||
h.say_hello();
|
||||
timer.msleep(1000);
|
||||
|
||||
int foo = h.add(2, 5);
|
||||
PDBG("Added 2 + 5 = %d", foo);
|
||||
timer.msleep(1000);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user