IT数码 购物 网址 头条 软件 日历 阅读 图书馆
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
图片批量下载器
↓批量下载图片,美女图库↓
图片自动播放器
↓图片自动播放器↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁
 
   -> 嵌入式 -> 我的mcu通用库(paMcuLib -> 正文阅读

[嵌入式]我的mcu通用库(paMcuLib

paMcuLib

pamculib

  • Intro(介绍

    这是一个我用来封装我用过的单片机,并且统一模块接口的库

    为了实现更好的移植性和模块性,我还开发两个vscode插件

    This is a mcu lib like arduino to unify the module’s and mcu’s interfaces.

    In order to implement better portability and modularity, I also made 2 vscode extensions,

    ActivePeter/MacroDefineHelper-vscode: Iterate through the macro helper configuration file in the directory and generate a configuration tree. Then generate a series of macros in head files. 遍历目录中的宏助手配置文件并生成配置树,再根据配置树生成一系列宏 (github.com)

    ActivePeter/SubmoduleHelper-vscode: I’m going to write a vscode extension available to choose needed submodules and auto load them, just like some package manager. (github.com)

  • Supported mcus(当前支持的平台

    • esp32 stm32

      • tested

        stm32f103c8t6

        image-20210708112213864

        esp32 s2

        image-20210708112244383

    • demos

  • Adapted devices of mcu(当前适配的常用硬件设施

    • base(delay, log),gpio,spi,iic
  • Adapted modules(当前库适配的模块

    • paLibSubs/paMods/display 显示

      u8g2 (ssd1306_iic

      ? image-20210709020725466

      ili9341(spi

    • paLibSubs/paMods/input 输入

      xpt2046(一般配合ili9341用

  • Design(项目结构设计

    • Before you use this project, you need to understand the structure of this project.

      在开始使用这个项目之前,你应该理解这个项目的结构设计

    • Use my vscode extension submodule helper to manage and load submodules

      使用我的vscode插件 submodule helper进行子模块结构的组织 和 子模块的加载

    • submodule helper will load all the submodules according to the folloing json file

      submodule helper 会根据下面这样的一个json模板文件加载所有子模块

      • Get latest json templete from here

        在这里可以获取到最新的模板

        image-20210625214927475

      • It’s free to change the “root_folder”, which means that you can load the modules of paMcuLib to any position in you project. Just don’t change the structure of the templete.

        这个文件里的root_folder是任意设置的,意味着你可以把子我的paMcuLib的所有模块放在任意路径下,只要不破坏他们之间的相对位置关系就行。

      • image-20210625215041381

        This is the core part of paMcuLib, which contains by the paCoreInc paCoreSrc

        这是paMcuLib主体部分,分为 paCoreInc paCoreSrc 两部分部分

        • paCoreInc

          Used to offer the defination of interfaces to paCoreSrc to impletement , and export them to the user layer.

          用于组织和规范驱动层抽象的接口规范,还有向用户层提供相应外设的include的头文件

        • paCoreSrc

          Implementation of the interfaces in paCoreInc, different MCUs have different implementations.

          为具体的驱动实现,根据不同的平台,需要做不同的适配,目前只适配了esp32 stm32,的一些功能,也可以参考已经适配的项目自行适配,或申请加入开发组一起适配

          ? **Look out:**the repostory url of paCoreSrc should be changed according to your platform

          ? **注意:**这个仓库对应的链接是需要根据你使用的平台进行修改的

  • Start Using

    大致的使用流程

    you can also direcly start project with demos

    你也可以用demo来进行项目的开始

    demos

  嵌入式 最新文章
基于高精度单片机开发红外测温仪方案
89C51单片机与DAC0832
基于51单片机宠物自动投料喂食器控制系统仿
《痞子衡嵌入式半月刊》 第 68 期
多思计组实验实验七 简单模型机实验
CSC7720
启明智显分享| ESP32学习笔记参考--PWM(脉冲
STM32初探
STM32 总结
【STM32】CubeMX例程四---定时器中断(附工
上一篇文章      下一篇文章      查看所有文章
加:2021-07-10 14:41:08  更:2021-07-10 14:42:26 
 
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁

360图书馆 购物 三丰科技 阅读网 日历 万年历 2024年5日历 -2024/5/3 14:15:50-

图片自动播放器
↓图片自动播放器↓
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
图片批量下载器
↓批量下载图片,美女图库↓
  网站联系: qq:121756557 email:121756557@qq.com  IT数码