Giter VIP home page Giter VIP logo

osal's Introduction

移植说明
1、完成OSAL\hal\timer.c文件,为系统提供时钟;
2、修改OSAL\include\type.h文件中的全局中断开关宏定义(可空),添加芯片对应的头文件,根据需要修改数据类型宏定义,根据芯片字长修改halDataAlign_t类型;
3、根据需要修改OSAL\osal\osal_memory.h文件中的内存池大小定义,文件中osalMemHdr_t类型需要确保长度为16bit或以上,非8位单片机需要设定内存池的字节对齐;
4、添加任务函数中的任务优先级数值大的任务则优先级高;
5、根据需要修改OSAL\include\osal_memory.h文件中的OSALMEM_METRICS定义,有效则开启内存统计功能;

动态内存管理拓展说明
1、注释掉osal_memory.c中的内存大小编译限制;
2、替换osal_memory.c中的uint16为osalMemHdr_t;
3、替换osal_memory.h中的uint16为halDataAlign_t;
4、修改osal_memory.c中的宏定义OSALMEM_IN_USE为0x80000000;

osal's People

Contributors

mcuwty avatar

Watchers

James Cloos avatar AlexShi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.