aboutsummaryrefslogtreecommitdiff
path: root/stm32f091/esp8266.c
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-10-26 15:51:18 +0200
committerlonkaars <loek@pipeframe.xyz>2022-10-26 15:51:18 +0200
commite2ae9e96ba05baa389ebc49a65a941bada87e3aa (patch)
treeabf2df32e15d5cf7adfb4caaa8bb99f59abf9d7b /stm32f091/esp8266.c
parentfbd5ed29043c4094f1209ec8935a577f5ce9e7a6 (diff)
dma write working
Diffstat (limited to 'stm32f091/esp8266.c')
-rw-r--r--stm32f091/esp8266.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/stm32f091/esp8266.c b/stm32f091/esp8266.c
index 341f052..98c4e10 100644
--- a/stm32f091/esp8266.c
+++ b/stm32f091/esp8266.c
@@ -14,6 +14,7 @@ int isOK = 0; // TODO: remove
uint16_t g_ws_esp8266_dma_old_pos = 0;
uint16_t g_ws_esp8266_dma_new_pos = 0;
+/*
// when rx receives data handle the message. this function is in stm32. this name needs to stay the same or else it wont work.
void HAL_UARTEx_RxEventCallback(UART_HandleTypeDef *huart, uint16_t Size){
if(huart->Instance == USART1) {
@@ -51,14 +52,11 @@ void HAL_UARTEx_RxEventCallback(UART_HandleTypeDef *huart, uint16_t Size){
}
}
}
+*/
-void DMA1_Ch1_IRQHandler(void) {
- HAL_DMA_IRQHandler(&hdma_usart1_rx);
-}
-
-void DMA1_Ch2_3_DMA2_Ch1_2_IRQHandler(void) {
- HAL_DMA_IRQHandler(&hdma_usart1_tx);
-}
+void DMA1_Ch1_IRQHandler(void) { HAL_DMA_IRQHandler(&hdma_usart1_rx); }
+void DMA1_Ch2_3_DMA2_Ch1_2_IRQHandler(void) { HAL_DMA_IRQHandler(&hdma_usart1_tx); }
+void USART1_IRQHandler(void) { HAL_UART_IRQHandler(&huart1); }
void ws_esp8266_ATsendCommand(uint8_t* data){
char dataChar[20];