资源简介
使用cubemx来配置的SDram工程, 芯片stm32f429, 可以一键来配置sdram工程, 适配的是正点原子f429带32Msdram的核心板
代码片段和文件信息
/**
******************************************************************************
* File Name : DMA2D.c
* Description : This file provides code for the configuration
* of the DMA2D instances.
******************************************************************************
* @attention
*
* © Copyright (c) 2020 STMicroelectronics.
* All rights reserved.
*
* This software component is licensed by ST under BSD 3-Clause license
* the “License“; You may not use this file except in compliance with the
* License. You may obtain a copy of the License at:
* opensource.org/licenses/BSD-3-Clause
*
******************************************************************************
*/
/* Includes ------------------------------------------------------------------*/
#include “dma2d.h“
/* USER CODE BEGIN 0 */
/* USER CODE END 0 */
DMA2D_HandleTypeDef hdma2d;
/* DMA2D init function */
void MX_DMA2D_Init(void)
{
hdma2d.Instance = DMA2D;
hdma2d.Init.Mode = DMA2D_M2M;
hdma2d.Init.ColorMode = DMA2D_OUTPUT_ARGB8888;
hdma2d.Init.OutputOffset = 0;
hdma2d.layerCfg[1].InputOffset = 0;
hdma2d.layerCfg[1].InputColorMode = DMA2D_INPUT_ARGB8888;
hdma2d.layerCfg[1].AlphaMode = DMA2D_NO_MODIF_ALPHA;
hdma2d.layerCfg[1].InputAlpha = 0;
if (HAL_DMA2D_Init(&hdma2d) != HAL_OK)
{
Error_Handler();
}
if (HAL_DMA2D_Configlayer(&hdma2d 1) != HAL_OK)
{
Error_Handler();
}
}
void HAL_DMA2D_MspInit(DMA2D_HandleTypeDef* dma2dHandle)
{
if(dma2dHandle->Instance==DMA2D)
{
/* USER CODE BEGIN DMA2D_MspInit 0 */
/* USER CODE END DMA2D_MspInit 0 */
/* DMA2D clock enable */
__HAL_RCC_DMA2D_CLK_ENABLE();
/* USER CODE BEGIN DMA2D_MspInit 1 */
/* USER CODE END DMA2D_MspInit 1 */
}
}
void HAL_DMA2D_MspDeInit(DMA2D_HandleTypeDef* dma2dHandle)
{
if(dma2dHandle->Instance==DMA2D)
{
/* USER CODE BEGIN DMA2D_MspDeInit 0 */
/* USER CODE END DMA2D_MspDeInit 0 */
/* Peripheral clock disable */
__HAL_RCC_DMA2D_CLK_DISABLE();
/* USER CODE BEGIN DMA2D_MspDeInit 1 */
/* USER CODE END DMA2D_MspDeInit 1 */
}
}
/* USER CODE BEGIN 1 */
/* USER CODE END 1 */
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 11855 2020-12-09 23:37 stm32_f429_sdram\.mxproject
目录 0 2020-12-10 00:00 stm32_f429_sdram\Core\
目录 0 2020-12-10 00:00 stm32_f429_sdram\Core\Inc\
文件 1550 2020-12-09 23:37 stm32_f429_sdram\Core\Inc\dma2d.h
文件 1896 2020-12-09 23:49 stm32_f429_sdram\Core\Inc\fmc.h
文件 1508 2020-12-09 23:37 stm32_f429_sdram\Core\Inc\gpio.h
文件 1542 2020-12-09 23:37 stm32_f429_sdram\Core\Inc\ltdc.h
文件 2293 2020-12-09 23:37 stm32_f429_sdram\Core\Inc\main.h
文件 20041 2020-12-09 23:37 stm32_f429_sdram\Core\Inc\stm32f4xx_hal_conf.h
文件 2106 2020-12-09 23:37 stm32_f429_sdram\Core\Inc\stm32f4xx_it.h
文件 1555 2020-12-09 23:37 stm32_f429_sdram\Core\Inc\usart.h
目录 0 2020-12-10 00:00 stm32_f429_sdram\Core\Src\
文件 2405 2020-12-09 23:37 stm32_f429_sdram\Core\Src\dma2d.c
文件 11981 2020-12-09 23:49 stm32_f429_sdram\Core\Src\fmc.c
文件 2304 2020-12-09 23:37 stm32_f429_sdram\Core\Src\gpio.c
文件 10032 2020-12-09 23:37 stm32_f429_sdram\Core\Src\ltdc.c
文件 6759 2020-12-10 00:30 stm32_f429_sdram\Core\Src\main.c
文件 2430 2020-12-09 23:37 stm32_f429_sdram\Core\Src\stm32f4xx_hal_msp.c
文件 5565 2020-12-09 23:37 stm32_f429_sdram\Core\Src\stm32f4xx_it.c
文件 26457 2020-11-20 17:08 stm32_f429_sdram\Core\Src\system_stm32f4xx.c
文件 3126 2020-12-09 23:37 stm32_f429_sdram\Core\Src\usart.c
目录 0 2020-12-10 00:01 stm32_f429_sdram\Drivers\
目录 0 2020-12-10 00:01 stm32_f429_sdram\Drivers\CMSIS\
目录 0 2020-12-10 00:00 stm32_f429_sdram\Drivers\CMSIS\Core\
目录 0 2020-12-10 00:00 stm32_f429_sdram\Drivers\CMSIS\Core\Include\
文件 28208 2020-11-20 17:08 stm32_f429_sdram\Drivers\CMSIS\Core\Include\cmsis_armcc.h
文件 56497 2020-11-20 17:08 stm32_f429_sdram\Drivers\CMSIS\Core\Include\cmsis_armclang.h
文件 9014 2020-11-20 17:08 stm32_f429_sdram\Drivers\CMSIS\Core\Include\cmsis_compiler.h
文件 62344 2020-11-20 17:08 stm32_f429_sdram\Drivers\CMSIS\Core\Include\cmsis_gcc.h
文件 28414 2020-11-20 17:08 stm32_f429_sdram\Drivers\CMSIS\Core\Include\cmsis_iccarm.h
文件 1716 2020-11-20 17:08 stm32_f429_sdram\Drivers\CMSIS\Core\Include\cmsis_version.h
............此处省略1279个文件信息
相关资源
- stm32f030 051青风全套教程和程序例程
- 基于STM32的车牌识别手持移动终端的设
- 基于STM32L151的物联网LORA程序
- STM32上实现12864液晶二维码的显示,
- stm32f0官方标准库
- 神舟3号STM32 DH11温度湿度实验
- STM32 QN8027 的驱动代码
- 神舟王STM32F407IGT用户手册
- STM32F407 例程
- STM32F0中文参考手册Chinese
- uCOS-II官方源代码
- STM32F429标准库串口2通信例程程
- STM32F429标准库串口通信历程
- STM32F103C8T6 USB HID下位机程序/MPU6050姿态
- STM32F767移植W5500官网程序
- spi master.zip94106
- 零死角玩转STM32—F429.pdf
- HAL库+CubeMX实现Stm32串口不定长接收
- Openmv与STM32通信.zip
- STM32F103C8T6标准库部分例程点灯、串口
- STM32 HAL库函数说明手册
- (绝对官方 !绝对官方!可以直接打
- STM32CubeIDE移植华为LiteOS.zip
- STM32Cube_FW_F4_V1.5.0.zip
- STM32F405RGT6中文手册
- STM32F407+ESP8266 阿里云Iot.zip
- 电子-MINI板STM32贪吃蛇.rar
- 基于STM32407 SX1262驱动
- STM32CubeMX通过ESP8266 AT指令MQTT上阿里云
- STM32 简单控制BGT24MTR11
评论
共有 条评论