New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cpu: mips_pic32_common: Implement GPIO IRQ #13820
Conversation
I tested on the I also tried on the I digress, I attached the lines to the RF4/5 and tried to get some terminal output... Still nothing so I tried just the I also noticed that the LEDs on the board say It seems like you have the |
I think you simply do not have the right board. Given your comments, it seems that you have a PIC32MX clicker while
Both boards do not share the same CPU so I am not surprised that you see nothing in the terminal. I assume other changes in the code are needed.
I do not think I tried this test before but I was able to turn on LEDs using SAUL when the clicker was programmed with
I use a pickit 2 with pic32prog, it is slow but it works. Unfortunately, it seems that the pinout of the connector on the left side of the board does not match the standard Microchip ISCP on the PIC32MX clicker. |
Signed-off-by: Francois Berder <18538310+francois-berder@users.noreply.github.com>
Signed-off-by: Francois Berder <18538310+francois-berder@users.noreply.github.com>
Signed-off-by: Francois Berder <18538310+francois-berder@users.noreply.github.com>
Signed-off-by: Francois Berder <18538310+francois-berder@users.noreply.github.com>
Signed-off-by: Francois Berder <18538310+francois-berder@users.noreply.github.com>
05aad58
to
937a30e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me - maybe @MrKevinWeiss can give it another test?
Doh! That explains it 😄
Will do, just need to get to the hardware, should be by the end of the day. |
Retested on the wifire and it works. As I don't have the clicker this is the best we can get! |
I think that's good enough :) |
Contribution description
This PR implements
periph_gpio_irq
for PIC32 devices. It also updates the SAUL configuration on the pic32-clicker and pic32-wifire.Note that the implementation differs slightly between PIC32MX and PIC32MZ. While implementing this feature, it appeared that the PIC32MX is only able to trigger interrupts on any edge. This means that it will probably be less reliable than on the PIC32MZ.
Testing procedure
Build and flash
test/buttons
on a pic32-clicker or pic32-wifire. On a pic32-wifire, pushing a button pulls the line to 3V3, while on pic32-clicker, pushing a button pulls down the line.Issues/PRs references
None