You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2018/03/09 09:44:55 UTC

[GitHub] andrzej-kaczmarek opened a new pull request #894: console: Add asynchronous RX handling for UART

andrzej-kaczmarek opened a new pull request #894: console: Add asynchronous RX handling for UART
URL: https://github.com/apache/mynewt-core/pull/894
 
 
   There is possible deadlock when doing rx and tx at the same time, i.e. if tx buffer is full and rxd character triggers some output (e.g. echo) it is not possible to put new character to tx buffer and also tx buffer cannot be drained since we're in interrupt handler already.
   
   To mitigate this there was workaround added which detected this condition and just dropped txd characters. This patch replaces this workaround with more generic solution: there is intermediate RX ringbuffer where data form UART are received and are not handled in interrupt context but in task context instead. Buffer can be disabled to retain original behaviour if necessary.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services