Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:23:40

0001 /*
0002  *  The license and distribution terms for this file may be
0003  *  found in the file LICENSE in this distribution or at
0004  *  http://www.rtems.org/license/LICENSE.
0005  */
0006 
0007 #ifndef _LIBCPU_BYTEORDER_H
0008 #define _LIBCPU_BYTEORDER_H
0009 
0010 static inline void st_le32(volatile uint32_t   *addr, uint32_t   value)
0011 {
0012   *(addr)=value ;
0013 }
0014 
0015 static inline uint32_t   ld_le32(volatile uint32_t   *addr)
0016 {
0017   return(*addr);
0018 }
0019 
0020 static inline void st_le16(volatile uint16_t   *addr, uint16_t   value)
0021 {
0022   *(addr)=value ;
0023 }
0024 
0025 static inline uint16_t   ld_le16(volatile uint16_t   *addr)
0026 {
0027   return(*addr);
0028 }
0029 
0030 
0031 #endif