update version to v2.1.7

This commit is contained in:
Artery-MCU
2025-08-05 10:24:08 +08:00
parent ee4796e775
commit 6dd65bdd62
122 changed files with 3730 additions and 14394 deletions

View File

@@ -51,12 +51,12 @@ static __IO uint32_t fac_ms;
__asm (".global __use_no_semihosting\n\t");
void _sys_exit(int x)
{
x = x;
UNUSED(x);
}
/* __use_no_semihosting was requested, but _ttywrch was */
void _ttywrch(int ch)
{
ch = ch;
UNUSED(ch);
}
FILE __stdout;
#else
@@ -69,12 +69,12 @@ static __IO uint32_t fac_ms;
FILE __stdout;
void _sys_exit(int x)
{
x = x;
UNUSED(x);
}
/* __use_no_semihosting was requested, but _ttywrch was */
void _ttywrch(int ch)
{
ch = ch;
UNUSED(ch);
}
#endif
#endif
@@ -92,6 +92,9 @@ static __IO uint32_t fac_ms;
*/
PUTCHAR_PROTOTYPE
{
#if !defined (__GNUC__) || defined (__clang__)
UNUSED(f);
#endif
while(usart_flag_get(PRINT_UART, USART_TDBE_FLAG) == RESET);
usart_data_transmit(PRINT_UART, (uint16_t)ch);
while(usart_flag_get(PRINT_UART, USART_TDC_FLAG) == RESET);
@@ -106,6 +109,7 @@ int _write(int fd, char *pbuffer, int size)
int __write(int fd, char *pbuffer, int size)
#endif
{
UNUSED(fd);
for(int i = 0; i < size; i ++)
{
while(usart_flag_get(PRINT_UART, USART_TDBE_FLAG) == RESET);