hello my friends
I would like to work in asynchronous mode and synchronous serial port 1. I have a card STM32 (olimexino).
I need to change to 9600 8n1; 9600 7 Even 1, Odd 7 2,.
As I can do
thanks greetings
hello my friends
I would like to work in asynchronous mode and synchronous serial port 1. I have a card STM32 (olimexino).
I need to change to 9600 8n1; 9600 7 Even 1, Odd 7 2,.
As I can do
thanks greetings
can you rephrase that? I dont understand the question.
you want to change the serial port settings of serial port 1, and you want to use the serial callbacks to callback when there is a byte in queue?
I apologize for my English with google translator.
I need to change the serial port 1.
1.- 9600 8n1 By 9600 10n1.
2.- 9600 8n1 By 9600 10n2.
3.- Etc...
The idea of the setting is to change the serial port standard.
Not take into account the issue of synchronous or asynchronous.
this is unfortunately not so trivial at the moment.
to get this done, you would need to configure the appropriate registers by hand, then replace our USART IRQ handlers with your own. this is due to the fact that our handlers store bytes in a libmaple ring_buffer, which is just a simple circular byte buffer. the extra USARTx_DR bits thus won't fit, so you'll end up losing information. see usart_irq() in usart.c for more information.
Thank you very much, dear mbolivar
Greetings from Chile.
a hug
You must log in to post.