60 va_start(arg, format);
62 const int32_t length =
72 (void)HAL_UART_Transmit(&
vcpUart, (uint8_t*)logBuffer, (uint16_t)length,
83 vcpUart.Init.WordLength = UART_WORDLENGTH_8B;
84 vcpUart.Init.StopBits = UART_STOPBITS_1;
85 vcpUart.Init.Parity = UART_PARITY_NONE;
86 vcpUart.Init.Mode = UART_MODE_TX_RX;
87 vcpUart.Init.HwFlowCtl = UART_HWCONTROL_NONE;
88 vcpUart.Init.OverSampling = UART_OVERSAMPLING_16;
89 vcpUart.Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE;
90 vcpUart.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_NO_INIT;
92 if (HAL_UART_Init(&
vcpUart) != HAL_OK)
100 (void)HAL_UART_DeInit(&
vcpUart);
This file contains the board-specific GPIO pin definitions, peripheral configurations,...
This file contains the error handling function prototypes.
void ErrorHandler(void)
This function is executed in case of error occurrence.
#define VCP_UART_BUFFER_SIZE
#define VCP_UART_TX_TIMEOUT
#define VCP_UART_BAUDRATE
#define VCP_UART_INSTANCE
void LogDeInit(void)
De-initialize the UART peripheral used for logging.
void LogInit(void)
Initialize the UART peripheral used for logging.
void LogPrint(const char *format,...)
Print a formatted log message over the UART interface.
static UART_HandleTypeDef vcpUart
void RccEnableUart2(void)
Enable the USART2 peripheral clock.
void RccDisableUart2(void)
Disable the USART2 peripheral clock.
This file contains the UART-based logging function prototypes for the debug output.
This file contains the RCC (Reset and Clock Control) driver function prototypes for enabling and disa...