aboutsummaryrefslogtreecommitdiff
path: root/stm32f091/esp8266.h
diff options
context:
space:
mode:
Diffstat (limited to 'stm32f091/esp8266.h')
-rw-r--r--stm32f091/esp8266.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/stm32f091/esp8266.h b/stm32f091/esp8266.h
index 8038679..0832e95 100644
--- a/stm32f091/esp8266.h
+++ b/stm32f091/esp8266.h
@@ -1,11 +1,12 @@
#pragma once
-#include "consts.h"
-
+#include <stm32f0xx_hal.h>
#include <stdlib.h>
#include <stdint.h>
-/** @brief null-terminated rx buffer string */
+#include "consts.h"
+
+/** @brief DMA rx buffer */
extern uint8_t g_ws_esp8266_dma_rx_buffer[WS_DMA_RX_BUFFER_SIZE];
/** @brief null-terminated tx buffer string */
extern uint8_t g_ws_esp8266_dma_tx_buffer[WS_DMA_TX_BUFFER_SIZE];
@@ -17,6 +18,9 @@ void DMA1_Ch1_IRQHandler(void);
/** @brief USART1 interrupt handler */
void USART1_IRQHandler(void);
+/** @brief receive chunk complete */
+void HAL_UART_RxCpltCallback(UART_HandleTypeDef* huart);
+
/** @brief send response to incoming request on specific channel */
void ws_esp8266_res_send(unsigned int channel, uint8_t* data, size_t size);