00001 00038 #ifndef CPU_IO_H_INCLUDED 00039 #define CPU_IO_H_INCLUDED 00040 00052 #define AVR_MMIO_OFFSET 0x20 00053 00054 #ifndef __ASSEMBLY__ 00055 00056 #include <compiler.h> 00057 #include <stdint.h> 00058 00067 static inline uint8_t mmio_read8(const void *p) 00068 { 00069 return *(const volatile uint8_t *) p; 00070 } 00071 00072 static inline void mmio_write8(void *p, uint8_t val) 00073 { 00074 *(volatile uint8_t *) p = val; 00075 } 00076 00077 #endif /* __ASSEMBLY__ */ 00078 00080 00081 #endif /* CPU_IO_H_INCLUDED */
1.6.3