mirror of
https://github.com/drasko/codezero.git
synced 2026-03-01 10:13:14 +01:00
Initial commit
This commit is contained in:
12
include/l4/arch/arm/io.h
Normal file
12
include/l4/arch/arm/io.h
Normal file
@@ -0,0 +1,12 @@
|
||||
#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__ */
|
||||
Reference in New Issue
Block a user