source: rtems/c/src/lib/libcpu/i386/byteorder.h @ 359e537

4.104.11
Last change on this file since 359e537 was 5acb4d0, checked in by Ralf Corsepius <ralf.corsepius@…>, on Nov 4, 2005 at 5:50:34 PM

New.

  • Property mode set to 100644
File size: 428 bytes
Line 
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
12static inline void st_le32(volatile uint32_t   *addr, uint32_t   value)
13{
14  *(addr)=value ;
15}
16
17static 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.