Classes | Defines | Functions
oro_arch.h File Reference
#include "../../rtt-config.h"
#include "../fosi.h"
Include dependency graph for oro_noasm/oro_arch.h:

Go to the source code of this file.

Classes

struct  oro_atomic_t

Defines

#define __inline__
#define ORO_ATOMIC_CLEANUP(a_int)   rtos_mutex_destroy(&((a_int)->m))
#define oro_atomic_read(a_int)   ((a_int)->cnter)
#define oro_atomic_set(a_int, n)   (((a_int)->cnter) = (n))
#define ORO_ATOMIC_SETUP(a_int, n)   rtos_mutex_init(&((a_int)->m)); (a_int)->cnter = (n)

Functions

static __inline__ void oro_atomic_add (oro_atomic_t *a_int, int n)
static __inline__ int oro_atomic_add_and_test (oro_atomic_t *a_int, int n)
static __inline__ void oro_atomic_dec (oro_atomic_t *a_int)
static __inline__ int oro_atomic_dec_and_test (oro_atomic_t *a_int)
static __inline__ void oro_atomic_inc (oro_atomic_t *a_int)
static __inline__ int oro_atomic_inc_and_test (oro_atomic_t *a_int)
static __inline__ void oro_atomic_sub (oro_atomic_t *a_int, int n)
static __inline__ int oro_atomic_sub_and_test (oro_atomic_t *a_int, int n)

Define Documentation

#define __inline__

Definition at line 52 of file oro_noasm/oro_arch.h.

#define ORO_ATOMIC_CLEANUP (   a_int)    rtos_mutex_destroy(&((a_int)->m))

Definition at line 65 of file oro_noasm/oro_arch.h.

#define oro_atomic_read (   a_int)    ((a_int)->cnter)

Definition at line 67 of file oro_noasm/oro_arch.h.

#define oro_atomic_set (   a_int,
 
)    (((a_int)->cnter) = (n))

Definition at line 69 of file oro_noasm/oro_arch.h.

#define ORO_ATOMIC_SETUP (   a_int,
 
)    rtos_mutex_init(&((a_int)->m)); (a_int)->cnter = (n)

Definition at line 64 of file oro_noasm/oro_arch.h.


Function Documentation

static __inline__ void oro_atomic_add ( oro_atomic_t a_int,
int  n 
) [static]

Definition at line 71 of file oro_noasm/oro_arch.h.

static __inline__ int oro_atomic_add_and_test ( oro_atomic_t a_int,
int  n 
) [static]

Definition at line 81 of file oro_noasm/oro_arch.h.

static __inline__ void oro_atomic_dec ( oro_atomic_t a_int) [static]

Definition at line 100 of file oro_noasm/oro_arch.h.

static __inline__ int oro_atomic_dec_and_test ( oro_atomic_t a_int) [static]

Definition at line 105 of file oro_noasm/oro_arch.h.

static __inline__ void oro_atomic_inc ( oro_atomic_t a_int) [static]

Definition at line 95 of file oro_noasm/oro_arch.h.

static __inline__ int oro_atomic_inc_and_test ( oro_atomic_t a_int) [static]

Definition at line 112 of file oro_noasm/oro_arch.h.

static __inline__ void oro_atomic_sub ( oro_atomic_t a_int,
int  n 
) [static]

Definition at line 76 of file oro_noasm/oro_arch.h.

static __inline__ int oro_atomic_sub_and_test ( oro_atomic_t a_int,
int  n 
) [static]

Definition at line 88 of file oro_noasm/oro_arch.h.



rtt
Author(s): RTT Developers
autogenerated on Sat Jun 8 2019 18:46:35