mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-06 11:51:55 +00:00
Disabling SMP mode for certain tests was a one-release thing, done to avoid having to triage every test independently (MANY are not SMP-safe), and with the knowledge that it was probably hiding bugs in the kernel. Turn it on pervasively. Tests are treated with a combination of flagging specific cases as "1cpu" where we have short-running tests that can be independently run in an otherwise SMP environment, and via setting CONFIG_MP_NUM_CPUS=1 where that's not possible (which still runs the full SMP kernel config, but with only one CPU available). Signed-off-by: Andy Ross <andrew.j.ross@intel.com> |
||
---|---|---|
.. | ||
src | ||
CMakeLists.txt | ||
prj.conf | ||
README.rst | ||
sample.yaml |
.. _cmsis_rtos_v1-sync_sample: Synchronization using CMSI RTOS V1 APIs ####################################### Overview ******** The sample project illustrates usage of timers and message queues using CMSIS RTOS V1 APIs. The main thread creates a preemptive thread which writes message to message queue and on timer expiry, message is read by main thread. Building and Running Project **************************** This project outputs to the console. It can be built and executed on QEMU as follows: .. zephyr-app-commands:: :zephyr-app: samples/philosophers :host-os: unix :board: qemu_x86 :goals: run :compact: Sample Output ============= .. code-block:: console Wrote to message queue: 5 Read from message queue: 5 Wrote to message queue: 6 Read from message queue: 6 Wrote to message queue: 7 Read from message queue: 7 Wrote to message queue: 8 Read from message queue: 8 Wrote to message queue: 9 Read from message queue: 9 Wrote to message queue: 10 Read from message queue: 10 Wrote to message queue: 11 Read from message queue: 11 Wrote to message queue: 12 Read from message queue: 12 Wrote to message queue: 13 Read from message queue: 13 Wrote to message queue: 14 Read from message queue: 14 Wrote to message queue: 15 Read from message queue: 15 Sample execution successful Exit QEMU by pressing :kbd:`CTRL+A` :kbd:`x`.