diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-10-26 19:18:26 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-10-26 19:18:26 +0200 |
commit | d48374c0f38cb01d726958b49bda5c1b6e91ab91 (patch) | |
tree | 084ed6b96b31ed3d9c1118545ce44d6b89f6ae2b /stm32f091/esp8266.h | |
parent | a74368cb7eebb99b14060c9198dfa277a18c2234 (diff) |
WIP working dma receive to buffer
Diffstat (limited to 'stm32f091/esp8266.h')
-rw-r--r-- | stm32f091/esp8266.h | 10 |
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); |