Re: RP2040 multiple GPIO interrupts

2025-03-18 Thread Nathan Hartman
On Mon, Mar 17, 2025 at 5:18 PM Matteo Golin wrote: > Hello everyone, > > I have an application wherein I am using a W5500-EVB Pico as the MCU for a > network controlled system. I need to connect > several switch inputs into this MCU. The switches are normally held high > via the RP2040's interna

Re: RP2040 multiple GPIO interrupts

2025-03-18 Thread Kevin Witteveen
Hey Matteo, It appears the RP2040 can support falling and rising interrupts at once according to the RP2040 datasheet section 2.19.5.2 "Enable a GPIO interrupt", which provides an example of how to do this. Ofcourse this example is not NuttX, but can help for implementation. https://datasheets.ras

Re: [EXT] Re: [PROPOSAL] New nxstyle tool roadmap

2025-03-18 Thread Michał Łyszczek
Nathan Hartman: > But, if there's going to be a discussion about brace styles, I would vote > for K&R's One True Brace Style. :-) I agree that K&R is the way to go. But. Switching to Allman is just removing 2 spaces on lines where bracket is. Change is trivial and will not mess with the history.

Re: [EXT] Re: [PROPOSAL] New nxstyle tool roadmap

2025-03-18 Thread Nathan Hartman
Hi all, I think we shouldn't make drastic changes to the source style because that will just create a lot of busywork and a lot of source changes that will introduce needless headaches when comparing different revisions etc. Instead, I think we should make only the minimal adjustments to the sour

Re: RP2040 multiple GPIO interrupts

2025-03-18 Thread Matteo Golin
Thank you everyone for the suggestions. I don't have enough GPIO pins to dedicate two per switch unfortunately, nor do I have a suitable hardware method for handling debouncing. I suppose this is taken care of in the button driver framework via software, but not for the bare GPIO framework. I don'

Re: [EXT] Re: [PROPOSAL] New nxstyle tool roadmap

2025-03-18 Thread Alan C. Assis
Hi Michal, That makes sense, actually I think Altman is similar (but more elegant) to GNU style: https://en.wikipedia.org/wiki/Indentation_style BR, Alan On Mon, Mar 17, 2025 at 7:32 PM Michał Łyszczek wrote: > Peter van der Perk: > > The main issue I was facing with clang-format was the ind

Re: [EXT] Re: [PROPOSAL] New nxstyle tool roadmap

2025-03-18 Thread Tomek CEDRO
To be honest this GNU style is a bit awkward as I tend to use K&R.. but I must admit it is really easy to read and understand when reading new code.. but NuttX seems to use GNU derivative anyways so no "generic tools" can be used here and this is the main problem? :-) https://nuttx.apache.org/docs

Re: [EXT] Re: [PROPOSAL] New nxstyle tool roadmap

2025-03-18 Thread Luchian Mihai
Well, this is what I fear, working for something that may change anyway. I cannot force this change, If we come to an agreement I'll continue the work I've started, else it is just a waste of time. Can we make a choice regarding code style? Cheers, Mihai On Tue, 18 Mar 2025 at 00:32, Michał Łysz

Re: GSoC 2025

2025-03-18 Thread Tomek CEDRO
Ladies and Gentlemen, it is time to register and announce our NuttX Mentors and Contributors for GSoC 2025, please respond if anyone is interested? :-) Contributors application deadline is 2025-04-02. Here is the full timeline: 2024-02-22: Potential GSoC contributors discuss application ideas wit

Re: GSoC 2025

2025-03-18 Thread Alan C. Assis
Let's announce it on LinkedIn too! It is important to list the proposals in the Apache Site, there are some from previous years that could be used: NanoX Graphic support, etc BR, Alan On Tue, Mar 18, 2025 at 11:26 AM Tomek CEDRO wrote: > Ladies and Gentlemen, it is time to register and announ

Re: RP2040 multiple GPIO interrupts

2025-03-18 Thread Marco Casaroli
Hello, You can do this in software: check the line status if it is low, then you set the interrupt to rising edge and if it is high you set to falling edge, any time the interrupt happens, you carefully change to falling or rising depending on the status. On Mon, Mar 17, 2025 at 22:18 Matteo Goli