-
Notifications
You must be signed in to change notification settings - Fork 67
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
USART interrupt names #290
Comments
First of all, But there are ways to make the names nicer, though these would hide the fact, that one interrupt flag corresponds to multiple interrupt sources: Partially, the naming problem is already tackled by the The mapping / implementations for these traits are mainly done with macros, like here: Lines 1382 to 1385 in c99fd56
and here: stm32f3xx-hal/src/timer/interrupts.rs Line 20 in c99fd56
But it does need some time to implement, because of naming conventions and inconsistencies between device sub-families and other issues. |
(I apologize if I am asking things that should be obvious. I'm new to many aspects of Rust and embedded programming.) I'm curious to understand what can reasonably be expected from the hardware abstraction in the hals and if there is a way hals can provide a common API for this. When the interrupt is shared by When you say
does that mean the My specific problem (rtic-rs/rtic#540) might be solved within |
The USART interrupts in
stm23f3xx_hal
have unusual names. For example,USART1_EXTI25
is used in place ofUSART1
used in most other hals. I am trying to construct examples that build with many different hals and this is causing trouble inrtic
examples, see rtic-rs/rtic#540. I expect there is a good reason for the choice of name but I am wondering if it is possible to give also an alternate name that corresponds with the convention used by other hals?The text was updated successfully, but these errors were encountered: