4.104.115
Rev | Line | |
---|
[5acb4d0] | 1 | /* |
---|
| 2 | * The license and distribution terms for this file may be |
---|
| 3 | * found in found in the file LICENSE in this distribution or at |
---|
| 4 | * http://www.rtems.com/license/LICENSE. |
---|
| 5 | * |
---|
| 6 | * $Id$ |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | #ifndef _LIBCPU_BYTEORDER_H |
---|
| 10 | #define _LIBCPU_BYTEORDER_H |
---|
| 11 | |
---|
| 12 | static inline void st_le32(volatile uint32_t *addr, uint32_t value) |
---|
| 13 | { |
---|
| 14 | *(addr)=value ; |
---|
| 15 | } |
---|
| 16 | |
---|
| 17 | static inline uint32_t ld_le32(volatile uint32_t *addr) |
---|
| 18 | { |
---|
| 19 | return(*addr); |
---|
| 20 | } |
---|
| 21 | |
---|
| 22 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.