Git Product home page Git Product logo

Comments (6)

andre-richter avatar andre-richter commented on April 27, 2024

Hmm interesting. This somehow escaped me until now, and it would be an awesome improvement.

I‘ll check it out.
did you give it a try already?

Thanks!

from rust-raspberrypi-os-tutorials.

Tartasprint avatar Tartasprint commented on April 27, 2024

I did try it, and the UART output is as expected (in the 06_drivers_gpio_uart tutorial).
However it doesn't seems to me to be a good test case, since we check if the UART was flushed just after the first time we started it. But I don't know how to make a "good" test of this function.

from rust-raspberrypi-os-tutorials.

andre-richter avatar andre-richter commented on April 27, 2024

Tutorial 12 can be abused as a test. If the UART is not flushed first during its init(), some characters of the output in the main file are swallowed by the exception dump (which makes use of the panic-console that re-inits the UART).

Works only on the real device though, not QEMU.
Anyways, I’ll test and implement it once I find some time to do so.

from rust-raspberrypi-os-tutorials.

Tartasprint avatar Tartasprint commented on April 27, 2024

I can to that of you want, I've got plenty of time. I'd be really happy to contribute. I've never done this before, but I read the GitHub tutorial, so I think that I should do a pull request, of course if that's what you want and how it works. I can also make your test on tutorial 12, unless you want to check it by your self.

Hoping to help.

from rust-raspberrypi-os-tutorials.

andre-richter avatar andre-richter commented on April 27, 2024

Thanks for the offer!
Regarding pull request, I am in the middle of a refactoring of some tutorial code, so I would want to defer any changes until the refactor is done.

Just checking if it works as the documentation suggests would be enough for the time being, and we can do the PR later 👍

from rust-raspberrypi-os-tutorials.

Tartasprint avatar Tartasprint commented on April 27, 2024

Ok 👍

from rust-raspberrypi-os-tutorials.

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.