Classes | Macros | Functions
oro_noasm/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
 

Macros

#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__ int oro_atomic_add_return (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__ int oro_atomic_dec_return (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__ int oro_atomic_inc_return (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)
 
static __inline__ int oro_atomic_sub_return (oro_atomic_t *a_int, int n)
 

Macro Definition 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 95 of file oro_noasm/oro_arch.h.

static __inline__ int oro_atomic_add_return ( oro_atomic_t a_int,
int  n 
)
static

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

static __inline__ void oro_atomic_dec ( oro_atomic_t a_int)
static

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

static __inline__ int oro_atomic_dec_and_test ( oro_atomic_t a_int)
static

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

static __inline__ int oro_atomic_dec_return ( oro_atomic_t a_int)
static

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

static __inline__ void oro_atomic_inc ( oro_atomic_t a_int)
static

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

static __inline__ int oro_atomic_inc_and_test ( oro_atomic_t a_int)
static

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

static __inline__ int oro_atomic_inc_return ( oro_atomic_t a_int)
static

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

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

Definition at line 83 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 102 of file oro_noasm/oro_arch.h.

static __inline__ int oro_atomic_sub_return ( 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 Tue Jun 25 2019 19:33:39