Declarations of types and functions for integrating an RTOS with the GCC Newlib.
More...
Declarations of types and functions for integrating an RTOS with the GCC Newlib.
◆ __retarget_lock_init()
void __retarget_lock_init |
( |
_LOCK_T * |
lock | ) |
|
Allocate lock related resources.
- Parameters
-
[in] | lock | pointer to user defined lock object |
◆ __retarget_lock_init_recursive()
void __retarget_lock_init_recursive |
( |
_LOCK_T * |
lock | ) |
|
Allocate recursive lock related resources.
- Parameters
-
[in] | lock | pointer to user defined lock object |
◆ __retarget_lock_close()
void __retarget_lock_close |
( |
_LOCK_T |
lock | ) |
|
Free lock related resources.
- Parameters
-
[in] | lock | user defined lock object |
◆ __retarget_lock_close_recursive()
void __retarget_lock_close_recursive |
( |
_LOCK_T |
lock | ) |
|
Free recursive lock related resources.
- Parameters
-
[in] | lock | user defined lock object |
◆ __retarget_lock_acquire()
void __retarget_lock_acquire |
( |
_LOCK_T |
lock | ) |
|
Acquire lock immediately after the lock object is available.
- Parameters
-
[in] | lock | user defined lock object |
◆ __retarget_lock_acquire_recursive()
void __retarget_lock_acquire_recursive |
( |
_LOCK_T |
lock | ) |
|
Acquire recursive lock immediately after the lock object is available.
- Parameters
-
[in] | lock | user defined lock object |
◆ __retarget_lock_try_acquire()
int __retarget_lock_try_acquire |
( |
_LOCK_T |
lock | ) |
|
Acquire lock if the lock object is available.
- Parameters
-
[in] | lock | user defined lock object |
- Returns
- zero for success and non-zero to indicate that the lock cannot be acquired
◆ __retarget_lock_try_acquire_recursive()
int __retarget_lock_try_acquire_recursive |
( |
_LOCK_T |
lock | ) |
|
Acquire recursive lock if the lock object is available.
- Parameters
-
[in] | lock | user defined lock object |
- Returns
- zero for success and non-zero to indicate that the lock cannot be acquired
◆ __retarget_lock_release()
void __retarget_lock_release |
( |
_LOCK_T |
lock | ) |
|
Relinquish the lock ownership.
- Parameters
-
[in] | lock | user defined lock object |
◆ __retarget_lock_release_recursive()
void __retarget_lock_release_recursive |
( |
_LOCK_T |
lock | ) |
|
Relinquish the recursive lock ownership.
- Parameters
-
[in] | lock | user defined lock object |