You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
645 B
25 lines
645 B
/*
|
|
* Copyright (c) 2006-2021, RT-Thread Development Team
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*
|
|
* Change Logs:
|
|
* Date Author Notes
|
|
* 2011-01-13 weety first version
|
|
*/
|
|
|
|
#ifndef __ASM_ARCH_IO_H
|
|
#define __ASM_ARCH_IO_H
|
|
|
|
#define IO_SPACE_LIMIT 0xFFFFFFFF
|
|
|
|
#define readb(a) (*(volatile unsigned char *)(a))
|
|
#define readw(a) (*(volatile unsigned short *)(a))
|
|
#define readl(a) (*(volatile unsigned int *)(a))
|
|
|
|
#define writeb(v,a) (*(volatile unsigned char *)(a) = (v))
|
|
#define writew(v,a) (*(volatile unsigned short *)(a) = (v))
|
|
#define writel(v,a) (*(volatile unsigned int *)(a) = (v))
|
|
|
|
#endif
|
|
|
|
|