blob: 440cd1456fad12a678770de7fc5ac48677c425bf [file] [log] [blame]
Jamie Fox6d4ee162023-11-27 17:27:37 +00001/*
2 * Copyright (c) 2023, Arm Limited. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 *
6 */
7
8#include "cmsis_compiler.h"
9#include "rtx_os.h"
10
11/* This is an example OS configuration implementation for CMSIS-RTX */
12
13/* OS Idle Thread implemented to put the CPU into low-power state until an event
14 * occurs. The regular SysTick will still wake the CPU.
15 */
16__NO_RETURN void osRtxIdleThread(void *argument)
17{
18 (void)argument;
19
20 for (;;) {
21 __WFE();
22 }
23}