Jamie Fox | 6d4ee16 | 2023-11-27 17:27:37 +0000 | [diff] [blame] | 1 | /* |
| 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 | } |