Browse Source

在MPU中已经配置了不缓存,这里可以不调用这句了,提升性能

master
Lizongdi 1 week ago
parent
commit
583eb19f5f
  1. 2
      bspMCU/My_print.c

2
bspMCU/My_print.c

@ -40,7 +40,7 @@ int USART_Send(char *_pBuffer, uint32_t _iSize)
// int iRet = HAL_UART_Transmit(ptUartUserData->m_uart, (uint8_t *)_pBuffer, _iSize, 100); // int iRet = HAL_UART_Transmit(ptUartUserData->m_uart, (uint8_t *)_pBuffer, _iSize, 100);
// HAL_GPIO_WritePin(RS485_2_DIR_GPIO_Port, RS485_2_DIR_Pin,GPIO_PIN_RESET); // HAL_GPIO_WritePin(RS485_2_DIR_GPIO_Port, RS485_2_DIR_Pin,GPIO_PIN_RESET);
RD_MEMCPY(uart_tx_buffer, _pBuffer, _iSize); RD_MEMCPY(uart_tx_buffer, _pBuffer, _iSize);
SCB_CleanDCache_by_Addr((uint32_t*)uart_tx_buffer, _iSize); //SCB_CleanDCache_by_Addr((uint32_t*)uart_tx_buffer, _iSize);
int iRet = HAL_UART_Transmit_DMA(ptUartUserData->m_uart, (uint8_t *)uart_tx_buffer, _iSize); int iRet = HAL_UART_Transmit_DMA(ptUartUserData->m_uart, (uint8_t *)uart_tx_buffer, _iSize);
return iRet; return iRet;

Loading…
Cancel
Save