|
1 | 1 | # rw007
|
2 | 2 |
|
3 |
| -## 1. 简介 |
| 3 | +[中文页](README_ZH.md) | English |
4 | 4 |
|
5 |
| -**RW007**是由上海睿赛德电子科技有限公司开发基于Cortex-M4 WIFI SOC的SPI/UART 高速wifi模块。该仓库为**rw007**的SPI驱动 |
| 5 | +## 1. Introduction |
6 | 6 |
|
7 |
| -**RW007**硬件设计简单,SPI模式下用户只需要预留1组SPI信号,一个中断输入,一个IO输出即可,包含电源和地总共8个引脚。 |
| 7 | +**RW007** is a SPI/UART high-speed wifi module based on Cortex-M4 WIFI SOC developed by Shanghai Ruiside Electronic Technology Co., Ltd. The warehouse is the SPI driver of **rw007** |
8 | 8 |
|
9 |
| -### 1.1. 文件结构 |
| 9 | +**RW007** The hardware design is simple. In SPI mode, users only need to reserve 1 set of SPI signals, one interrupt input, and one IO output, including a total of 8 pins for power and ground. |
10 | 10 |
|
11 |
| -| 文件夹 | 说明 | |
| 11 | +### 1.1. File structure |
| 12 | + |
| 13 | +| Folder | Description | |
12 | 14 | | ---- | ---- |
|
13 |
| -| src | 核心驱动源码,主要实现通信逻辑 | |
14 |
| -| inc | 头文件目录 | |
15 |
| -| example | 平台移植示例 | |
| 15 | +| src | Core driver source code, which mainly implements communication logic | |
| 16 | +| inc | Header file directory | |
| 17 | +| example | Platform porting example | |
16 | 18 |
|
17 |
| -### 1.2 许可证 |
| 19 | +### 1.2 License |
18 | 20 |
|
19 |
| -at_device package 遵循 Apache 2.0 许可,详见 `LICENSE` 文件。 |
| 21 | +The at_device package complies with the Apache 2.0 license, see the `LICENSE` file for details. |
20 | 22 |
|
21 |
| -### 1.3 依赖 |
| 23 | +### 1.3 Dependency |
22 | 24 |
|
23 | 25 | - RT-Thread 3.0+
|
24 |
| -- RT-Thread LWIP 组件 |
25 |
| -- RT-Thread SPI 驱动框架 |
26 |
| -- RT-Thread PIN 驱动框架(示例平台代码依赖) |
| 26 | +- RT-Thread LWIP component |
| 27 | +- RT-Thread SPI driver framework |
| 28 | +- RT-Thread PIN driver framework (sample platform code dependency) |
27 | 29 |
|
28 |
| -### 1.4 配置宏说明 |
| 30 | +### 1.4 Configuration Macro Description |
29 | 31 |
|
30 |
| -自动配置时相关配置宏将在env中被配置 手动配置参考如下 |
| 32 | +The relevant configuration macros will be configured in env during automatic configuration. The manual configuration is as follows |
31 | 33 |
|
32 |
| -类型说明 |
| 34 | +Type description |
33 | 35 |
|
34 |
| -- bool: 定义生效 未定义 不生效 |
35 |
| -- string: 字符串 |
36 |
| -- int: 数值 |
| 36 | +- bool: definition is valid, undefined, not valid |
| 37 | +- string: string |
| 38 | +- int: number |
37 | 39 |
|
38 |
| -|宏|类型|功能| |
| 40 | +|Macro|Type|Function| |
39 | 41 | |--|--|--|
|
40 |
| -|PKG_USING_RW007|bool|开启rw007驱动,使用该软件包则需要定义该宏| |
41 |
| -|RW007_USING_STM32_DRIVERS|bool|使能STM32平台移植示例| |
42 |
| -|RW007_USING_IMXRT_DRIVERS|bool|使能IMXRT平台移植示例| |
43 |
| -|RW007_SPI_BUS_NAME|string|example中使用的SPI总线设备名称| |
44 |
| -|RW007_CS_PIN|int|example中使用的SPI 片选引脚在pin驱动中的序号| |
45 |
| -|RW007_BOOT0_PIN|int|example中使用的BOOT0引脚在pin驱动中的序号(与SPI的CLK是同一引脚复用)| |
46 |
| -|RW007_BOOT1_PIN|int|example中使用的BOOT1引脚在pin驱动中的序号(与SPI的CS是同一引脚复用)| |
47 |
| -|RW007_INT_BUSY_PIN|int|example中使用的INT/BUSY引脚在pin驱动中的序号| |
48 |
| -|RW007_RST_PIN|int|example中使用的RST引脚在pin驱动中的序号| |
| 42 | +|PKG_USING_RW007|bool|Enable rw007 driver, use this software package, you need to define this macro| |
| 43 | +|RW007_USING_STM32_DRIVERS|bool|Enable STM32 platform migration example| |
| 44 | +|RW007_USING_IMXRT_DRIVERS|bool|Enable IMXRT platform migration example| |
| 45 | +|RW007_SPI_BUS_NAME|string|The SPI bus device name used in example| |
| 46 | +|RW007_CS_PIN|int|The serial number of the SPI chip select pin used in the example in the pin driver| |
| 47 | +|RW007_BOOT0_PIN|int|The serial number of the BOOT0 pin used in the example in the pin driver (the same pin is multiplexed with the CLK of SPI)| |
| 48 | +|RW007_BOOT1_PIN|int|The serial number of the BOOT1 pin used in the example in the pin driver (the same pin is multiplexed with the CS of SPI)| |
| 49 | +|RW007_INT_BUSY_PIN|int|The serial number of the INT/BUSY pin used in the example in the pin driver| |
| 50 | +|RW007_RST_PIN|int|The serial number of the RST pin used in the example in the pin driver| |
49 | 51 |
|
50 |
| -## 2. 注意事项 |
| 52 | +## 2. Matters needing attention |
51 | 53 |
|
52 |
| -由于存在引脚复用情况,所以bsp的SPI的驱动需要引脚配置在Config时进行。 |
| 54 | +Because of the pin multiplexing situation, the driver of the bsp SPI needs to be configured during Config. |
53 | 55 |
|
54 |
| -## 4. 联系方式 |
| 56 | +## 4. Contact |
55 | 57 |
|
56 |
| -- 维护:RT-Thread 开发团队 |
57 |
| -- 主页:https://github.com/RT-Thread-packages/rw007 |
| 58 | +- Maintenance: RT-Thread development team |
| 59 | +- Homepage: https://github.com/RT-Thread-packages/rw007 |
0 commit comments