bsp_fsmc_sram.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /* USER CODE BEGIN Header */
  2. /**
  3. ******************************************************************************
  4. * File Name : FSMC.h
  5. * Description : This file provides code for the configuration
  6. * of the FSMC peripheral.
  7. ******************************************************************************
  8. * @attention
  9. *
  10. * Copyright (c) 2024 STMicroelectronics.
  11. * All rights reserved.
  12. *
  13. * This software is licensed under terms that can be found in the LICENSE file
  14. * in the root directory of this software component.
  15. * If no LICENSE file comes with this software, it is provided AS-IS.
  16. *
  17. ******************************************************************************
  18. */
  19. /* USER CODE END Header */
  20. /* Define to prevent recursive inclusion -------------------------------------*/
  21. #ifndef BSP_FSMC_SRAM_H
  22. #define BSP_FSMC_SRAM_H
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif
  26. /* Includes ------------------------------------------------------------------*/
  27. #include "main.h"
  28. #define Bank1_SRAM3_ADDR ((uint32_t)(0x68000000))
  29. #define IS62WV51216_SIZE 0x100000 //512*16/2bits = 0x100000 £¬1M×Ö½Ú
  30. /* USER CODE BEGIN Includes */
  31. /* USER CODE END Includes */
  32. extern SRAM_HandleTypeDef hsram1;
  33. /* USER CODE BEGIN Private defines */
  34. /* USER CODE END Private defines */
  35. void MX_FSMC_SRAM_Init(void);
  36. void HAL_SRAM_MspInit(SRAM_HandleTypeDef* hsram);
  37. void HAL_SRAM_MspDeInit(SRAM_HandleTypeDef* hsram);
  38. uint8_t SRAM_Test(void);
  39. /* USER CODE BEGIN Prototypes */
  40. /* USER CODE END Prototypes */
  41. #ifdef __cplusplus
  42. }
  43. #endif
  44. #endif /*__FSMC_H */
  45. /**
  46. * @}
  47. */
  48. /**
  49. * @}
  50. */