Skip to content
This repository was archived by the owner on Jan 8, 2025. It is now read-only.

Commit

Permalink
include: reg: Add half word read/write macros
Browse files Browse the repository at this point in the history
Change-Id: I07bf7c77042e4da9462b270eeefa9779bc8ea4c5
  • Loading branch information
Channagoud Kadabi committed Mar 18, 2013
1 parent 73d7f4a commit 4ba108f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/reg.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,7 @@

#define writeb(v, a) (*REG8(a) = (v))
#define readb(a) (*REG8(a))

#define writehw(v, a) (*REG16(a) = (v))
#define readhw(a) (*REG16(a))
#endif

0 comments on commit 4ba108f

Please sign in to comment.