Skip to content
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

Blue Pill Interrupt on GPIO input state change #1339

Closed
olablt opened this issue Aug 31, 2020 · 2 comments
Closed

Blue Pill Interrupt on GPIO input state change #1339

olablt opened this issue Aug 31, 2020 · 2 comments
Labels
docs Documentation needed enhancement New feature or request stm32

Comments

@olablt
Copy link

olablt commented Aug 31, 2020

I have Blue Pill STM32f103C8T6

How to create Interrupts on 3 GPIO inputs, to fire after each state change?
Is it possible?

Here is an example Arduino code using interrupts. I am not sure how to do this with TinyGo
https://github.com/chrisalbertson/quadratureBluePill/blob/master/quadratureBluePill.h

@deadprogram deadprogram added the docs Documentation needed label Sep 2, 2020
@ofauchon
Copy link
Contributor

Hi.

I can't find implementation of (Pin)SetInterrupt for STM32 in the Tinygo sources.

So I guess GPIO interrupts are not yet available for STM32.

However, you can find some example of low-level code to configure GPIO interrupts :

Hope that helps

Olivier

@kenbell
Copy link
Member

kenbell commented Jul 9, 2021

Closing since GPIO interrupt support is merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation needed enhancement New feature or request stm32
Projects
None yet
Development

No branches or pull requests

4 participants