update version to v2.0.7

This commit is contained in:
Artery-MCU
2022-08-26 14:45:50 +08:00
parent ac9d1046b7
commit d95c5fb9e8
1103 changed files with 13792 additions and 2269 deletions

View File

@@ -1,8 +1,8 @@
/**
**************************************************************************
* @file at32f415_board.c
* @version v2.0.6
* @date 2022-06-28
* @version v2.0.7
* @date 2022-08-16
* @brief set of firmware functions to manage leds and push-button.
* initialize delay function.
**************************************************************************
@@ -99,6 +99,18 @@ PUTCHAR_PROTOTYPE
return ch;
}
#if defined (__GNUC__) && !defined (__clang__)
int _write(int fd, char *pbuffer, int size)
{
for(int i = 0; i < size; i ++)
{
__io_putchar(*pbuffer++);
}
return size;
}
#endif
/**
* @brief initialize uart
* @param baudrate: uart baudrate
@@ -108,6 +120,10 @@ void uart_print_init(uint32_t baudrate)
{
gpio_init_type gpio_init_struct;
#if defined (__GNUC__) && !defined (__clang__)
setvbuf(stdout, NULL, _IONBF, 0);
#endif
/* enable the uart and gpio clock */
crm_periph_clock_enable(PRINT_UART_CRM_CLK, TRUE);
crm_periph_clock_enable(PRINT_UART_TX_GPIO_CRM_CLK, TRUE);