Git Product home page Git Product logo

Comments (4)

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

OMG, a brand new and shiny BCM2711 ARM Peripherals 🤩

I wasn't aware this was released recently. Nor was I aware that there are significant differences between the Pi3/Pi4 GPIO to be honest, because on my Pi4 it just worked out-of-the box, so I never questioned this.

While I cannot dive deep into your findings right now, all of this sounds plausible. I guess it makes sense split bcm2xxx_gpio.rs into Pi3 and Pi4 versions!

from rust-raspberrypi-os-tutorials.

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

I'll test it on my side and then add it to the tutorials asap!

from rust-raspberrypi-os-tutorials.

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

@abdes

I am not sure though if I should enable pup/pdn for the TX or RX when using a serial to USB cable. Maybe you could enlighten me there.

I would argue that since the USB-serial is already connected when the Pi executes the GPIO init code, NoResistor should be okay, since both the TX and RX pins are actively driven already in both directions (by the Pi and the USB serial).

It might still make sense to configure pull-up resistors for the pins. They would ensure the pin always falls back to the default value 1/high_level of the UART protocol.
I am considering introducing that change. If you want, you can test on your side if it works when you configure pull-up for both.

Best,
Andre

from rust-raspberrypi-os-tutorials.

abdes avatar abdes commented on April 29, 2024

Thank you

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.