mirror of
https://github.com/ArteryTek/AT32F415_Firmware_Library.git
synced 2026-05-21 09:22:11 +00:00
update version to v2.1.0
This commit is contained in:
@@ -93,16 +93,24 @@ static __IO uint32_t fac_ms;
|
||||
PUTCHAR_PROTOTYPE
|
||||
{
|
||||
while(usart_flag_get(PRINT_UART, USART_TDBE_FLAG) == RESET);
|
||||
usart_data_transmit(PRINT_UART, ch);
|
||||
usart_data_transmit(PRINT_UART, (uint16_t)ch);
|
||||
while(usart_flag_get(PRINT_UART, USART_TDC_FLAG) == RESET);
|
||||
return ch;
|
||||
}
|
||||
|
||||
#if (defined (__GNUC__) && !defined (__clang__)) || (defined (__ICCARM__))
|
||||
#if defined (__GNUC__) && !defined (__clang__)
|
||||
int _write(int fd, char *pbuffer, int size)
|
||||
#elif defined ( __ICCARM__ )
|
||||
#pragma module_name = "?__write"
|
||||
int __write(int fd, char *pbuffer, int size)
|
||||
#endif
|
||||
{
|
||||
for(int i = 0; i < size; i ++)
|
||||
{
|
||||
__io_putchar(*pbuffer++);
|
||||
while(usart_flag_get(PRINT_UART, USART_TDBE_FLAG) == RESET);
|
||||
usart_data_transmit(PRINT_UART, (uint16_t)(*pbuffer++));
|
||||
while(usart_flag_get(PRINT_UART, USART_TDC_FLAG) == RESET);
|
||||
}
|
||||
|
||||
return size;
|
||||
|
||||
Reference in New Issue
Block a user