mirror of
https://github.com/drasko/codezero.git
synced 2026-02-11 17:33:15 +01:00
Changes since April
Clean up of build directories. Simplifications to capability model.
This commit is contained in:
12
conts/userlibs/libdev/include/dev/io.h
Normal file
12
conts/userlibs/libdev/include/dev/io.h
Normal file
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
* IO functions/macros.
|
||||
*
|
||||
* Copyright (C) 2007 Bahadir Balban
|
||||
*/
|
||||
#ifndef __LIBDEV_IO_H__
|
||||
#define __LIBDEV_IO_H__
|
||||
|
||||
#define read(address) *((volatile unsigned int *)(address))
|
||||
#define write(val, address) *((volatile unsigned int *)(address)) = val
|
||||
|
||||
#endif /* __LIBDEV_IO_H__ */
|
||||
Reference in New Issue
Block a user