Coder Social home page Coder Social logo

Comments (3)

kisvegabor avatar kisvegabor commented on September 9, 2024

Hi,

It should be called in every 5 ms if the period is 5 ms regardless to the delay after ptask_handler() because it uses the systick from hal to get the elapsed time.

The delay is applied to not call systick functions at a very high rate because depending on your implementation it can disable interrupts when getting the current tick count.

Are you sure the call period is 25 ms in your case?
Dose something happen is you write usleep(1000); ?

from lv_port_pc_eclipse.

KcMeterCEC avatar KcMeterCEC commented on September 9, 2024

Oh!
It is my fault.I didn't really test the call period.
So, if i use usleep(5000) after ptask_handler(), inorder to keep in time, the task period couldn't set less than 5ms.
Thanks a lot !

from lv_port_pc_eclipse.

kisvegabor avatar kisvegabor commented on September 9, 2024

Yes, as you say!

Your very welcome!

from lv_port_pc_eclipse.

Related Issues (20)

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.