2009-10-28 Till Straumann <strauman@slac.stanford.edu>

* byteorder.h: added ld_le16, st_le16.
This commit is contained in:
Till Straumann
2010-07-06 20:11:21 +00:00
parent 955a34b566
commit df719841f8
2 changed files with 15 additions and 0 deletions

View File

@@ -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>
* cache.c, page.c: Use masks and shift operations instead of

View File

@@ -19,4 +19,15 @@ static inline uint32_t ld_le32(volatile uint32_t *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