mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-19 16:13:33 +08:00
[feat]添加ioremap兼容定义以适应smart运行
This commit is contained in:
parent
e726b93016
commit
5b82841748
26
bsp/cvitek/drivers/drv_ioremap.h
Normal file
26
bsp/cvitek/drivers/drv_ioremap.h
Normal file
@ -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 <rtconfig.h>
|
||||
|
||||
#ifdef RT_USING_SMART
|
||||
#include <ioremap.h>
|
||||
|
||||
#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
|
Loading…
x
Reference in New Issue
Block a user