标签:style blog io ar color os 使用 sp for
1 I2C3_ER_IRQHandler 2 OTG_HS_EP1_OUT_IRQHandler 3 OTG_HS_EP1_IN_IRQHandler 4 OTG_HS_WKUP_IRQHandler 5 OTG_HS_IRQHandler 6 DCMI_IRQHandler 7 HASH_RNG_IRQHandler 8 FPU_IRQHandler 9 B . 10 ENDP 11 ALIGN 12 ;******************************************************************************* 13 ;UserStack and Heap initialization 14 ;*******************************************************************************
1 /** 2 * @brief This function handles UART interrupt request. 3 * @param None 4 * @retval None 5 * @Note This function is redefined in "main.h" and related to DMA stream 6 * used for USART data transmission 7 */ 8 void USART1_IRQHandler(void) 9 { 10 HAL_UART_IRQHandler(&huart); 11 }
1 /** 2 * @brief Rx Transfer completed callback 3 * @param UartHandle: UART handle 4 * @note This example shows a simple way to report end of IT Rx transfer, and 5 * you can add your own implementation. 6 * @retval None 7 */ 8 void HAL_UART_RxCpltCallback(UART_HandleTypeDef *hsart) 9 { 10 uint8_t c =‘a‘; 11 /* Set transmission flag: trasfer complete*/ 12 UartReady= SET; 13 // HAL_USART_Transmit_IT(husart, &c, 1); 14 /* Turn LED4 on: Transfer in reception process is correct */ 15 HAL_GPIO_TogglePin(GPIOC, GPIO_PIN_2); 16 }
症状表现如下:
标签:style blog io ar color os 使用 sp for
原文地址:http://www.cnblogs.com/sprone/p/4108481.html