sdk-hwV1.3/lichee/xr806/appos/project/example/gpio/readme.md

108 lines
2.6 KiB
Markdown
Executable File
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# GPIO 示例工程
> GPIO示例工程展示了GPIO模块接口使用方法。
>
> 本工程中提供以下模块接口使用的示例:
> 1. GPIO的输入模式使用
> 2. GPIO的输出模式使用
> 3. GPIO的中断模式使用
---
## 适用平台
> 本工程适用以下芯片类型:
>
> 1. XR806系列芯片
> 本工程适用以下评估板类型:
> 1. 底板XR806_EVB
> 2. 模组XR806_MD01
> 本工程在基于"XR806_MD01"的“XR806_EVB”板上测试通过。
> 若需要在其他适用芯片和评估板上运行本工程请根据快速指南《XRadio_Quick_Start_Guide-CN》的提示进行相关配置修改。
> XRadio Wireless MCU芯片和评估板的更多信息可在以下地址获取
> https://docs.xradiotech.com
## 工程配置
> defconfig
>
> - N/A
>
> Makefile
>
> - N/A
>
> board_config.h
>
> - N/A
>
> board_config.c
>
> - N/A
>
> prj_config.h
>
> - N/A
## 模块依赖
> N/A
## 工程说明
> 本工程对GPIO模块输入模式、输出模式、中断模式的使用进行介绍。
### 操作说明:
> 1. PA11外接一个上拉按键电路
> 2. 编译工程,烧录镜像,启动即可
> 3. 系统启动后进行PA9的电平获取、PA10输出电平的操作按下PA11对应的按键即能触发GPIO中断
> XRadio SDK的编译、烧写等操作方式的说明可在以下地址获取
> https://github.com/XradioTech/xradiotech-wiki
### 代码结构
```
.
├── gcc
│ ├── defconfig # 本工程的配置规则,用于覆盖默认配置
│ └── Makefile # 本工程的编译选项,可覆盖默认配置
├── image
│ └── xr806
│ └── image.cfg # 本工程的镜像分区配置
├── main.c # 本工程的入口进行GPIO三种工作模式的示例说明
├── prj_config.h # 本工程的配置规则
└── readme.md # 本工程的说明文档
#本程用到XRadio SDK的其他配置文件
.
└── project
   └── common
      └── board
         └── xr806_dig_ver #在project/Kconfig默认指定使用xr806_dig_ver的板级配置
            ├── board_config.h #本工程的板级配置
            └── board_config.c #本工程的板级pin mux的配置
```
### 代码流程
> 1. main()入口: 根据条件执行对应的GPIO操作示例。
>
> 更详细的开发指南请参考《XRADIO_GPIO_Developer_Guide-CN.doc》
---
## 常见问题
> N/A
## 参考文档
> 文档资源
1. 《XRADIO_GPIO_Developer_Guide-CN.doc》