diff --git a/bsp/cvitek/drivers/drv_ioremap.h b/bsp/cvitek/drivers/drv_ioremap.h new file mode 100644 index 0000000000..b616a7697e --- /dev/null +++ b/bsp/cvitek/drivers/drv_ioremap.h @@ -0,0 +1,26 @@ +/* + * Copyright (c) 2006-2024, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2024/07/24 heyuanjie87 first version + */ + +#ifndef __DRV_IOREMAP_H__ +#define __DRV_IOREMAP_H__ + +#include + +#ifdef RT_USING_SMART +#include + +#define DRV_IOREMAP(addr, size) rt_ioremap(addr, size) +#define DRV_IOUNMAP(addr) rt_iounmap(addr) +#else +#define DRV_IOREMAP(addr, size) (addr) +#define DRV_IOUNMAP(addr) +#endif + +#endif