-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
ETS_GPIO_INUM not defined anywhere #13
Comments
Indeed, these definitions were removed, but we forgot to remove their usage from esp_intr.h. Unlike the 8266, interrupt numbers on each CPU are not connected directly to interrupt sources. Instead, they are routed via an interrupt matrix, which allows connecting arbitrary interrupt source to an arbitrary interrupt input of any of the CPUs. Possible interrupt numbers (from 0 to 31) and their properties (interrupt level, and trigger mode: edge/level triggered) are defined in this table: Apart from the slots which are reserved, you can choose any interrupt number with the level and trigger mode you need, and attach it to the interrupt source. Interrupt sources are defined in the same file: Here's the function which allows you to attach interrupt sources to inputs, Once interrupt is attached, you can use In most cases you also need to unmask some of the interrupts in peripheral registers, e.g. Edit: we are planning to add a run-time or compile-time mechanism of allocating interrupt numbers, but details have not been finalized yet. |
* Native build befixes * Address review feedback; cargo fmt * Master patch now applies cleanly; fix the ULP handling * Document why we are passing targets to clang explicitly * Clippy again Co-authored-by: imarkov <imarkov@vmware.com>
Add getter for PSRAM address
ETS_GPIO_INUM was used in esp_intr.h and ets.sys.h but it does not be defined anywhere.
I tried to do GPIO interrupt and due to no gpio_pin_intr_state_set function available, so, I tried to write the register for this but can not do.
The text was updated successfully, but these errors were encountered: