-
Notifications
You must be signed in to change notification settings - Fork 976
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
[U(S)ART] request list #1418
Comments
I needed the 9 Bit Mode for a project and changed all the buffers to uint16_t and it worked. But I'm not sure if there are some side effects. |
Hi @4ndreas Main risk is the compatibility issue. I've added the request to the list. |
I have one more suggestion for the list: Support serial writes when interrupts are disabled (e.g. from an ISR). This would make debugging a lot easier, and prevent surprise when someone prints from an ISR and the entire board locks up as soon as the buffer is full. To support this usecase, the busy-wait loops in I implemented something similar on the Arduino AVR core, where IIRC it checks if interrupts are disabled, and if so, checks the TXE bit inside the busywait loop and calls the ISR if it is set. A similar approach can be taken here, though there are some complications:
The second point makes this more complicated than I have time for right now, but I at least wanted to share this request and my thoughts. |
This runs inside an ISR, and the STM32 Arduino core HardwareSerial does not support printing with interrupts disabled yet. See stm32duino/Arduino_Core_STM32#1418 (comment)
Thanks @matthijskooijman for sharing. |
@fpistm I want to make PR for the item: Hardware Flow control for serial communication. |
Hi @akasona
|
Hi @ht93 , it seems not available fo F4. |
Hi @fpistm, is there any other way to implement this? I am current working on a design with very limit size. Thanks a lot! |
I don't know. You could try to ask on the forum. |
Added flow control APIs |
a suggestion to support for swapping RX/TX pins |
Hi |
@mhmayyan It's probably that the BRR value would overflow 0xFFFF for your desired rate at given core frequency. p.s. I'd recommend opening a separate issue not to flood the request list |
This issue aims to list all U(S)ART requests:
Note
This is a community projects, Any contribution is welcome, so feel free submit a PR. 😉
The text was updated successfully, but these errors were encountered: