diff options
author | Julian T <julian@jtle.dk> | 2020-03-11 11:16:44 +0100 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2020-03-11 11:16:44 +0100 |
commit | fa843c87eec9fa738f33cfb0db5844ca1350cddc (patch) | |
tree | 06942730403ecb3d1f68995ac71c3af08ba965fb /sem4/embedded/m4 | |
parent | 5296471c474ea39badbb79d7df9fdc6b7e6709d9 (diff) |
Added stuff for hpp and embedded
Diffstat (limited to 'sem4/embedded/m4')
-rw-r--r-- | sem4/embedded/m4/krnl-opgaver.md | 39 |
1 files changed, 39 insertions, 0 deletions
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. + |