串口屏备份
This commit is contained in:
parent
338765ec78
commit
5f91224ebb
|
@ -205,7 +205,18 @@ void HAL_UARTEx_RxEventCallback(UART_HandleTypeDef *huart, uint16_t Size)
|
||||||
memset(usb_uart1.rx_data, 0, ARRAY_LEN(usb_uart1.rx_data));
|
memset(usb_uart1.rx_data, 0, ARRAY_LEN(usb_uart1.rx_data));
|
||||||
memcpy(usb_uart1.rx_data, usb_uart1.rx_data_temp, Size);
|
memcpy(usb_uart1.rx_data, usb_uart1.rx_data_temp, Size);
|
||||||
HAL_UARTEx_ReceiveToIdle_DMA(&huart1, usb_uart1.rx_data_temp, ARRAY_LEN(usb_uart1.rx_data_temp));
|
HAL_UARTEx_ReceiveToIdle_DMA(&huart1, usb_uart1.rx_data_temp, ARRAY_LEN(usb_uart1.rx_data_temp));
|
||||||
dma_usart_send(&huart1, usb_uart1.rx_data_temp, usb_uart1.rx_num);
|
// dma_usart_send(&huart1, usb_uart1.rx_data_temp, usb_uart1.rx_num);
|
||||||
|
dma_usart_send(&huart4, usb_uart1.rx_data_temp, usb_uart1.rx_num);
|
||||||
|
}
|
||||||
|
if (huart == &huart4)
|
||||||
|
{
|
||||||
|
__HAL_UNLOCK(huart);
|
||||||
|
lcd_uart4.rx_num = Size;
|
||||||
|
memset(lcd_uart4.rx_data, 0, ARRAY_LEN(lcd_uart4.rx_data));
|
||||||
|
memcpy(lcd_uart4.rx_data, lcd_uart4.rx_data_temp, Size);
|
||||||
|
HAL_UARTEx_ReceiveToIdle_DMA(&huart4, lcd_uart4.rx_data_temp, ARRAY_LEN(lcd_uart4.rx_data_temp));
|
||||||
|
dma_usart_send(&huart1, lcd_uart4.rx_data_temp, lcd_uart4.rx_num);
|
||||||
|
// dma_usart_send(&huart4, lcd_uart4.rx_data_temp, lcd_uart4.rx_num);
|
||||||
}
|
}
|
||||||
if (huart == &huart6)
|
if (huart == &huart6)
|
||||||
{
|
{
|
||||||
|
|
|
@ -68,7 +68,6 @@ void MX_UART4_Init(void)
|
||||||
/* USER CODE BEGIN UART4_Init 2 */
|
/* USER CODE BEGIN UART4_Init 2 */
|
||||||
//__HAL_UART_ENABLE_IT(&huart4, UART_IT_IDLE); // 使能IDLE中断
|
//__HAL_UART_ENABLE_IT(&huart4, UART_IT_IDLE); // 使能IDLE中断
|
||||||
/* USER CODE END UART4_Init 2 */
|
/* USER CODE END UART4_Init 2 */
|
||||||
|
|
||||||
}
|
}
|
||||||
/* UART5 init function */
|
/* UART5 init function */
|
||||||
void MX_UART5_Init(void)
|
void MX_UART5_Init(void)
|
||||||
|
@ -97,7 +96,6 @@ void MX_UART5_Init(void)
|
||||||
// __HAL_UART_ENABLE_IT(&huart5, UART_IT_RXNE); // 接收中断
|
// __HAL_UART_ENABLE_IT(&huart5, UART_IT_RXNE); // 接收中断
|
||||||
// __HAL_UART_ENABLE_IT(&huart5, UART_IT_IDLE); // 空闲中断
|
// __HAL_UART_ENABLE_IT(&huart5, UART_IT_IDLE); // 空闲中断
|
||||||
/* USER CODE END UART5_Init 2 */
|
/* USER CODE END UART5_Init 2 */
|
||||||
|
|
||||||
}
|
}
|
||||||
/* USART1 init function */
|
/* USART1 init function */
|
||||||
|
|
||||||
|
@ -126,7 +124,6 @@ void MX_USART1_UART_Init(void)
|
||||||
/* USER CODE BEGIN USART1_Init 2 */
|
/* USER CODE BEGIN USART1_Init 2 */
|
||||||
|
|
||||||
/* USER CODE END USART1_Init 2 */
|
/* USER CODE END USART1_Init 2 */
|
||||||
|
|
||||||
}
|
}
|
||||||
/* USART2 init function */
|
/* USART2 init function */
|
||||||
|
|
||||||
|
@ -156,7 +153,6 @@ void MX_USART2_UART_Init(void)
|
||||||
// __HAL_UART_ENABLE_IT(&huart2, UART_IT_RXNE); // 接收中断
|
// __HAL_UART_ENABLE_IT(&huart2, UART_IT_RXNE); // 接收中断
|
||||||
// __HAL_UART_ENABLE_IT(&huart2, UART_IT_IDLE); // 使能IDLE中断
|
// __HAL_UART_ENABLE_IT(&huart2, UART_IT_IDLE); // 使能IDLE中断
|
||||||
/* USER CODE END USART2_Init 2 */
|
/* USER CODE END USART2_Init 2 */
|
||||||
|
|
||||||
}
|
}
|
||||||
/* USART3 init function */
|
/* USART3 init function */
|
||||||
|
|
||||||
|
@ -185,7 +181,6 @@ void MX_USART3_UART_Init(void)
|
||||||
/* USER CODE BEGIN USART3_Init 2 */
|
/* USER CODE BEGIN USART3_Init 2 */
|
||||||
|
|
||||||
/* USER CODE END USART3_Init 2 */
|
/* USER CODE END USART3_Init 2 */
|
||||||
|
|
||||||
}
|
}
|
||||||
/* USART6 init function */
|
/* USART6 init function */
|
||||||
|
|
||||||
|
@ -214,14 +209,13 @@ void MX_USART6_UART_Init(void)
|
||||||
/* USER CODE BEGIN USART6_Init 2 */
|
/* USER CODE BEGIN USART6_Init 2 */
|
||||||
|
|
||||||
/* USER CODE END USART6_Init 2 */
|
/* USER CODE END USART6_Init 2 */
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void HAL_UART_MspInit(UART_HandleTypeDef* uartHandle)
|
void HAL_UART_MspInit(UART_HandleTypeDef *uartHandle)
|
||||||
{
|
{
|
||||||
|
|
||||||
GPIO_InitTypeDef GPIO_InitStruct = {0};
|
GPIO_InitTypeDef GPIO_InitStruct = {0};
|
||||||
if(uartHandle->Instance==UART4)
|
if (uartHandle->Instance == UART4)
|
||||||
{
|
{
|
||||||
/* USER CODE BEGIN UART4_MspInit 0 */
|
/* USER CODE BEGIN UART4_MspInit 0 */
|
||||||
|
|
||||||
|
@ -234,7 +228,7 @@ void HAL_UART_MspInit(UART_HandleTypeDef* uartHandle)
|
||||||
PC10 ------> UART4_TX
|
PC10 ------> UART4_TX
|
||||||
PC11 ------> UART4_RX
|
PC11 ------> UART4_RX
|
||||||
*/
|
*/
|
||||||
GPIO_InitStruct.Pin = LCD_TX_Pin|LCD_RX_Pin;
|
GPIO_InitStruct.Pin = LCD_TX_Pin | LCD_RX_Pin;
|
||||||
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
|
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
|
||||||
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
||||||
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
|
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
|
||||||
|
@ -258,7 +252,7 @@ void HAL_UART_MspInit(UART_HandleTypeDef* uartHandle)
|
||||||
Error_Handler();
|
Error_Handler();
|
||||||
}
|
}
|
||||||
|
|
||||||
__HAL_LINKDMA(uartHandle,hdmarx,hdma_uart4_rx);
|
__HAL_LINKDMA(uartHandle, hdmarx, hdma_uart4_rx);
|
||||||
|
|
||||||
/* UART4_TX Init */
|
/* UART4_TX Init */
|
||||||
hdma_uart4_tx.Instance = DMA1_Stream4;
|
hdma_uart4_tx.Instance = DMA1_Stream4;
|
||||||
|
@ -276,7 +270,7 @@ void HAL_UART_MspInit(UART_HandleTypeDef* uartHandle)
|
||||||
Error_Handler();
|
Error_Handler();
|
||||||
}
|
}
|
||||||
|
|
||||||
__HAL_LINKDMA(uartHandle,hdmatx,hdma_uart4_tx);
|
__HAL_LINKDMA(uartHandle, hdmatx, hdma_uart4_tx);
|
||||||
|
|
||||||
/* UART4 interrupt Init */
|
/* UART4 interrupt Init */
|
||||||
HAL_NVIC_SetPriority(UART4_IRQn, 5, 0);
|
HAL_NVIC_SetPriority(UART4_IRQn, 5, 0);
|
||||||
|
@ -285,7 +279,7 @@ void HAL_UART_MspInit(UART_HandleTypeDef* uartHandle)
|
||||||
|
|
||||||
/* USER CODE END UART4_MspInit 1 */
|
/* USER CODE END UART4_MspInit 1 */
|
||||||
}
|
}
|
||||||
else if(uartHandle->Instance==UART5)
|
else if (uartHandle->Instance == UART5)
|
||||||
{
|
{
|
||||||
/* USER CODE BEGIN UART5_MspInit 0 */
|
/* USER CODE BEGIN UART5_MspInit 0 */
|
||||||
|
|
||||||
|
@ -330,7 +324,7 @@ void HAL_UART_MspInit(UART_HandleTypeDef* uartHandle)
|
||||||
Error_Handler();
|
Error_Handler();
|
||||||
}
|
}
|
||||||
|
|
||||||
__HAL_LINKDMA(uartHandle,hdmatx,hdma_uart5_tx);
|
__HAL_LINKDMA(uartHandle, hdmatx, hdma_uart5_tx);
|
||||||
|
|
||||||
/* UART5_RX Init */
|
/* UART5_RX Init */
|
||||||
hdma_uart5_rx.Instance = DMA1_Stream0;
|
hdma_uart5_rx.Instance = DMA1_Stream0;
|
||||||
|
@ -348,7 +342,7 @@ void HAL_UART_MspInit(UART_HandleTypeDef* uartHandle)
|
||||||
Error_Handler();
|
Error_Handler();
|
||||||
}
|
}
|
||||||
|
|
||||||
__HAL_LINKDMA(uartHandle,hdmarx,hdma_uart5_rx);
|
__HAL_LINKDMA(uartHandle, hdmarx, hdma_uart5_rx);
|
||||||
|
|
||||||
/* UART5 interrupt Init */
|
/* UART5 interrupt Init */
|
||||||
HAL_NVIC_SetPriority(UART5_IRQn, 5, 0);
|
HAL_NVIC_SetPriority(UART5_IRQn, 5, 0);
|
||||||
|
@ -357,7 +351,7 @@ void HAL_UART_MspInit(UART_HandleTypeDef* uartHandle)
|
||||||
|
|
||||||
/* USER CODE END UART5_MspInit 1 */
|
/* USER CODE END UART5_MspInit 1 */
|
||||||
}
|
}
|
||||||
else if(uartHandle->Instance==USART1)
|
else if (uartHandle->Instance == USART1)
|
||||||
{
|
{
|
||||||
/* USER CODE BEGIN USART1_MspInit 0 */
|
/* USER CODE BEGIN USART1_MspInit 0 */
|
||||||
|
|
||||||
|
@ -370,7 +364,7 @@ void HAL_UART_MspInit(UART_HandleTypeDef* uartHandle)
|
||||||
PA9 ------> USART1_TX
|
PA9 ------> USART1_TX
|
||||||
PA10 ------> USART1_RX
|
PA10 ------> USART1_RX
|
||||||
*/
|
*/
|
||||||
GPIO_InitStruct.Pin = USB_TX_Pin|USB_RX_Pin;
|
GPIO_InitStruct.Pin = USB_TX_Pin | USB_RX_Pin;
|
||||||
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
|
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
|
||||||
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
||||||
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
|
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
|
||||||
|
@ -394,7 +388,7 @@ void HAL_UART_MspInit(UART_HandleTypeDef* uartHandle)
|
||||||
Error_Handler();
|
Error_Handler();
|
||||||
}
|
}
|
||||||
|
|
||||||
__HAL_LINKDMA(uartHandle,hdmarx,hdma_usart1_rx);
|
__HAL_LINKDMA(uartHandle, hdmarx, hdma_usart1_rx);
|
||||||
|
|
||||||
/* USART1_TX Init */
|
/* USART1_TX Init */
|
||||||
hdma_usart1_tx.Instance = DMA2_Stream7;
|
hdma_usart1_tx.Instance = DMA2_Stream7;
|
||||||
|
@ -412,7 +406,7 @@ void HAL_UART_MspInit(UART_HandleTypeDef* uartHandle)
|
||||||
Error_Handler();
|
Error_Handler();
|
||||||
}
|
}
|
||||||
|
|
||||||
__HAL_LINKDMA(uartHandle,hdmatx,hdma_usart1_tx);
|
__HAL_LINKDMA(uartHandle, hdmatx, hdma_usart1_tx);
|
||||||
|
|
||||||
/* USART1 interrupt Init */
|
/* USART1 interrupt Init */
|
||||||
HAL_NVIC_SetPriority(USART1_IRQn, 5, 0);
|
HAL_NVIC_SetPriority(USART1_IRQn, 5, 0);
|
||||||
|
@ -421,7 +415,7 @@ void HAL_UART_MspInit(UART_HandleTypeDef* uartHandle)
|
||||||
|
|
||||||
/* USER CODE END USART1_MspInit 1 */
|
/* USER CODE END USART1_MspInit 1 */
|
||||||
}
|
}
|
||||||
else if(uartHandle->Instance==USART2)
|
else if (uartHandle->Instance == USART2)
|
||||||
{
|
{
|
||||||
/* USER CODE BEGIN USART2_MspInit 0 */
|
/* USER CODE BEGIN USART2_MspInit 0 */
|
||||||
|
|
||||||
|
@ -434,7 +428,7 @@ void HAL_UART_MspInit(UART_HandleTypeDef* uartHandle)
|
||||||
PD5 ------> USART2_TX
|
PD5 ------> USART2_TX
|
||||||
PD6 ------> USART2_RX
|
PD6 ------> USART2_RX
|
||||||
*/
|
*/
|
||||||
GPIO_InitStruct.Pin = HART2_TX_Pin|HART2_RX_Pin;
|
GPIO_InitStruct.Pin = HART2_TX_Pin | HART2_RX_Pin;
|
||||||
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
|
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
|
||||||
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
||||||
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
|
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
|
||||||
|
@ -458,7 +452,7 @@ void HAL_UART_MspInit(UART_HandleTypeDef* uartHandle)
|
||||||
Error_Handler();
|
Error_Handler();
|
||||||
}
|
}
|
||||||
|
|
||||||
__HAL_LINKDMA(uartHandle,hdmarx,hdma_usart2_rx);
|
__HAL_LINKDMA(uartHandle, hdmarx, hdma_usart2_rx);
|
||||||
|
|
||||||
/* USART2_TX Init */
|
/* USART2_TX Init */
|
||||||
hdma_usart2_tx.Instance = DMA1_Stream6;
|
hdma_usart2_tx.Instance = DMA1_Stream6;
|
||||||
|
@ -476,7 +470,7 @@ void HAL_UART_MspInit(UART_HandleTypeDef* uartHandle)
|
||||||
Error_Handler();
|
Error_Handler();
|
||||||
}
|
}
|
||||||
|
|
||||||
__HAL_LINKDMA(uartHandle,hdmatx,hdma_usart2_tx);
|
__HAL_LINKDMA(uartHandle, hdmatx, hdma_usart2_tx);
|
||||||
|
|
||||||
/* USART2 interrupt Init */
|
/* USART2 interrupt Init */
|
||||||
HAL_NVIC_SetPriority(USART2_IRQn, 5, 0);
|
HAL_NVIC_SetPriority(USART2_IRQn, 5, 0);
|
||||||
|
@ -485,7 +479,7 @@ void HAL_UART_MspInit(UART_HandleTypeDef* uartHandle)
|
||||||
|
|
||||||
/* USER CODE END USART2_MspInit 1 */
|
/* USER CODE END USART2_MspInit 1 */
|
||||||
}
|
}
|
||||||
else if(uartHandle->Instance==USART3)
|
else if (uartHandle->Instance == USART3)
|
||||||
{
|
{
|
||||||
/* USER CODE BEGIN USART3_MspInit 0 */
|
/* USER CODE BEGIN USART3_MspInit 0 */
|
||||||
|
|
||||||
|
@ -498,7 +492,7 @@ void HAL_UART_MspInit(UART_HandleTypeDef* uartHandle)
|
||||||
PD8 ------> USART3_TX
|
PD8 ------> USART3_TX
|
||||||
PD9 ------> USART3_RX
|
PD9 ------> USART3_RX
|
||||||
*/
|
*/
|
||||||
GPIO_InitStruct.Pin = BLE2_TX_Pin|BLE2_RX_Pin;
|
GPIO_InitStruct.Pin = BLE2_TX_Pin | BLE2_RX_Pin;
|
||||||
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
|
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
|
||||||
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
||||||
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
|
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
|
||||||
|
@ -522,7 +516,7 @@ void HAL_UART_MspInit(UART_HandleTypeDef* uartHandle)
|
||||||
Error_Handler();
|
Error_Handler();
|
||||||
}
|
}
|
||||||
|
|
||||||
__HAL_LINKDMA(uartHandle,hdmarx,hdma_usart3_rx);
|
__HAL_LINKDMA(uartHandle, hdmarx, hdma_usart3_rx);
|
||||||
|
|
||||||
/* USART3_TX Init */
|
/* USART3_TX Init */
|
||||||
hdma_usart3_tx.Instance = DMA1_Stream3;
|
hdma_usart3_tx.Instance = DMA1_Stream3;
|
||||||
|
@ -540,7 +534,7 @@ void HAL_UART_MspInit(UART_HandleTypeDef* uartHandle)
|
||||||
Error_Handler();
|
Error_Handler();
|
||||||
}
|
}
|
||||||
|
|
||||||
__HAL_LINKDMA(uartHandle,hdmatx,hdma_usart3_tx);
|
__HAL_LINKDMA(uartHandle, hdmatx, hdma_usart3_tx);
|
||||||
|
|
||||||
/* USART3 interrupt Init */
|
/* USART3 interrupt Init */
|
||||||
HAL_NVIC_SetPriority(USART3_IRQn, 5, 0);
|
HAL_NVIC_SetPriority(USART3_IRQn, 5, 0);
|
||||||
|
@ -549,7 +543,7 @@ void HAL_UART_MspInit(UART_HandleTypeDef* uartHandle)
|
||||||
|
|
||||||
/* USER CODE END USART3_MspInit 1 */
|
/* USER CODE END USART3_MspInit 1 */
|
||||||
}
|
}
|
||||||
else if(uartHandle->Instance==USART6)
|
else if (uartHandle->Instance == USART6)
|
||||||
{
|
{
|
||||||
/* USER CODE BEGIN USART6_MspInit 0 */
|
/* USER CODE BEGIN USART6_MspInit 0 */
|
||||||
|
|
||||||
|
@ -562,7 +556,7 @@ void HAL_UART_MspInit(UART_HandleTypeDef* uartHandle)
|
||||||
PC6 ------> USART6_TX
|
PC6 ------> USART6_TX
|
||||||
PC7 ------> USART6_RX
|
PC7 ------> USART6_RX
|
||||||
*/
|
*/
|
||||||
GPIO_InitStruct.Pin = BLE1_TX_Pin|BLE1_RX_Pin;
|
GPIO_InitStruct.Pin = BLE1_TX_Pin | BLE1_RX_Pin;
|
||||||
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
|
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
|
||||||
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
||||||
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
|
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
|
||||||
|
@ -586,7 +580,7 @@ void HAL_UART_MspInit(UART_HandleTypeDef* uartHandle)
|
||||||
Error_Handler();
|
Error_Handler();
|
||||||
}
|
}
|
||||||
|
|
||||||
__HAL_LINKDMA(uartHandle,hdmarx,hdma_usart6_rx);
|
__HAL_LINKDMA(uartHandle, hdmarx, hdma_usart6_rx);
|
||||||
|
|
||||||
/* USART6_TX Init */
|
/* USART6_TX Init */
|
||||||
hdma_usart6_tx.Instance = DMA2_Stream6;
|
hdma_usart6_tx.Instance = DMA2_Stream6;
|
||||||
|
@ -604,7 +598,7 @@ void HAL_UART_MspInit(UART_HandleTypeDef* uartHandle)
|
||||||
Error_Handler();
|
Error_Handler();
|
||||||
}
|
}
|
||||||
|
|
||||||
__HAL_LINKDMA(uartHandle,hdmatx,hdma_usart6_tx);
|
__HAL_LINKDMA(uartHandle, hdmatx, hdma_usart6_tx);
|
||||||
|
|
||||||
/* USART6 interrupt Init */
|
/* USART6 interrupt Init */
|
||||||
HAL_NVIC_SetPriority(USART6_IRQn, 5, 0);
|
HAL_NVIC_SetPriority(USART6_IRQn, 5, 0);
|
||||||
|
@ -615,10 +609,10 @@ void HAL_UART_MspInit(UART_HandleTypeDef* uartHandle)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void HAL_UART_MspDeInit(UART_HandleTypeDef* uartHandle)
|
void HAL_UART_MspDeInit(UART_HandleTypeDef *uartHandle)
|
||||||
{
|
{
|
||||||
|
|
||||||
if(uartHandle->Instance==UART4)
|
if (uartHandle->Instance == UART4)
|
||||||
{
|
{
|
||||||
/* USER CODE BEGIN UART4_MspDeInit 0 */
|
/* USER CODE BEGIN UART4_MspDeInit 0 */
|
||||||
|
|
||||||
|
@ -630,7 +624,7 @@ void HAL_UART_MspDeInit(UART_HandleTypeDef* uartHandle)
|
||||||
PC10 ------> UART4_TX
|
PC10 ------> UART4_TX
|
||||||
PC11 ------> UART4_RX
|
PC11 ------> UART4_RX
|
||||||
*/
|
*/
|
||||||
HAL_GPIO_DeInit(GPIOC, LCD_TX_Pin|LCD_RX_Pin);
|
HAL_GPIO_DeInit(GPIOC, LCD_TX_Pin | LCD_RX_Pin);
|
||||||
|
|
||||||
/* UART4 DMA DeInit */
|
/* UART4 DMA DeInit */
|
||||||
HAL_DMA_DeInit(uartHandle->hdmarx);
|
HAL_DMA_DeInit(uartHandle->hdmarx);
|
||||||
|
@ -642,7 +636,7 @@ void HAL_UART_MspDeInit(UART_HandleTypeDef* uartHandle)
|
||||||
|
|
||||||
/* USER CODE END UART4_MspDeInit 1 */
|
/* USER CODE END UART4_MspDeInit 1 */
|
||||||
}
|
}
|
||||||
else if(uartHandle->Instance==UART5)
|
else if (uartHandle->Instance == UART5)
|
||||||
{
|
{
|
||||||
/* USER CODE BEGIN UART5_MspDeInit 0 */
|
/* USER CODE BEGIN UART5_MspDeInit 0 */
|
||||||
|
|
||||||
|
@ -668,7 +662,7 @@ void HAL_UART_MspDeInit(UART_HandleTypeDef* uartHandle)
|
||||||
|
|
||||||
/* USER CODE END UART5_MspDeInit 1 */
|
/* USER CODE END UART5_MspDeInit 1 */
|
||||||
}
|
}
|
||||||
else if(uartHandle->Instance==USART1)
|
else if (uartHandle->Instance == USART1)
|
||||||
{
|
{
|
||||||
/* USER CODE BEGIN USART1_MspDeInit 0 */
|
/* USER CODE BEGIN USART1_MspDeInit 0 */
|
||||||
|
|
||||||
|
@ -680,7 +674,7 @@ void HAL_UART_MspDeInit(UART_HandleTypeDef* uartHandle)
|
||||||
PA9 ------> USART1_TX
|
PA9 ------> USART1_TX
|
||||||
PA10 ------> USART1_RX
|
PA10 ------> USART1_RX
|
||||||
*/
|
*/
|
||||||
HAL_GPIO_DeInit(GPIOA, USB_TX_Pin|USB_RX_Pin);
|
HAL_GPIO_DeInit(GPIOA, USB_TX_Pin | USB_RX_Pin);
|
||||||
|
|
||||||
/* USART1 DMA DeInit */
|
/* USART1 DMA DeInit */
|
||||||
HAL_DMA_DeInit(uartHandle->hdmarx);
|
HAL_DMA_DeInit(uartHandle->hdmarx);
|
||||||
|
@ -692,7 +686,7 @@ void HAL_UART_MspDeInit(UART_HandleTypeDef* uartHandle)
|
||||||
|
|
||||||
/* USER CODE END USART1_MspDeInit 1 */
|
/* USER CODE END USART1_MspDeInit 1 */
|
||||||
}
|
}
|
||||||
else if(uartHandle->Instance==USART2)
|
else if (uartHandle->Instance == USART2)
|
||||||
{
|
{
|
||||||
/* USER CODE BEGIN USART2_MspDeInit 0 */
|
/* USER CODE BEGIN USART2_MspDeInit 0 */
|
||||||
|
|
||||||
|
@ -704,7 +698,7 @@ void HAL_UART_MspDeInit(UART_HandleTypeDef* uartHandle)
|
||||||
PD5 ------> USART2_TX
|
PD5 ------> USART2_TX
|
||||||
PD6 ------> USART2_RX
|
PD6 ------> USART2_RX
|
||||||
*/
|
*/
|
||||||
HAL_GPIO_DeInit(GPIOD, HART2_TX_Pin|HART2_RX_Pin);
|
HAL_GPIO_DeInit(GPIOD, HART2_TX_Pin | HART2_RX_Pin);
|
||||||
|
|
||||||
/* USART2 DMA DeInit */
|
/* USART2 DMA DeInit */
|
||||||
HAL_DMA_DeInit(uartHandle->hdmarx);
|
HAL_DMA_DeInit(uartHandle->hdmarx);
|
||||||
|
@ -716,7 +710,7 @@ void HAL_UART_MspDeInit(UART_HandleTypeDef* uartHandle)
|
||||||
|
|
||||||
/* USER CODE END USART2_MspDeInit 1 */
|
/* USER CODE END USART2_MspDeInit 1 */
|
||||||
}
|
}
|
||||||
else if(uartHandle->Instance==USART3)
|
else if (uartHandle->Instance == USART3)
|
||||||
{
|
{
|
||||||
/* USER CODE BEGIN USART3_MspDeInit 0 */
|
/* USER CODE BEGIN USART3_MspDeInit 0 */
|
||||||
|
|
||||||
|
@ -728,7 +722,7 @@ void HAL_UART_MspDeInit(UART_HandleTypeDef* uartHandle)
|
||||||
PD8 ------> USART3_TX
|
PD8 ------> USART3_TX
|
||||||
PD9 ------> USART3_RX
|
PD9 ------> USART3_RX
|
||||||
*/
|
*/
|
||||||
HAL_GPIO_DeInit(GPIOD, BLE2_TX_Pin|BLE2_RX_Pin);
|
HAL_GPIO_DeInit(GPIOD, BLE2_TX_Pin | BLE2_RX_Pin);
|
||||||
|
|
||||||
/* USART3 DMA DeInit */
|
/* USART3 DMA DeInit */
|
||||||
HAL_DMA_DeInit(uartHandle->hdmarx);
|
HAL_DMA_DeInit(uartHandle->hdmarx);
|
||||||
|
@ -740,7 +734,7 @@ void HAL_UART_MspDeInit(UART_HandleTypeDef* uartHandle)
|
||||||
|
|
||||||
/* USER CODE END USART3_MspDeInit 1 */
|
/* USER CODE END USART3_MspDeInit 1 */
|
||||||
}
|
}
|
||||||
else if(uartHandle->Instance==USART6)
|
else if (uartHandle->Instance == USART6)
|
||||||
{
|
{
|
||||||
/* USER CODE BEGIN USART6_MspDeInit 0 */
|
/* USER CODE BEGIN USART6_MspDeInit 0 */
|
||||||
|
|
||||||
|
@ -752,7 +746,7 @@ void HAL_UART_MspDeInit(UART_HandleTypeDef* uartHandle)
|
||||||
PC6 ------> USART6_TX
|
PC6 ------> USART6_TX
|
||||||
PC7 ------> USART6_RX
|
PC7 ------> USART6_RX
|
||||||
*/
|
*/
|
||||||
HAL_GPIO_DeInit(GPIOC, BLE1_TX_Pin|BLE1_RX_Pin);
|
HAL_GPIO_DeInit(GPIOC, BLE1_TX_Pin | BLE1_RX_Pin);
|
||||||
|
|
||||||
/* USART6 DMA DeInit */
|
/* USART6 DMA DeInit */
|
||||||
HAL_DMA_DeInit(uartHandle->hdmarx);
|
HAL_DMA_DeInit(uartHandle->hdmarx);
|
||||||
|
|
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
|
@ -293,7 +293,7 @@
|
||||||
<GroupNumber>2</GroupNumber>
|
<GroupNumber>2</GroupNumber>
|
||||||
<FileNumber>2</FileNumber>
|
<FileNumber>2</FileNumber>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<tvExp>1</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>../Core/Src/main.c</PathWithFileName>
|
<PathWithFileName>../Core/Src/main.c</PathWithFileName>
|
||||||
|
@ -317,7 +317,7 @@
|
||||||
<GroupNumber>2</GroupNumber>
|
<GroupNumber>2</GroupNumber>
|
||||||
<FileNumber>4</FileNumber>
|
<FileNumber>4</FileNumber>
|
||||||
<FileType>1</FileType>
|
<FileType>1</FileType>
|
||||||
<tvExp>1</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>../Core/Src/freertos.c</PathWithFileName>
|
<PathWithFileName>../Core/Src/freertos.c</PathWithFileName>
|
||||||
|
|
|
@ -0,0 +1,194 @@
|
||||||
|
<html>
|
||||||
|
<body>
|
||||||
|
<pre>
|
||||||
|
<h1>µVision Build Log</h1>
|
||||||
|
<h2>Tool Versions:</h2>
|
||||||
|
IDE-Version: ¦ÌVision V5.36.0.0
|
||||||
|
Copyright (C) 2021 ARM Ltd and ARM Germany GmbH. All rights reserved.
|
||||||
|
License Information: aaa Administrator, aaa, LIC=6XJT4-F8J98-8YUVV-P833R-DBAKX-Y8EU6
|
||||||
|
|
||||||
|
Tool Versions:
|
||||||
|
Toolchain: MDK-ARM Professional Version: 5.36.0.0
|
||||||
|
Toolchain Path: C:\Keil_v5\ARM\ARMCC\Bin
|
||||||
|
C Compiler: Armcc.exe V5.06 update 7 (build 960)
|
||||||
|
Assembler: Armasm.exe V5.06 update 7 (build 960)
|
||||||
|
Linker/Locator: ArmLink.exe V5.06 update 7 (build 960)
|
||||||
|
Library Manager: ArmAr.exe V5.06 update 7 (build 960)
|
||||||
|
Hex Converter: FromElf.exe V5.06 update 7 (build 960)
|
||||||
|
CPU DLL: SARMCM3.DLL V5.36.0.0
|
||||||
|
Dialog DLL: DCM.DLL V1.17.3.0
|
||||||
|
Target DLL: STLink\ST-LINKIII-KEIL_SWO.dll V3.0.9.0
|
||||||
|
Dialog DLL: TCM.DLL V1.53.0.0
|
||||||
|
|
||||||
|
<h2>Project:</h2>
|
||||||
|
D:\WORK\positioner_testing\Semi-finished product testing\MDK-ARM\semi-finished_product_testing.uvprojx
|
||||||
|
Project File Date: 02/21/2025
|
||||||
|
|
||||||
|
<h2>Output:</h2>
|
||||||
|
*** Using Compiler 'V5.06 update 7 (build 960)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
|
||||||
|
Build target 'semi-finished_product_testing'
|
||||||
|
assembling startup_stm32f407xx.s...
|
||||||
|
compiling lan8742.c...
|
||||||
|
compiling main.c...
|
||||||
|
compiling tim.c...
|
||||||
|
compiling usart.c...
|
||||||
|
compiling stm32f4xx_hal_msp.c...
|
||||||
|
compiling freertos.c...
|
||||||
|
compiling lwip.c...
|
||||||
|
compiling stm32f4xx_hal_timebase_tim.c...
|
||||||
|
compiling stm32f4xx_hal_rcc.c...
|
||||||
|
compiling spi.c...
|
||||||
|
compiling dma.c...
|
||||||
|
compiling gpio.c...
|
||||||
|
compiling stm32f4xx_it.c...
|
||||||
|
compiling stm32f4xx_hal_rcc_ex.c...
|
||||||
|
compiling ethernetif.c...
|
||||||
|
compiling stm32f4xx_hal_flash.c...
|
||||||
|
compiling stm32f4xx_hal_flash_ramfunc.c...
|
||||||
|
compiling stm32f4xx_hal_flash_ex.c...
|
||||||
|
compiling stm32f4xx_hal_gpio.c...
|
||||||
|
compiling stm32f4xx_hal_dma.c...
|
||||||
|
compiling stm32f4xx_hal_pwr.c...
|
||||||
|
compiling stm32f4xx_hal_dma_ex.c...
|
||||||
|
compiling stm32f4xx_hal_cortex.c...
|
||||||
|
compiling stm32f4xx_hal_pwr_ex.c...
|
||||||
|
compiling stm32f4xx_hal_exti.c...
|
||||||
|
compiling stm32f4xx_hal.c...
|
||||||
|
compiling stm32f4xx_hal_spi.c...
|
||||||
|
compiling croutine.c...
|
||||||
|
compiling stm32f4xx_hal_tim_ex.c...
|
||||||
|
compiling event_groups.c...
|
||||||
|
compiling list.c...
|
||||||
|
compiling stm32f4xx_hal_eth.c...
|
||||||
|
compiling stm32f4xx_hal_uart.c...
|
||||||
|
compiling queue.c...
|
||||||
|
compiling stream_buffer.c...
|
||||||
|
compiling stm32f4xx_hal_tim.c...
|
||||||
|
compiling timers.c...
|
||||||
|
compiling heap_4.c...
|
||||||
|
compiling tasks.c...
|
||||||
|
compiling system_stm32f4xx.c...
|
||||||
|
compiling port.c...
|
||||||
|
compiling ccp.c...
|
||||||
|
compiling cmsis_os.c...
|
||||||
|
compiling auth.c...
|
||||||
|
compiling chap_ms.c...
|
||||||
|
compiling chap-md5.c...
|
||||||
|
compiling eui64.c...
|
||||||
|
compiling eap.c...
|
||||||
|
compiling ipcp.c...
|
||||||
|
compiling demand.c...
|
||||||
|
compiling ipv6cp.c...
|
||||||
|
compiling chap-new.c...
|
||||||
|
compiling fsm.c...
|
||||||
|
compiling lcp.c...
|
||||||
|
compiling magic.c...
|
||||||
|
compiling mppe.c...
|
||||||
|
compiling multilink.c...
|
||||||
|
compiling pppapi.c...
|
||||||
|
compiling ppp.c...
|
||||||
|
compiling pppcrypt.c...
|
||||||
|
compiling pppos.c...
|
||||||
|
compiling pppol2tp.c...
|
||||||
|
compiling pppoe.c...
|
||||||
|
compiling upap.c...
|
||||||
|
compiling utils.c...
|
||||||
|
compiling vj.c...
|
||||||
|
compiling bridgeif_fdb.c...
|
||||||
|
compiling ethernet.c...
|
||||||
|
compiling bridgeif.c...
|
||||||
|
compiling lowpan6.c...
|
||||||
|
compiling slipif.c...
|
||||||
|
compiling lowpan6_ble.c...
|
||||||
|
compiling lowpan6_common.c...
|
||||||
|
compiling zepif.c...
|
||||||
|
compiling ecp.c...
|
||||||
|
compiling err.c...
|
||||||
|
compiling netdb.c...
|
||||||
|
compiling api_lib.c...
|
||||||
|
compiling if_api.c...
|
||||||
|
compiling netifapi.c...
|
||||||
|
compiling netbuf.c...
|
||||||
|
compiling api_msg.c...
|
||||||
|
compiling altcp.c...
|
||||||
|
compiling tcpip.c...
|
||||||
|
compiling sockets.c...
|
||||||
|
compiling altcp_alloc.c...
|
||||||
|
compiling altcp_tcp.c...
|
||||||
|
compiling def.c...
|
||||||
|
compiling dns.c...
|
||||||
|
compiling inet_chksum.c...
|
||||||
|
compiling init.c...
|
||||||
|
compiling raw.c...
|
||||||
|
compiling ip.c...
|
||||||
|
compiling stats.c...
|
||||||
|
compiling memp.c...
|
||||||
|
compiling mem.c...
|
||||||
|
compiling sys.c...
|
||||||
|
compiling netif.c...
|
||||||
|
compiling pbuf.c...
|
||||||
|
compiling tcp.c...
|
||||||
|
compiling udp.c...
|
||||||
|
compiling tcp_in.c...
|
||||||
|
compiling timeouts.c...
|
||||||
|
compiling tcp_out.c...
|
||||||
|
compiling autoip.c...
|
||||||
|
compiling dhcp.c...
|
||||||
|
compiling igmp.c...
|
||||||
|
compiling icmp.c...
|
||||||
|
compiling etharp.c...
|
||||||
|
compiling ip4_addr.c...
|
||||||
|
compiling ip4.c...
|
||||||
|
compiling ip4_frag.c...
|
||||||
|
compiling dhcp6.c...
|
||||||
|
compiling ethip6.c...
|
||||||
|
compiling icmp6.c...
|
||||||
|
compiling ble_mx_02.c...
|
||||||
|
compiling inet6.c...
|
||||||
|
compiling user_lib.c...
|
||||||
|
compiling ip6.c...
|
||||||
|
compiling ip6_addr.c...
|
||||||
|
compiling ip6_frag.c...
|
||||||
|
compiling mld6.c...
|
||||||
|
compiling nd6.c...
|
||||||
|
compiling leds.c...
|
||||||
|
compiling sys_arch.c...
|
||||||
|
compiling communication_protocol.c...
|
||||||
|
compiling mqtt.c...
|
||||||
|
compiling tcpserverc.c...
|
||||||
|
compiling tcpclient.c...
|
||||||
|
compiling ad7124.c...
|
||||||
|
compiling user_gpio.c...
|
||||||
|
compiling dac161s997.c...
|
||||||
|
compiling user_spi.c...
|
||||||
|
compiling ht1200m.c...
|
||||||
|
linking...
|
||||||
|
Program Size: Code=89400 RO-data=1472 RW-data=1540 ZI-data=62964
|
||||||
|
"semi-finished_product_testing\semi-finished_product_testing.axf" - 0 Error(s), 0 Warning(s).
|
||||||
|
|
||||||
|
<h2>Software Packages used:</h2>
|
||||||
|
|
||||||
|
Package Vendor: ARM
|
||||||
|
http://www.keil.com/pack/ARM.CMSIS.5.8.0.pack
|
||||||
|
ARM.CMSIS.5.8.0
|
||||||
|
CMSIS (Common Microcontroller Software Interface Standard)
|
||||||
|
* Component: CORE Version: 5.5.0
|
||||||
|
|
||||||
|
Package Vendor: Keil
|
||||||
|
https://www.keil.com/pack/Keil.STM32F4xx_DFP.2.17.1.pack
|
||||||
|
Keil.STM32F4xx_DFP.2.17.1
|
||||||
|
STMicroelectronics STM32F4 Series Device Support, Drivers and Examples
|
||||||
|
|
||||||
|
<h2>Collection of Component include folders:</h2>
|
||||||
|
.\RTE\_semi-finished_product_testing
|
||||||
|
C:\Users\Administrator\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include
|
||||||
|
C:\Users\Administrator\AppData\Local\Arm\Packs\Keil\STM32F4xx_DFP\2.17.1\Drivers\CMSIS\Device\ST\STM32F4xx\Include
|
||||||
|
|
||||||
|
<h2>Collection of Component Files used:</h2>
|
||||||
|
|
||||||
|
* Component: ARM::CMSIS:CORE:5.5.0
|
||||||
|
Include file: CMSIS\Core\Include\tz_context.h
|
||||||
|
Build Time Elapsed: 00:00:08
|
||||||
|
</pre>
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Reference in New Issue