Sfoglia il codice sorgente

Usart Receive DMA add

june9152 6 anni fa
parent
commit
5aa1f64988
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      Src/main.c

+ 1 - 1
Src/main.c

@@ -134,7 +134,7 @@ int main(void)
134 134
   InitUartQueue(&TerminalQueue);                              //ESP8266 queue �??????????��
135 135
   InitUartQueue(&UbxQueue);                           //PC�?????????????? queue �??????????��
136 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 138
   setbuf(stdout, NULL); // \n ?�� ?��?�� ?���?????????????????
139 139
   HAL_GPIO_WritePin(GPIOB,GPIO_PIN_9,SET);
140 140
   /* USER CODE END 2 */