mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
608afc4777
- Included a collection of cpu-dependent headers in core/include/arch - Extracted all interfaces that need to be implemented for a cpu - Created a mapping between those interfaces and the old ones - added flag for disabling arch interface - added missing state to lpm_arch interface - added arch interface for reboot - fixed newline issues that were pointed out - documentation fixes to cpu-core interface
37 lines
854 B
C
37 lines
854 B
C
/*
|
|
* Copyright (C) 2014 Freie Universität Berlin
|
|
*
|
|
* This file is subject to the terms and conditions of the GNU Lesser General
|
|
* Public License. See the file LICENSE in the top level directory for more
|
|
* details.
|
|
*/
|
|
|
|
/**
|
|
* @addtogroup core_util
|
|
* @{
|
|
*
|
|
* @file atomic.h
|
|
* @brief Atomic getter and setter functions
|
|
*
|
|
* @author Freie Universität Berlin, Computer Systems & Telematics
|
|
* @author Kaspar Schleiser <kaspar@schleiser.de>
|
|
*/
|
|
|
|
#ifndef _ATOMIC_H
|
|
#define _ATOMIC_H
|
|
|
|
#include "arch/atomic_arch.h"
|
|
|
|
/**
|
|
* @brief Sets a new and returns the old value of a variable atomically
|
|
*
|
|
* @param[in] val The variable to be set
|
|
* @param[in] set The value to be written
|
|
*
|
|
* @return The old value of *val*
|
|
*/
|
|
unsigned int atomic_set_return(unsigned int *val, unsigned int set);
|
|
|
|
#endif /* _ATOMIC_H */
|
|
/** @} */
|