Skip to content

Commit

Permalink
!50 b_mod_fs 精简操作文件的接口
Browse files Browse the repository at this point in the history
Merge pull request !50 from bean/dev
  • Loading branch information
notrynohigh authored and gitee-org committed Jul 7, 2024
2 parents 218e58a + d2f55e4 commit e29c539
Show file tree
Hide file tree
Showing 5 changed files with 298 additions and 243 deletions.
45 changes: 21 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ BabyOS适用于MCU项目,她是一套管理功能模块和外设驱动的框
1. 编译器需要勾选C99
2. 默认情况,编译器需要支持自定义段(必须)以及弱函数(非必须)

若当前BabyOS代码未适配您正在使用的编译器,请提交Issue

Windows下需要安装python(2或3均可)用于配置代码

Linux下需要安装python、python-pip以及make 用于配置和编译代码
Expand All @@ -35,6 +33,26 @@ Linux下需要安装python、python-pip以及make 用于配置和编译代码

<img src="https://foruda.gitee.com/images/1706455699810637537/031b0a0f_1789704.gif" style="zoom: 67%;" />

**添加BabyOS代码**

| 路径 | 部分/全部 |
| -------------- | --------------------------- |
| bos/algorithm | 全部添加 |
| bos/core | 全部添加 |
| bos/drivers | **根据需要添加** |
| bos/hal | 全部添加 |
| bos/mcu | **根据需要添加** |
| bos/modules | 全部添加 |
| bos/thirdparty | **根据需要添加** |
| bos/utils | 全部添加 |
| bos/_config | *_config目录拷贝至用户目录* |

**添加Include路径**

`bos/`

`_config/` 如果配置文件拷贝到其他路径了,则添加相应路径即可。

# 4 BabyOS教程

由于代码在不断更新,所以无法避免视频内容与最新代码匹配,如有疑问,请在issues描述问题!
Expand Down Expand Up @@ -69,28 +87,6 @@ BabyOS如果能在项目中发挥大的作用就需要有足够的功能模块

[https://github.com/notrynohigh/BabyOS](https://github.com/notrynohigh/BabyOS)



# 友情项目

BabyOS包含了第三方开源代码,这部分代码都是MCU项目中比较实用的。

Shell功能模块基于开源项目nr_micro_shell,[https://gitee.com/nrush/nr_micro_shell](https://gitee.com/nrush/nr_micro_shell),感谢作者Nrush

Button 功能模块基于开源项目FlexibleButton,[https://github.com/murphyzhao/FlexibleButton](https://github.com/murphyzhao/FlexibleButton),感谢作者Murphy

GUI功能模块基于开源项目uGUI, [https://github.com/achimdoebler/UGUI](https://github.com/achimdoebler/UGUI), 感谢作者Achimdoebler

Trace功能模块基于开源项目 CmBacktrace,https://gitee.com/Armink/CmBacktrace/tree/master 感谢作者Armink

SPIFlash驱动基于开源项目SFUD,https://gitee.com/Armink/SFUD 感谢作者Armink

FS功能模块是基于FatFS和LittleFS,方便用户使用:

http://elm-chan.org/fsw/ff/archives.html FatFS

https://github.com/ARMmbed/littlefs LittleFS

---

**如果您觉得这套开源代码有意义,请给个Star表示支持,谢谢!**
Expand Down Expand Up @@ -151,3 +147,4 @@ FS功能模块是基于FatFS和LittleFS,方便用户使用:
| 2024.04 | 增加手势传感器和tinyusb第三方库 | |
| 2024.05 | 完善babyos协议,使用最新的代码更新OTA例子;增加LVGL第三方代码 | |
| 2024.06 | 增加b_mod_ssl 可以请求https接口,HAL层增加看门狗 | |
| 2024.07 | 重写b_mod_fs, 统一文件系统的操作接口 | |
2 changes: 1 addition & 1 deletion bos/core/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ config HW_VERSION

config FW_VERSION
int "Firmware version"
default 80500
default 80501

config FW_NAME
string "Firware Name"
Expand Down
Loading

0 comments on commit e29c539

Please sign in to comment.