This commit is contained in:
Fabien Poussin 2019-10-30 13:19:08 +01:00
Родитель b15b68c1c4
Коммит f6b1a12ecf
6 изменённых файлов: 34 добавлений и 18 удалений

Просмотреть файл

@ -31,6 +31,20 @@
#define HAL_USE_FSMC TRUE
#endif
/**
* @brief Enables the SDRAM subsystem.
*/
#if !defined(HAL_USE_SDRAM) || defined(__DOXYGEN__)
#define HAL_USE_SDRAM TRUE
#endif
/**
* @brief Enables the SRAM subsystem.
*/
#if !defined(HAL_USE_SRAM) || defined(__DOXYGEN__)
#define HAL_USE_SRAM FALSE
#endif
/**
* @brief Enables the NAND subsystem.
*/

Просмотреть файл

@ -23,7 +23,6 @@
#include "usbcfg.h"
#endif
#include "hal_fsmc_sdram.h"
#include "ili9341.h"
#include "hal_stm32_ltdc.h"
#include "hal_stm32_dma2d.h"
@ -557,7 +556,7 @@ int main(void) {
* Initialise FSMC for SDRAM.
*/
sdramInit();
sdramStart(&SDRAMD, &sdram_cfg);
sdramStart(&SDRAMD1, &sdram_cfg);
sdram_bulk_erase();
/*

Просмотреть файл

@ -19,29 +19,31 @@
*/
#define STM32_FSMC_USE_FSMC1 TRUE
#define STM32_FSMC_FSMC1_IRQ_PRIORITY 10
#define STM32_FSMC_DMA_CHN 0x03010201
/*
* FSMC NAND driver system settings.
*/
#define STM32_NAND_USE_NAND1 FALSE
#define STM32_NAND_USE_NAND2 FALSE
#define STM32_NAND_USE_NAND1 FALSE
#define STM32_NAND_USE_NAND2 FALSE
#define STM32_NAND_USE_EXT_INT FALSE
/*
* FSMC SDRAM driver system settings.
*/
#define STM32_USE_FSMC_SDRAM TRUE
#define STM32_SDRAM_USE_FSMC_SDRAM1 FALSE
#define STM32_SDRAM_USE_FSMC_SDRAM2 TRUE
#define STM32_NAND_DMA_STREAM STM32_DMA_STREAM_ID(2, 7)
#define STM32_NAND_DMA_PRIORITY 0
#define STM32_NAND_DMA_ERROR_HOOK(nandp) osalSysHalt("DMA failure")
/*
* FSMC SRAM driver system settings.
*/
#define STM32_USE_FSMC_SRAM FALSE
#define STM32_SRAM_USE_FSMC_SRAM1 FALSE
#define STM32_SRAM_USE_FSMC_SRAM2 FALSE
#define STM32_SRAM_USE_FSMC_SRAM3 FALSE
#define STM32_SRAM_USE_FSMC_SRAM4 FALSE
#define STM32_SRAM_USE_SRAM1 FALSE
#define STM32_SRAM_USE_SRAM2 FALSE
#define STM32_SRAM_USE_SRAM3 FALSE
#define STM32_SRAM_USE_SRAM4 FALSE
/*
* FSMC SDRAM driver system settings.
*/
#define STM32_SDRAM_USE_SDRAM1 FALSE
#define STM32_SDRAM_USE_SDRAM2 TRUE
/*
* LTDC driver system settings.

Просмотреть файл

@ -18,7 +18,7 @@
*/
/**
* @file hal_fsmc_sdram.h
* @file hal_sdram.h
* @brief SDRAM Driver subsystem low level driver header.
*
* @addtogroup SDRAM

Просмотреть файл

@ -18,7 +18,7 @@
*/
/**
* @file hal_fsmc_sdram.h
* @file hal_sdram.h
* @brief SDRAM Driver subsystem low level driver header.
*
* @addtogroup SDRAM

Просмотреть файл

@ -51,6 +51,7 @@
#if !defined(HAL_USE_NAND) || defined(__DOXYGEN__)
#define HAL_USE_NAND FALSE
#endif
/**
* @brief Enables the 1-wire subsystem.
*/