OpenCores
URL https://opencores.org/ocsvn/c0or1k/c0or1k/trunk

Subversion Repositories c0or1k

[/] [c0or1k/] [trunk/] [conts/] [libdev/] [include/] [libdev/] [io.h] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 drasko
/*
2
 * IO functions/macros.
3
 *
4
 * Copyright (C) 2007 Bahadir Balban
5
 */
6
#ifndef __LIBDEV_IO_H__
7
#define __LIBDEV_IO_H__
8
 
9
#define read(address)           *((volatile unsigned int *)(address))
10
#define write(val, address)     *((volatile unsigned int *)(address)) = val
11
 
12
#endif /* __LIBDEV_IO_H__ */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.