This function writes a character to a file. It uses the usart_data_transmit function to transmit the character over USART. It then waits for the transmission to complete by checking the USART_FLAG_TBE flag. Finally, it returns the character that was written.

int fputcint ch FILE f usart_data_transmitBL_USART uint8_t ch; whileRESET == usart_flag_getBL_USART USART_FLAG_TBE; return ch;

原文地址: https://www.cveoy.top/t/topic/iigx 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录