Skip to content

Latest commit

 

History

History
51 lines (28 loc) · 1.03 KB

File metadata and controls

51 lines (28 loc) · 1.03 KB

11_priority_inversion

../shell/rebuild_run_qemu.sh .

Challenge of Introduction to RTOS Part 11 - Priority Inversion

Note

When xTaskGetTickCount is used like in video, systick interrupt is disabled and xTickCount gets never updated. This happens at least for my setup, if you have solution to this feel free to open PR to me. As a workaround I used demo_hw_getSysOnTimeMs which is not depended on an interrupt. Anyways this does not effect concept of tutorial.

Terminal Output

(L) lock acquired. Wait time: 1

(L) lock released.


(L) sleepy.


(H) trying to acquire lock.


(H) lock acquired. Wait time: 0

(H) lock released.


(H) sleepy.


(M) worky work.


(H) trying to acquire lock.


(H) lock acquired. Wait time: 0

(H) lock released.


(H) sleepy.

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