Giter VIP home page Giter VIP logo

Comments (4)

rudib avatar rudib commented on June 15, 2024

Can you elaborate on the Duration::ms() issue? Is this present in the 0.1.0 release or the latest master as well?

I have just updated the master branch to be up to date with the latest changes to Rust. However, at the moment, I don't have an actual hardware test environment. I would also like to look into updating the project for FreeRTOS 9.0. These two issues would be blockers for a 0.2.0 release from me.

from freertos.rs.

lexxvir avatar lexxvir commented on June 15, 2024

I think this issue presents only in 0.1.0 version:
https://github.com/hashmismatch/freertos.rs/blob/0.1.0/src/units.rs#L26

freertos_rs_get_portTICK_PERIOD_MS() expands macro portTICK_PERIOD_MS that expands to ( ( TickType_t ) 1000 / configTICK_RATE_HZ )

Let configTICK_RATE_HZ = 600, then freertos_rs_get_portTICK_PERIOD_MS() returns 1.
Let ms == 1000, then Duration::ms() returns 1000, but I believe it should returns 600.

I use FreeRTOS v8.2.3.

Regarding changes for 0.2.0:
Unfortunately I tied to FreeRTOS v8.2.3 (by chip vendor) and to nightly-2017-06-15 (due to core_io last release). So I need to "backport" you changes to these versions.

from freertos.rs.

rudib avatar rudib commented on June 15, 2024

That same problem is present in the latest version. I've logged an issue (#10) for this.

Note that such high switching frequencies really aren't typical for embedded projects, even 1000Hz is a bit of an anomaly, but the shim API should be flexible enough for this not to be a problem (even with frequencies above 1000Hz). In the meantime, you might want to try to use a tick rate of 500Hz.

from freertos.rs.

lexxvir avatar lexxvir commented on June 15, 2024

Ok, thank you for explanation.

I'm just start digging into embedded programming, that configTICK_RATE_HZ was set by the vendor in their demo application.

from freertos.rs.

Related Issues (17)

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.