You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
313 B
16 lines
313 B
20 years ago
|
/* $Id: reg_rdwr.h,v 1.6 2005/04/24 18:30:58 starvik Exp $
|
||
|
*
|
||
|
* Read/write register macros used by *_defs.h
|
||
|
*/
|
||
|
|
||
|
#ifndef reg_rdwr_h
|
||
|
#define reg_rdwr_h
|
||
|
|
||
|
|
||
|
#define REG_READ(type, addr) *((volatile type *) (addr))
|
||
|
|
||
|
#define REG_WRITE(type, addr, val) \
|
||
|
do { *((volatile type *) (addr)) = (val); } while(0)
|
||
|
|
||
|
#endif
|