STM32-Printf用DMA方式輸出

1.簡單的printf打印,把底層的fputc重寫就行函數 int fputc(int ch, FILE *f) { while (__HAL_UART_GET_FLAG(&huart1, UART_FLAG_TC) == RESET) {} HAL_UART_Transmit(&huart1, (uint8_t*) &ch,1,0xFF); return ch; } 2.經過DMA打
相關文章
相關標籤/搜索