Add portable NFC module
This commit is contained in:
33
README.md
Normal file
33
README.md
Normal file
@@ -0,0 +1,33 @@
|
||||
# Portable Modules
|
||||
|
||||
这个仓库用于存放从具体项目中抽取出来的可移植模块。
|
||||
|
||||
当前模块:
|
||||
|
||||
- `nfc/`: DP1312EA + NTAG213 UID 读取模块,已按业务层、服务层、芯片驱动层、平台适配层分离。
|
||||
|
||||
## 目录约定
|
||||
|
||||
```text
|
||||
portable_modules/
|
||||
README.md
|
||||
nfc/
|
||||
README.md
|
||||
include/
|
||||
src/
|
||||
platform/
|
||||
vendor/
|
||||
examples/
|
||||
module.mk
|
||||
```
|
||||
|
||||
每个模块都应满足:
|
||||
|
||||
- 业务代码只依赖模块公开头文件。
|
||||
- 模块核心代码不直接依赖具体项目业务。
|
||||
- SDK/RTOS/GPIO/I2C 等平台差异只放在 `platform/`。
|
||||
- 从原项目复制来的芯片厂商或第三方底层代码放在 `vendor/`。
|
||||
|
||||
## NFC 快速入口
|
||||
|
||||
NFC 模块文档见 [nfc/README.md](nfc/README.md)。
|
||||
Reference in New Issue
Block a user