stm32wl5: fix unbuffered mode and other possible bugs

This patch fixes unbuffered mode so it actually works.

Also, patch contains fixes for possible bugs that could result in
deadlock or system hang in certain situations.

Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
This commit is contained in:
Michał Łyszczek
2022-08-03 14:57:50 +02:00
committed by Xiang Xiao
parent 3e43128f07
commit 4e967c67b4
5 changed files with 101 additions and 33 deletions
+4
View File
@@ -114,8 +114,10 @@ struct ipcc_ops_s
*
**************************************************************************/
#ifdef CONFIG_IPCC_BUFFERED
CODE ssize_t (*buffer_data)(FAR struct ipcc_lower_s *ipcc,
FAR struct circbuf_s *rxbuf);
#endif
/**************************************************************************
* Name: write_notify
@@ -133,7 +135,9 @@ struct ipcc_ops_s
*
**************************************************************************/
#ifdef CONFIG_IPCC_BUFFERED
CODE ssize_t (*write_notify)(FAR struct ipcc_lower_s *ipcc);
#endif
/**************************************************************************
* Name: cleanup