diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-07-15 16:51:17 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-03-24 11:10:48 +0100 |
commit | d0de6fdfa8312147e7d991cf5326e3394b9abf3c (patch) | |
tree | 3159cd3197e57212eec736e4aa01bace5a5644e4 /cpukit/include/rtems/score | |
parent | newlib01: Adjust variable name (diff) | |
download | rtems-d0de6fdfa8312147e7d991cf5326e3394b9abf3c.tar.bz2 |
score: Add _IO_Relax()
This function may be used to burn a couple of processor cycles with
minimum impact on the system bus. It may be used in busy wait loops.
Since it is a global function, it is possible to wrap it in device
driver test code.
Diffstat (limited to 'cpukit/include/rtems/score')
-rw-r--r-- | cpukit/include/rtems/score/io.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cpukit/include/rtems/score/io.h b/cpukit/include/rtems/score/io.h index d7bf188be0..106418f185 100644 --- a/cpukit/include/rtems/score/io.h +++ b/cpukit/include/rtems/score/io.h @@ -133,6 +133,14 @@ int _IO_Base64url( int wordlen ); +/** + * @brief Issues a couple of no-operation instructions. + * + * This function may be used to burn a couple of processor cycles with minimum + * impact on the system bus. It may be used in busy wait loops. + */ +void _IO_Relax( void ); + /** @} */ #ifdef __cplusplus |