/** * @brief DMA2D MSP Initialization * This function configures the hardware resources used in this example * @param hdma2d: DMA2D handle pointer * @retval None */ voidHAL_DMA2D_MspInit(DMA2D_HandleTypeDef* hdma2d) { if(hdma2d->Instance==DMA2D) { /* USER CODE BEGIN DMA2D_MspInit 0 */
/* USER CODE END DMA2D_MspInit 0 */ /* Peripheral clock enable */ __HAL_RCC_DMA2D_CLK_ENABLE(); /* DMA2D interrupt Init */ HAL_NVIC_SetPriority(DMA2D_IRQn, 0, 0); HAL_NVIC_EnableIRQ(DMA2D_IRQn); /* USER CODE BEGIN DMA2D_MspInit 1 */
/* USER CODE END DMA2D_MspInit 1 */ }
}
/** * @brief DMA2D MSP De-Initialization * This function freeze the hardware resources used in this example * @param hdma2d: DMA2D handle pointer * @retval None */ voidHAL_DMA2D_MspDeInit(DMA2D_HandleTypeDef* hdma2d) { if(hdma2d->Instance==DMA2D) { /* USER CODE BEGIN DMA2D_MspDeInit 0 */
/* USER CODE END DMA2D_MspDeInit 0 */ /* Peripheral clock disable */ __HAL_RCC_DMA2D_CLK_DISABLE();
/* DMA2D interrupt DeInit */ HAL_NVIC_DisableIRQ(DMA2D_IRQn); /* USER CODE BEGIN DMA2D_MspDeInit 1 */