Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Coping0606
Docs
提交
bb6897cb
D
Docs
项目概览
Coping0606
/
Docs
与 Fork 源项目一致
Fork自
OpenHarmony / Docs
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Docs
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
bb6897cb
编写于
1月 16, 2023
作者:
O
openharmony_ci
提交者:
Gitee
1月 16, 2023
浏览文件
操作
浏览文件
下载
差异文件
!13344 【轻量级 PR】:修改表格编号错误和描述错误
Merge pull request !13344 from Annie_wang/N/A
上级
7318c6c6
ebf82dcb
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
9 addition
and
9 deletion
+9
-9
zh-cn/device-dev/driver/driver-platform-gpio-des.md
zh-cn/device-dev/driver/driver-platform-gpio-des.md
+9
-9
未找到文件。
zh-cn/device-dev/driver/driver-platform-gpio-des.md
浏览文件 @
bb6897cb
...
...
@@ -146,17 +146,17 @@ if (ret != 0) {
int32_t
GpioGetDir
(
uint16_t
gpio
,
uint16_t
*
dir
);
```
**表
2
**
GpioGetDir参数和返回值描述
**表
3
**
GpioGetDir参数和返回值描述
|
**参数**
|
**参数描述**
|
| ---------- | ------------------ |
| gpio | GPIO管脚号 |
| dir |
待获取的方向值
|
| dir |
获取到的方向值指针
|
|
**返回值**
|
**返回值描述**
|
| 0 | 设置成功 |
| 负数 | 设置失败 |
假设需要
将GPIO管脚3的方向配置为输出
,其使用示例如下:
假设需要
获取GPIO管脚3的方向
,其使用示例如下:
```
c
int32_t
ret
;
...
...
@@ -177,7 +177,7 @@ if (ret != 0) {
int32_t
GpioRead
(
uint16_t
gpio
,
uint16_t
*
val
);
```
**表
3
**
GpioRead参数和返回值描述
**表
4
**
GpioRead参数和返回值描述
|
**参数**
|
**参数描述**
|
| ---------- | -------------------- |
...
...
@@ -208,7 +208,7 @@ if (ret != 0) {
int32_t
GpioWrite
(
uint16_t
gpio
,
uint16_t
val
);
```
**表
4
**
GpioWrite参数和返回值描述
**表
5
**
GpioWrite参数和返回值描述
|
**参数**
|
**参数描述**
|
| ---------- | ------------------ |
...
...
@@ -238,7 +238,7 @@ if (ret != 0) {
int32_t
GpioSetIrq
(
uint16_t
gpio
,
uint16_t
mode
,
GpioIrqFunc
func
,
void
*
arg
);
```
**表
5
**
GpioSetIrq参数和返回值描述
**表
6
**
GpioSetIrq参数和返回值描述
|
**参数**
|
**参数描述**
|
| ---------- | ------------------------ |
...
...
@@ -261,7 +261,7 @@ int32_t GpioSetIrq(uint16_t gpio, uint16_t mode, GpioIrqFunc func, void *arg);
int32_t
GpioUnsetIrq
(
uint16_t
gpio
,
void
*
arg
);
```
**表
6
**
GpioUnsetIrq参数和返回值描述
**表
7
**
GpioUnsetIrq参数和返回值描述
|
**参数**
|
**参数描述**
|
| ---------- | -------------- |
...
...
@@ -279,7 +279,7 @@ int32_t GpioUnsetIrq(uint16_t gpio, void *arg);
int32_t
GpioEnableIrq
(
uint16_t
gpio
);
```
**表
7
**
GpioEnableIrq参数和返回值描述
**表
8
**
GpioEnableIrq参数和返回值描述
|
**参数**
|
**参数描述**
|
| ---------- | -------------- |
...
...
@@ -298,7 +298,7 @@ int32_t GpioEnableIrq(uint16_t gpio);
```
c
int32_t
GpioDisableIrq
(
uint16_t
gpio
);
```
**表
8
**
GpioDisableIrq参数和返回值描述
**表
9
**
GpioDisableIrq参数和返回值描述
|
**参数**
|
**参数描述**
|
| ---------- | -------------- |
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录