m3dev

cortex m3 debug tools -- superceded by mdebug
git clone http://frotz.net/git/m3dev.git
Log | Files | Refs | README | LICENSE

io.h (401B)


      1 /* io.h */
      2 
      3 #ifndef _IO_H_
      4 #define _IO_H_
      5 
      6 #define readb(a) (*((volatile unsigned char *) (a)))
      7 #define writeb(v, a) (*((volatile unsigned char *) (a)) = (v))
      8 
      9 #define readw(a) (*((volatile unsigned short *) (a)))
     10 #define writew(v, a) (*((volatile unsigned short *) (a)) = (v))
     11 
     12 #define readl(a) (*((volatile unsigned int *) (a)))
     13 #define writel(v, a) (*((volatile unsigned int *) (a)) = (v))
     14 
     15 #endif