Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Drivers Adapter
提交
8389304e
D
Drivers Adapter
项目概览
OpenHarmony
/
Drivers Adapter
9 个月 前同步成功
通知
2
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Drivers Adapter
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
8389304e
编写于
4月 01, 2022
作者:
O
openharmony_ci
提交者:
Gitee
4月 01, 2022
浏览文件
操作
浏览文件
下载
差异文件
!533 fix:modify the API to judge whether a node exists
Merge pull request !533 from Zhang/master
上级
08489bc2
04708bfb
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
4 addition
and
8 deletion
+4
-8
platform/i2c/i2c_bes.c
platform/i2c/i2c_bes.c
+1
-2
platform/pwm/pwm_bes.c
platform/pwm/pwm_bes.c
+1
-2
platform/spi/spi_bes.c
platform/spi/spi_bes.c
+1
-2
platform/uart/uart_bes.c
platform/uart/uart_bes.c
+1
-2
未找到文件。
platform/i2c/i2c_bes.c
浏览文件 @
8389304e
...
...
@@ -150,7 +150,6 @@ int32_t InitI2cDevice(struct I2cDevice *device)
break; \
} \
} while (0)
#define PLATFORM_CONFIG HCS_NODE(HCS_ROOT, platform)
#define PLATFORM_I2C_CONFIG HCS_NODE(HCS_NODE(HCS_ROOT, platform), i2c_config)
static
uint32_t
GetI2cDeviceResource
(
struct
I2cDevice
*
device
,
const
char
*
deviceMatchAttr
)
...
...
@@ -163,7 +162,7 @@ static uint32_t GetI2cDeviceResource(struct I2cDevice *device,
return
HDF_ERR_INVALID_PARAM
;
}
resource
=
&
device
->
resource
;
#if HCS_NODE_
HAS_PROP(PLATFORM_CONFIG, i2c_config
)
#if HCS_NODE_
EXISTS(PLATFORM_I2C_CONFIG
)
HCS_FOREACH_CHILD_VARGS
(
PLATFORM_I2C_CONFIG
,
I2C_FIND_CONFIG
,
deviceMatchAttr
,
resource
);
#endif
if
(
result
!=
HDF_SUCCESS
)
{
...
...
platform/pwm/pwm_bes.c
浏览文件 @
8389304e
...
...
@@ -99,7 +99,6 @@ static int InitPwmDevice(struct PwmDev *host)
break; \
} \
} while (0)
#define PLATFORM_CONFIG HCS_NODE(HCS_ROOT, platform)
#define PLATFORM_PWM_CONFIG HCS_NODE(HCS_NODE(HCS_ROOT, platform), pwm_config)
static
uint32_t
GetPwmDeviceResource
(
struct
PwmDevice
*
device
,
const
char
*
deviceMatchAttr
)
{
...
...
@@ -111,7 +110,7 @@ static uint32_t GetPwmDeviceResource(struct PwmDevice *device, const char *devic
return
HDF_ERR_INVALID_PARAM
;
}
resource
=
&
device
->
resource
;
#if HCS_NODE_
HAS_PROP(PLATFORM_CONFIG, pwm_config
)
#if HCS_NODE_
EXISTS(PLATFORM_PWM_CONFIG
)
HCS_FOREACH_CHILD_VARGS
(
PLATFORM_PWM_CONFIG
,
PWM_FIND_CONFIG
,
deviceMatchAttr
,
resource
);
#endif
if
(
result
!=
HDF_SUCCESS
)
{
...
...
platform/spi/spi_bes.c
浏览文件 @
8389304e
...
...
@@ -438,7 +438,6 @@ static int32_t InitSpiDevice(struct SpiDevice *spiDevice)
} \
} while (0)
#define PLATFORM_CONFIG HCS_NODE(HCS_ROOT, platform)
#define PLATFORM_SPI_CONFIG HCS_NODE(HCS_NODE(HCS_ROOT, platform), spi_config)
static
int32_t
GetSpiDeviceResource
(
struct
SpiDevice
*
spiDevice
,
const
char
*
deviceMatchAttr
)
{
...
...
@@ -450,7 +449,7 @@ static int32_t GetSpiDeviceResource(struct SpiDevice *spiDevice, const char *dev
return
HDF_ERR_INVALID_PARAM
;
}
resource
=
&
spiDevice
->
resource
;
#if HCS_NODE_
HAS_PROP(PLATFORM_CONFIG, spi_config
)
#if HCS_NODE_
EXISTS(PLATFORM_SPI_CONFIG
)
HCS_FOREACH_CHILD_VARGS
(
PLATFORM_SPI_CONFIG
,
SPI_FIND_CONFIG
,
deviceMatchAttr
,
resource
);
#endif
if
(
result
!=
HDF_SUCCESS
)
{
...
...
platform/uart/uart_bes.c
浏览文件 @
8389304e
...
...
@@ -474,7 +474,6 @@ static int InitUartDevice(struct UartHost *host)
} \
} while (0)
#define PLATFORM_CONFIG HCS_NODE(HCS_ROOT, platform)
#define PLATFORM_UART_CONFIG HCS_NODE(HCS_NODE(HCS_ROOT, platform), uart_config)
static
uint32_t
GetUartDeviceResource
(
struct
UartDevice
*
device
,
const
char
*
deviceMatchAttr
)
{
...
...
@@ -485,7 +484,7 @@ static uint32_t GetUartDeviceResource(struct UartDevice *device, const char *dev
return
HDF_ERR_INVALID_PARAM
;
}
resource
=
&
device
->
resource
;
#if HCS_NODE_
HAS_PROP(PLATFORM_CONFIG, uart_config
)
#if HCS_NODE_
EXISTS(PLATFORM_UART_CONFIG
)
HCS_FOREACH_CHILD_VARGS
(
PLATFORM_UART_CONFIG
,
UART_FIND_CONFIG
,
deviceMatchAttr
,
resource
);
#endif
if
(
result
!=
HDF_SUCCESS
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录