编译 lib 初步实现

Signed-off-by: a1012112796 <1012112796@qq.com>
This commit is contained in:
2022-10-14 11:16:02 +08:00
parent 02210074ec
commit 43963583ea
226 changed files with 159 additions and 42117 deletions

View File

@@ -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---------------------------------------------------------*/

View File

@@ -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);

View File

@@ -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.