@@ -164,7 +164,7 @@ void rt_hw_us_delay(rt_uint32_t us)
|
||||
/**
|
||||
* This function will initial STM32 board.
|
||||
*/
|
||||
RT_WEAK void rt_hw_board_init(void)
|
||||
void rt_hw_board_init(void)
|
||||
{
|
||||
#ifdef BSP_SCB_ENABLE_I_CACHE
|
||||
/* Enable I-Cache---------------------------------------------------------*/
|
||||
|
@@ -422,10 +422,6 @@ static void dma_recv_isr(struct rt_serial_device *serial, rt_uint8_t isr_flag)
|
||||
static void uart_isr(struct rt_serial_device *serial)
|
||||
{
|
||||
struct stm32_uart *uart;
|
||||
#ifdef RT_SERIAL_USING_DMA
|
||||
rt_size_t recv_total_index, recv_len;
|
||||
rt_base_t level;
|
||||
#endif
|
||||
|
||||
RT_ASSERT(serial != RT_NULL);
|
||||
uart = rt_container_of(serial, struct stm32_uart, serial);
|
||||
|
@@ -701,20 +701,20 @@ HAL_StatusTypeDef HAL_UART_DeInit(UART_HandleTypeDef *huart)
|
||||
return HAL_OK;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief UART MSP Init.
|
||||
* @param huart Pointer to a UART_HandleTypeDef structure that contains
|
||||
* the configuration information for the specified UART module.
|
||||
* @retval None
|
||||
*/
|
||||
__weak void HAL_UART_MspInit(UART_HandleTypeDef *huart)
|
||||
{
|
||||
/* Prevent unused argument(s) compilation warning */
|
||||
UNUSED(huart);
|
||||
/* NOTE: This function should not be modified, when the callback is needed,
|
||||
the HAL_UART_MspInit could be implemented in the user file
|
||||
*/
|
||||
}
|
||||
// /**
|
||||
// * @brief UART MSP Init.
|
||||
// * @param huart Pointer to a UART_HandleTypeDef structure that contains
|
||||
// * the configuration information for the specified UART module.
|
||||
// * @retval None
|
||||
// */
|
||||
// __weak void HAL_UART_MspInit(UART_HandleTypeDef *huart)
|
||||
// {
|
||||
// /* Prevent unused argument(s) compilation warning */
|
||||
// UNUSED(huart);
|
||||
// /* NOTE: This function should not be modified, when the callback is needed,
|
||||
// the HAL_UART_MspInit could be implemented in the user file
|
||||
// */
|
||||
// }
|
||||
|
||||
/**
|
||||
* @brief UART MSP DeInit.
|
||||
|
Reference in New Issue
Block a user