esp-rs / esp32-hal

A hardware abstraction layer for the esp32 written in Rust.
Apache License 2.0
192 stars 28 forks source link

Linking error when enabling GPIO_INTR #64

Closed schphil closed 2 years ago

schphil commented 2 years ago

Hi there, attempting to enable the GPIO_INTR ( esp32_hal::interrupt::enable(Interrupt::GPIO_INTR); ) results in the following linking error. Thanks in advance.

Screenshot 2021-09-22 at 11 19 12
MabezDev commented 2 years ago

Are you trying to use esp32-hal in a std application, like https://github.com/ivmarkov/rust-esp32-std-hello? Whilst I'd like this to work in the future, this is currently not a supported configuration.

I would say use the idf-hal implementation but this does not have support for Interrupts just yet.

schphil commented 2 years ago

Thanks for the quick response. That is exactly what I am trying to do. Yes, I noticed that too which is why I tried the esp32-hal crate. I'll leave the interrupts for now.

Should I close this one?