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

108 lines
2.5 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.

# I2C 示例工程
> I2C示例工程展示了I2C模块接口使用方法。
>
> 本工程中提供以下模块接口使用的示例:
>
> 1. I2C读写从设备的使用
---
## 适用平台
> 本工程适用以下芯片类型:
>
> 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
## 工程说明
> 本工程对I2C模块读写从设备(AT24C16N)的使用进行介绍。
### 操作说明:
> 1. 将SCL/SDA(数字板上的JP2/JP1)通过跳线跟PA4/PA5(数字板上的J25)相连接
> 2. 编译工程,烧录镜像,启动即可
> 3. 系统启动后,可以看到测试的打印信息
> XRadio SDK的编译、烧写等操作方式的说明可在以下地址获取
> https://github.com/XradioTech/xradiotech-wiki
### 代码结构
```
.
├── gcc
│ ├── defconfig # 本工程的配置规则,用于覆盖默认配置
│ └── Makefile # 本工程的编译选项,可覆盖默认配置
├── image
│ └── xr806
│ └── image.cfg # 本工程的镜像分区配置
├── main.c # 本工程的入口进行IIC读写从设备的示例说明
├── 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()入口: 执行IIC读写的操作示例。
>
> 更详细的开发指南请参考《XRADIO_I2C_Developer_Guide-CN.doc》
---
## 常见问题
> N/A
## 参考文档
> 文档资源
1. 《XRADIO_I2C_Developer_Guide-CN.doc》