HAL_NVIC_EnableIRQ(DMA1_Stream4_IRQn); } else if (huart->Instance == USART2)//rover { static GPIO_InitTypeDef GPIOInitStruct __attribute__((section("IRAM2")));//MUST have "static" static DMA_HandleTypeDef hdma_rx __attribute__((section("IRAM2"))); __GPIOA_CLK_ENABLE()...
“ 在STM32的HAL驱动中MSP_Init()是做为回调,包含在PPP_Init()中的。”但是我用Cube 生成了基本...