void USART_DMACmd(USART_TypeDef* USARTx, uint16_t USART_DMAReq, FunctionalState NewState) 想求教这个函数什么作用 貌似是抓取网页显示在串口上 { /* Check the parameters */ assert_param(IS_USART_ALL_PERIPH(USARTx)); assert_param(IS_USART_DMAREQ(USART_DMAReq)); assert_param(IS_FUNCTIONAL_STATE(NewState)); if (NewState != DISABLE) { /* Enable the DMA transfer for selected requests by setting the DMAT and/or DMAR bits in the USART CR3 register */ USARTx->CR3 |= USART_DMAReq; } else { /* Disable the DMA transfer for selected requests by clearing the DMAT and/or DMAR bits in the USART CR3 register */ USARTx->CR3 &= (uint16_t)~USART_DMAReq; } }
/* * 函数名:ESP8266_WebFetch_Test * 描述 :WF-ESP8266模块进行抓取网页测试 * 输入 :无 * 返回 : 无 * 调用 :被外部调用 */ void ESP8266_WebFetch_Test ( void ) { |