mirror of
https://github.com/drasko/codezero.git
synced 2026-01-12 19:03:15 +01:00
13 lines
296 B
C
13 lines
296 B
C
#ifndef __ARM_IO_H__
|
|
#define __ARM_IO_H__
|
|
/*
|
|
* Arch-specific io functions/macros.
|
|
*
|
|
* Copyright (C) 2007 Bahadir Balban
|
|
*/
|
|
|
|
#define read(val, address) val = *((volatile unsigned int *) address)
|
|
#define write(val, address) *((volatile unsigned int *) address) = val
|
|
|
|
#endif /* __ARM_IO_H__ */
|