forked from Imagelibrary/rtems
2009-10-28 Till Straumann <strauman@slac.stanford.edu>
* byteorder.h: added ld_le16, st_le16.
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
2009-10-28 Till Straumann <strauman@slac.stanford.edu>
|
||||||
|
|
||||||
|
* byteorder.h: added ld_le16, st_le16.
|
||||||
|
|
||||||
2010-05-21 Vinu Rajashekhar <vinutheraj@gmail.com>
|
2010-05-21 Vinu Rajashekhar <vinutheraj@gmail.com>
|
||||||
|
|
||||||
* cache.c, page.c: Use masks and shift operations instead of
|
* cache.c, page.c: Use masks and shift operations instead of
|
||||||
|
|||||||
@@ -19,4 +19,15 @@ static inline uint32_t ld_le32(volatile uint32_t *addr)
|
|||||||
return(*addr);
|
return(*addr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline void st_le16(volatile uint16_t *addr, uint16_t value)
|
||||||
|
{
|
||||||
|
*(addr)=value ;
|
||||||
|
}
|
||||||
|
|
||||||
|
static inline uint16_t ld_le16(volatile uint16_t *addr)
|
||||||
|
{
|
||||||
|
return(*addr);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user