From fa843c87eec9fa738f33cfb0db5844ca1350cddc Mon Sep 17 00:00:00 2001 From: Julian T Date: Wed, 11 Mar 2020 11:16:44 +0100 Subject: Added stuff for hpp and embedded --- sem4/embedded/m4/krnl-opgaver.md | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 sem4/embedded/m4/krnl-opgaver.md (limited to 'sem4/embedded/m4') diff --git a/sem4/embedded/m4/krnl-opgaver.md b/sem4/embedded/m4/krnl-opgaver.md new file mode 100644 index 0000000..7475a8a --- /dev/null +++ b/sem4/embedded/m4/krnl-opgaver.md @@ -0,0 +1,39 @@ +# Opgaver + +> Find 4 functioner til task, semafor, queue og message. + +# Task + +`k_crt_task` creates a new task and places it in the ready queue. + +`k_set_prio` sets the priority of running task. + +`k_sleep` put the task to sleep for some time. + +`ki_task_shift` brugt internt til at skrift task. + +# Semafor + +`k_crt_sem` initialises a new semafor. + +`k_mut_ceil_set` is called before k\_start. +And can be used to leverage priorities when other task i waiting. **I THINK**. + +`k_set_sem_timer` setup a timer to trigger a semophore periodicly. + +`k_signal` signal a semophore. + +`k_wait` wait on a semophore. + +# Queue + +`k_crt_send_Q` create a new message queue. + +# Message + +`k_send` send a message to recieving task. + +`k_receive` wait for a message froms other task. + +Også funktioner til brug i interrupt, de har bare `ki_bla_bla` istedet. + -- cgit v1.2.3