Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.

ESP32: delegate interrupt handling into a separate task #178

Conversation

avillacis
Copy link

This pull request switches the interrupt request handling from a direct ISR into a separate task. This allows the handler more flexibility in how to handle the interrupt, without violating timing limits that may cause lockups or watchdog reboots. For platforms other than ESP32, the behavior of the code has been preserved.

Q A
Bug fix? yes
New feature? no
Doc update? no
BC breaks? no
Deprecations? no
Relative Issues #

This frees the handling logic from timing restrictions that could be
violated in user code handlers. The ESP32-specific code is wrapped in
#define ESP32 in order to preserve old behavior in other architectures.
The DW1000 dispatcher task has a priority at least one level higher than
the ordinary code (priority 1).
This commit allows the device to temporarily shutdown interrupt handling
(if any) so that external code using the library can safely switch over
to a different role for the Decawave without resetting.
@Anacron-sec
Copy link
Contributor

Can you please explain the differences between this and #164 ? Are they trying to achieve the same functionality?
Sorry if we ask but we didn't use much the ESP32

@Anacron-sec
Copy link
Contributor

@zrecore Are you available to try out these improvements (this and #177) ? Thank you

@zrecore
Copy link
Contributor

zrecore commented Aug 20, 2020 via email

@avillacis
Copy link
Author

Can you please explain the differences between this and #164 ? Are they trying to achieve the same functionality?
Sorry if we ask but we didn't use much the ESP32

It seems that #164 has the same purpose as my commit. However, my version does not change the library API, and since the task has a higher priority than the ordinary code, it should be less prone to handling delays.

@Anacron-sec
Copy link
Contributor

We are closing pull requests with merging conflicts as we are archiving the repo, feel free to create your own fork if you intend to support the project, we will be happy to add a link on this project.

@Anacron-sec Anacron-sec closed this Nov 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants