forked from Imagelibrary/rtems
New.
This commit is contained in:
22
c/src/lib/libcpu/i386/byteorder.h
Normal file
22
c/src/lib/libcpu/i386/byteorder.h
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
/*
|
||||||
|
* The license and distribution terms for this file may be
|
||||||
|
* found in found in the file LICENSE in this distribution or at
|
||||||
|
* http://www.rtems.com/license/LICENSE.
|
||||||
|
*
|
||||||
|
* $Id$
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef _LIBCPU_BYTEORDER_H
|
||||||
|
#define _LIBCPU_BYTEORDER_H
|
||||||
|
|
||||||
|
static inline void st_le32(volatile uint32_t *addr, uint32_t value)
|
||||||
|
{
|
||||||
|
*(addr)=value ;
|
||||||
|
}
|
||||||
|
|
||||||
|
static inline uint32_t ld_le32(volatile uint32_t *addr)
|
||||||
|
{
|
||||||
|
return(*addr);
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
Reference in New Issue
Block a user