Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 813 Bytes

File metadata and controls

25 lines (20 loc) · 813 Bytes

6_mutex_challenge

../shell/rebuild_run_qemu.sh .

Challenge of Introduction to RTOS Part 6 - Mutex

On the video he says this hack. Well new FreeRTOS version can detect the hack and assert. Below is their explanation:

 /* A task can only have an inherited priority if it holds the mutex.
  * If the mutex is held by a task then it cannot be given from an
  * interrupt, and if a mutex is given by the holding task then it must
  * be the running state task. */

So binary semaphore used to solve the challenge

Terminal Output

Notes

Use demo_init function in demo.c to implement your demo application. Run in debug console to dump the trace
-exec dump binary value trace.bin *RecorderDataPtr