-
Notifications
You must be signed in to change notification settings - Fork 196
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
Add support for exceptions #27
Comments
Yeah, we definitively want to do this, but there are some complications with the implementation and changes around the user interface, IIRC. I think exceptions would have a different syntax in the tasks! macro; exceptions in tasks! won't work by default because you have to disable the "exceptions" feature of the cortex-m-rt crate; the mechanism to override the other exceptions, the ones not used as tasks, would change (it won't use the |
Exceptions that have configurable priority:
These are candidates for being tasks. Their priorities are set through the System Handler Priority Registers. The number in parenthesis in the position of the exception priority in those registers. |
#31 would fix this. |
Done in #34. Only the system handlers (PENDSV, SYS_TICK and SVCALL) can be used as tasks. |
define handlers as weak aliases of DEFAULT_HANDLER
I don't know how much value would be to support all possible exceptions (as tasks), but at least
sys_tick
should be supported, I think.The text was updated successfully, but these errors were encountered: