Skip to content

Commit

Permalink
zigbee: Move to the interrupt driven UART API
Browse files Browse the repository at this point in the history
Switch from asynchronous to interrupt driven UART API
to be able to use USB CDC ACM class as the transport layer.

Signed-off-by: Tomasz Chyrowicz <[email protected]>
  • Loading branch information
tomchy committed Sep 15, 2020
1 parent b0417bd commit 35296ed
Show file tree
Hide file tree
Showing 7 changed files with 178 additions and 385 deletions.
15 changes: 8 additions & 7 deletions subsys/zigbee/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ menu "ZBOSS osif configuration"
menuconfig ZIGBEE_HAVE_SERIAL
bool "UART serial abstract for ZBOSS OSIF"
select SERIAL
select UART_ASYNC_API
select UART_INTERRUPT_DRIVEN
select RING_BUFFER

if ZIGBEE_HAVE_SERIAL

Expand All @@ -194,17 +195,17 @@ config ZIGBEE_UART_TX_TIMEOUT
int "Timeout value for starting asynchronous transmission, in milliseconds"
default 10

config ZIGBEE_UART_PARTIAL_TX_TIMEOUT
int "Timeout value between the last transmitted byte and the TX ready event if only a part of TX buffer was transmitted, in milliseconds"
default 10

config ZIGBEE_UART_RX_TIMEOUT
int "Timeout value for starting asynchronous reception, in milliseconds"
default 10

config ZIGBEE_UART_PARTIAL_RX_TIMEOUT
int "Timeout value between the last received byte and the RX event if only a part of RX buffer was received, in milliseconds"
default 1

config ZIGBEE_UART_RX_CHUNK_LEN
int "Size of the single reception buffer"
default 2
int "Timeout value between the last received byte and the RX event if only a part of RX buffer was received, in milliseconds"
default 10

config ZIGBEE_UART_RX_BUF_LEN
int "Size of the asynchronous receive buffer"
Expand Down
Loading

0 comments on commit 35296ed

Please sign in to comment.