File indexing completed on 2025-05-11 08:24:25
0001
0002
0003
0004
0005
0006
0007 #ifndef _LIBCPU_BYTEORDER_H
0008 #define _LIBCPU_BYTEORDER_H
0009
0010 #include <stdint.h>
0011
0012 static inline void st_le32(volatile uint32_t *addr, uint32_t value)
0013 {
0014 *(addr)=value ;
0015 }
0016
0017 static inline uint32_t ld_le32(volatile uint32_t *addr)
0018 {
0019 return(*addr);
0020 }
0021
0022 static inline void st_le16(volatile uint16_t *addr, uint16_t value)
0023 {
0024 *(addr)=value ;
0025 }
0026
0027 static inline uint16_t ld_le16(volatile uint16_t *addr)
0028 {
0029 return(*addr);
0030 }
0031
0032
0033 #endif