CMSIS-Compiler Support  
Standard C Library File, I/O and OS Retargeting
 
Loading...
Searching...
No Matches
GCC Newlib

Declarations of types and functions for integrating an RTOS with the GCC Newlib. More...

Functions

void __retarget_lock_init (_LOCK_T *lock)
 Allocate lock related resources.
 
void __retarget_lock_init_recursive (_LOCK_T *lock)
 Allocate recursive lock related resources.
 
void __retarget_lock_close (_LOCK_T lock)
 Free lock related resources.
 
void __retarget_lock_close_recursive (_LOCK_T lock)
 Free recursive lock related resources.
 
void __retarget_lock_acquire (_LOCK_T lock)
 Acquire lock immediately after the lock object is available.
 
void __retarget_lock_acquire_recursive (_LOCK_T lock)
 Acquire recursive lock immediately after the lock object is available.
 
int __retarget_lock_try_acquire (_LOCK_T lock)
 Acquire lock if the lock object is available.
 
int __retarget_lock_try_acquire_recursive (_LOCK_T lock)
 Acquire recursive lock if the lock object is available.
 
void __retarget_lock_release (_LOCK_T lock)
 Relinquish the lock ownership.
 
void __retarget_lock_release_recursive (_LOCK_T lock)
 Relinquish the recursive lock ownership.
 

Description

Declarations of types and functions for integrating an RTOS with the GCC Newlib.

Function Documentation

◆ __retarget_lock_init()

void __retarget_lock_init ( _LOCK_T *  lock)

Allocate lock related resources.

Parameters
[in]lockpointer to user defined lock object

◆ __retarget_lock_init_recursive()

void __retarget_lock_init_recursive ( _LOCK_T *  lock)

Allocate recursive lock related resources.

Parameters
[in]lockpointer to user defined lock object

◆ __retarget_lock_close()

void __retarget_lock_close ( _LOCK_T  lock)

Free lock related resources.

Parameters
[in]lockuser defined lock object

◆ __retarget_lock_close_recursive()

void __retarget_lock_close_recursive ( _LOCK_T  lock)

Free recursive lock related resources.

Parameters
[in]lockuser defined lock object

◆ __retarget_lock_acquire()

void __retarget_lock_acquire ( _LOCK_T  lock)

Acquire lock immediately after the lock object is available.

Parameters
[in]lockuser 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]lockuser 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]lockuser 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]lockuser 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]lockuser defined lock object

◆ __retarget_lock_release_recursive()

void __retarget_lock_release_recursive ( _LOCK_T  lock)

Relinquish the recursive lock ownership.

Parameters
[in]lockuser defined lock object