Giter Site home page Giter Site logo

mgdg / ioctrl Goto Github PK

View Code? Open in Web Editor NEW
1.0 4.0 1.0 13 KB

IO控制,用于LED或有源蜂鸣器等等的控制,可方便实现IO的周期与占空比控制,控制参数 (低电平时间,高电平时间,总持续时

C 100.00%

ioctrl's Introduction

IOCtrl

IO控制,用于LED或有源蜂鸣器等等的控制,可方便实现IO的周期与占空比控制,控制参数 (低电平时间,高电平时间,总持续时间)

优点

采用链表的方式动态创建IO控制资源,执行效率高占用内存小

使用说明

IOCtrl_CallBackProc函数必须被周期循环调用,其入口参数为每次调用的间隔时间,单位为毫秒。

如,在中断时间为10ms的定时器中断服务程序中:   void 定时器中断函数(void)  {   IOCtrl_CallBackProc(10); }

或者在操作系统中创建任务周期调用。

IO控制资源的申请、删除、启动和停止见IOCtrl_demo.c中的示例,示例程序中以控制一个LED为例。

ioctrl's People

Contributors

mgdg avatar

Stargazers

little niu ma avatar

Watchers

James Cloos avatar  avatar skyformat99 avatar  avatar

Forkers

skyformat99

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.