aboutsummaryrefslogtreecommitdiff
path: root/stm32f091/consts.h
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-10-29 18:01:56 +0200
committerlonkaars <loek@pipeframe.xyz>2022-10-29 18:01:56 +0200
commit9e9ea9d07ed2a176d6f6e83b5b100da22d8fca50 (patch)
treea683bde4664dad75c3b5a1efbd4223a4ab3b40dd /stm32f091/consts.h
parentead710db271795380207141f0add7278ba12ada0 (diff)
parentaae57dc32a843351fb2e17721afcd841bedec0a6 (diff)
Merge branch 'protocol' into dev
Diffstat (limited to 'stm32f091/consts.h')
-rw-r--r--stm32f091/consts.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/stm32f091/consts.h b/stm32f091/consts.h
index 349ff21..3d2ef5a 100644
--- a/stm32f091/consts.h
+++ b/stm32f091/consts.h
@@ -3,6 +3,10 @@
#include "wifi.h"
#define WS_SERVER_PORT "80"
+#define WS_SERVER_MAX_CHANNELS 4
+
+#define WS_DMA_RX_BUFFER_SIZE 100
+#define WS_DMA_TX_BUFFER_SIZE 1024
#define WS_PINOUT_I2C_SDA_PIN GPIO_PIN_9
#define WS_PINOUT_I2C_SDA_PORT GPIOB
@@ -19,3 +23,5 @@
#define WS_PINOUT_USART2_TX_PIN GPIO_PIN_2
#define WS_PINOUT_USART2_TX_PORT GPIOA
+// print esp communication over usb serial (green for tx, red for rx)
+#define WS_DBG_PRINT_ESP_OVER_USART2