Skip to content

Commit

Permalink
allow to change MAX_TX_QUEUE
Browse files Browse the repository at this point in the history
  • Loading branch information
traxanos committed May 19, 2024
1 parent 97e15c7 commit f94bd0b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/knx/tpuart_data_link_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,6 @@
#define ACR0_FLAG_TRIGEN 0x08
#define ACR0_FLAG_V20VCLIMIT 0x04

#define MAX_TX_QUEUE 20

enum
{
TX_IDLE,
Expand Down
5 changes: 5 additions & 0 deletions src/knx/tpuart_data_link_layer.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,15 @@
#include <stdint.h>

#define MAX_KNX_TELEGRAM_SIZE 263

#ifndef MAX_RX_QUEUE_BYTES
#define MAX_RX_QUEUE_BYTES MAX_KNX_TELEGRAM_SIZE + 50
#endif

#ifndef MAX_TX_QUEUE
#define MAX_TX_QUEUE 50
#endif

// __time_critical_func fallback
#ifndef ARDUINO_ARCH_RP2040
#define __time_critical_func(X) X
Expand Down

0 comments on commit f94bd0b

Please sign in to comment.