Browse Source

Usart Receive DMA add

june9152 6 years ago
parent
commit
5aa1f64988
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Src/main.c

+ 1 - 1
Src/main.c

@@ -134,7 +134,7 @@ int main(void)
134
   InitUartQueue(&TerminalQueue);                              //ESP8266 queue �??????????��
134
   InitUartQueue(&TerminalQueue);                              //ESP8266 queue �??????????��
135
   InitUartQueue(&UbxQueue);                           //PC�?????????????? queue �??????????��
135
   InitUartQueue(&UbxQueue);                           //PC�?????????????? queue �??????????��
136
   HAL_UART_Receive_IT(&hTerminal, TerminalQueue.Buffer, 1);       //ESP8266 �????????????? ?��?��?�� ?��?�� ?��?��?��?�� ?��?��
136
   HAL_UART_Receive_IT(&hTerminal, TerminalQueue.Buffer, 1);       //ESP8266 �????????????? ?��?��?�� ?��?�� ?��?��?��?�� ?��?��
137
-  HAL_UART_Receive_IT(&hTpb22, UbxQueue.Buffer, 1); //PC�????????????? ?��?��?�� ?��?�� ?��?��?��?�� ?��?��
137
+  HAL_UART_Receive_DMA(&hubx,UbxQueue.Buffer,1);
138
   setbuf(stdout, NULL); // \n ?�� ?��?�� ?���?????????????????
138
   setbuf(stdout, NULL); // \n ?�� ?��?�� ?���?????????????????
139
   HAL_GPIO_WritePin(GPIOB,GPIO_PIN_9,SET);
139
   HAL_GPIO_WritePin(GPIOB,GPIO_PIN_9,SET);
140
   /* USER CODE END 2 */
140
   /* USER CODE END 2 */