system_stm32f2xx.c 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542
  1. /**
  2. ******************************************************************************
  3. * @file system_stm32f2xx.c
  4. * @author MCD Application Team
  5. * @version V1.1.4
  6. * @date 22-September-2016
  7. * @brief CMSIS Cortex-M3 Device Peripheral Access Layer System Source File.
  8. * This file contains the system clock configuration for STM32F2xx devices,
  9. * and is generated by the clock configuration tool
  10. * "STM32f2xx_Clock_Configuration_V1.0.0.xls"
  11. *
  12. * 1. This file provides two functions and one global variable to be called from
  13. * user application:
  14. * - SystemInit(): Setups the system clock (System clock source, PLL Multiplier
  15. * and Divider factors, AHB/APBx prescalers and Flash settings),
  16. * depending on the configuration made in the clock xls tool.
  17. * This function is called at startup just after reset and
  18. * before branch to main program. This call is made inside
  19. * the "startup_stm32f2xx.s" file.
  20. *
  21. * - SystemCoreClock variable: Contains the core clock (HCLK), it can be used
  22. * by the user application to setup the SysTick
  23. * timer or configure other parameters.
  24. *
  25. * - SystemCoreClockUpdate(): Updates the variable SystemCoreClock and must
  26. * be called whenever the core clock is changed
  27. * during program execution.
  28. *
  29. * 2. After each device reset the HSI (16 MHz) is used as system clock source.
  30. * Then SystemInit() function is called, in "startup_stm32f2xx.s" file, to
  31. * configure the system clock before to branch to main program.
  32. *
  33. * 3. If the system clock source selected by user fails to startup, the SystemInit()
  34. * function will do nothing and HSI still used as system clock source. User can
  35. * add some code to deal with this issue inside the SetSysClock() function.
  36. *
  37. * 4. The default value of HSE crystal is set to 25MHz, refer to "HSE_VALUE" define
  38. * in "stm32f2xx.h" file. When HSE is used as system clock source, directly or
  39. * through PLL, and you are using different crystal you have to adapt the HSE
  40. * value to your own configuration.
  41. *
  42. * 5. This file configures the system clock as follows:
  43. *=============================================================================
  44. *=============================================================================
  45. * Supported STM32F2xx device revision | Rev B and Y
  46. *-----------------------------------------------------------------------------
  47. * System Clock source | PLL (HSE)
  48. *-----------------------------------------------------------------------------
  49. * SYSCLK(Hz) | 120000000
  50. *-----------------------------------------------------------------------------
  51. * HCLK(Hz) | 120000000
  52. *-----------------------------------------------------------------------------
  53. * AHB Prescaler | 1
  54. *-----------------------------------------------------------------------------
  55. * APB1 Prescaler | 4
  56. *-----------------------------------------------------------------------------
  57. * APB2 Prescaler | 2
  58. *-----------------------------------------------------------------------------
  59. * HSE Frequency(Hz) | 25000000
  60. *-----------------------------------------------------------------------------
  61. * PLL_M | 25
  62. *-----------------------------------------------------------------------------
  63. * PLL_N | 240
  64. *-----------------------------------------------------------------------------
  65. * PLL_P | 2
  66. *-----------------------------------------------------------------------------
  67. * PLL_Q | 5
  68. *-----------------------------------------------------------------------------
  69. * PLLI2S_N | NA
  70. *-----------------------------------------------------------------------------
  71. * PLLI2S_R | NA
  72. *-----------------------------------------------------------------------------
  73. * I2S input clock | NA
  74. *-----------------------------------------------------------------------------
  75. * VDD(V) | 3.3
  76. *-----------------------------------------------------------------------------
  77. * Flash Latency(WS) | 3
  78. *-----------------------------------------------------------------------------
  79. * Prefetch Buffer | ON
  80. *-----------------------------------------------------------------------------
  81. * Instruction cache | ON
  82. *-----------------------------------------------------------------------------
  83. * Data cache | ON
  84. *-----------------------------------------------------------------------------
  85. * Require 48MHz for USB OTG FS, | Enabled
  86. * SDIO and RNG clock |
  87. *-----------------------------------------------------------------------------
  88. *=============================================================================
  89. ******************************************************************************
  90. * @attention
  91. *
  92. * <h2><center>&copy; COPYRIGHT 2016 STMicroelectronics</center></h2>
  93. *
  94. * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
  95. * You may not use this file except in compliance with the License.
  96. * You may obtain a copy of the License at:
  97. *
  98. * http://www.st.com/software_license_agreement_liberty_v2
  99. *
  100. * Unless required by applicable law or agreed to in writing, software
  101. * distributed under the License is distributed on an "AS IS" BASIS,
  102. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  103. * See the License for the specific language governing permissions and
  104. * limitations under the License.
  105. *
  106. ******************************************************************************
  107. */
  108. /** @addtogroup CMSIS
  109. * @{
  110. */
  111. /** @addtogroup stm32f2xx_system
  112. * @{
  113. */
  114. /** @addtogroup STM32F2xx_System_Private_Includes
  115. * @{
  116. */
  117. #include "stm32f2xx.h"
  118. /**
  119. * @}
  120. */
  121. /** @addtogroup STM32F2xx_System_Private_TypesDefinitions
  122. * @{
  123. */
  124. /**
  125. * @}
  126. */
  127. /** @addtogroup STM32F2xx_System_Private_Defines
  128. * @{
  129. */
  130. /*!< Uncomment the following line if you need to use external SRAM mounted
  131. on STM322xG_EVAL board as data memory */
  132. /* #define DATA_IN_ExtSRAM */
  133. /*!< Uncomment the following line if you need to relocate your vector Table in
  134. Internal SRAM. */
  135. /* #define VECT_TAB_SRAM */
  136. #define VECT_TAB_OFFSET 0x00 /*!< Vector Table base offset field.
  137. This value must be a multiple of 0x200. */
  138. /* PLL_VCO = (HSE_VALUE or HSI_VALUE / PLL_M) * PLL_N */
  139. #define PLL_M 25
  140. #define PLL_N 240
  141. /* SYSCLK = PLL_VCO / PLL_P */
  142. #define PLL_P 2
  143. /* USB OTG FS, SDIO and RNG Clock = PLL_VCO / PLLQ */
  144. #define PLL_Q 5
  145. /**
  146. * @}
  147. */
  148. /** @addtogroup STM32F2xx_System_Private_Macros
  149. * @{
  150. */
  151. /**
  152. * @}
  153. */
  154. /** @addtogroup STM32F2xx_System_Private_Variables
  155. * @{
  156. */
  157. uint32_t SystemCoreClock = 120000000;
  158. __I uint8_t AHBPrescTable[16] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 6, 7, 8, 9};
  159. /**
  160. * @}
  161. */
  162. /** @addtogroup STM32F2xx_System_Private_FunctionPrototypes
  163. * @{
  164. */
  165. static void SetSysClock(void);
  166. #ifdef DATA_IN_ExtSRAM
  167. static void SystemInit_ExtMemCtl(void);
  168. #endif /* DATA_IN_ExtSRAM */
  169. /**
  170. * @}
  171. */
  172. /** @addtogroup STM32F2xx_System_Private_Functions
  173. * @{
  174. */
  175. /**
  176. * @brief Setup the microcontroller system
  177. * Initialize the Embedded Flash Interface, the PLL and update the
  178. * SystemFrequency variable.
  179. * @param None
  180. * @retval None
  181. */
  182. void SystemInit(void)
  183. {
  184. /* Reset the RCC clock configuration to the default reset state ------------*/
  185. /* Set HSION bit */
  186. RCC->CR |= (uint32_t)0x00000001;
  187. /* Reset CFGR register */
  188. RCC->CFGR = 0x00000000;
  189. /* Reset HSEON, CSSON and PLLON bits */
  190. RCC->CR &= (uint32_t)0xFEF6FFFF;
  191. /* Reset PLLCFGR register */
  192. RCC->PLLCFGR = 0x24003010;
  193. /* Reset HSEBYP bit */
  194. RCC->CR &= (uint32_t)0xFFFBFFFF;
  195. /* Disable all interrupts */
  196. RCC->CIR = 0x00000000;
  197. #ifdef DATA_IN_ExtSRAM
  198. SystemInit_ExtMemCtl();
  199. #endif /* DATA_IN_ExtSRAM */
  200. /* Configure the System clock source, PLL Multiplier and Divider factors,
  201. AHB/APBx prescalers and Flash settings ----------------------------------*/
  202. SetSysClock();
  203. /* Configure the Vector Table location add offset address ------------------*/
  204. #ifdef VECT_TAB_SRAM
  205. SCB->VTOR = SRAM_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal SRAM */
  206. #else
  207. SCB->VTOR = FLASH_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal FLASH */
  208. #endif
  209. }
  210. /**
  211. * @brief Update SystemCoreClock variable according to Clock Register Values.
  212. * The SystemCoreClock variable contains the core clock (HCLK), it can
  213. * be used by the user application to setup the SysTick timer or configure
  214. * other parameters.
  215. *
  216. * @note Each time the core clock (HCLK) changes, this function must be called
  217. * to update SystemCoreClock variable value. Otherwise, any configuration
  218. * based on this variable will be incorrect.
  219. *
  220. * @note - The system frequency computed by this function is not the real
  221. * frequency in the chip. It is calculated based on the predefined
  222. * constant and the selected clock source:
  223. *
  224. * - If SYSCLK source is HSI, SystemCoreClock will contain the HSI_VALUE(*)
  225. *
  226. * - If SYSCLK source is HSE, SystemCoreClock will contain the HSE_VALUE(**)
  227. *
  228. * - If SYSCLK source is PLL, SystemCoreClock will contain the HSE_VALUE(**)
  229. * or HSI_VALUE(*) multiplied/divided by the PLL factors.
  230. *
  231. * (*) HSI_VALUE is a constant defined in stm32f2xx.h file (default value
  232. * 16 MHz) but the real value may vary depending on the variations
  233. * in voltage and temperature.
  234. *
  235. * (**) HSE_VALUE is a constant defined in stm32f2xx.h file (default value
  236. * 25 MHz), user has to ensure that HSE_VALUE is same as the real
  237. * frequency of the crystal used. Otherwise, this function may
  238. * have wrong result.
  239. *
  240. * - The result of this function could be not correct when using fractional
  241. * value for HSE crystal.
  242. *
  243. * @param None
  244. * @retval None
  245. */
  246. void SystemCoreClockUpdate(void)
  247. {
  248. uint32_t tmp = 0, pllvco = 0, pllp = 2, pllsource = 0, pllm = 2;
  249. /* Get SYSCLK source -------------------------------------------------------*/
  250. tmp = RCC->CFGR & RCC_CFGR_SWS;
  251. switch (tmp)
  252. {
  253. case 0x00: /* HSI used as system clock source */
  254. SystemCoreClock = HSI_VALUE;
  255. break;
  256. case 0x04: /* HSE used as system clock source */
  257. SystemCoreClock = HSE_VALUE;
  258. break;
  259. case 0x08: /* PLL used as system clock source */
  260. /* PLL_VCO = (HSE_VALUE or HSI_VALUE / PLL_M) * PLL_N
  261. SYSCLK = PLL_VCO / PLL_P
  262. */
  263. pllsource = (RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) >> 22;
  264. pllm = RCC->PLLCFGR & RCC_PLLCFGR_PLLM;
  265. if (pllsource != 0)
  266. {
  267. /* HSE used as PLL clock source */
  268. pllvco = (HSE_VALUE / pllm) * ((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> 6);
  269. }
  270. else
  271. {
  272. /* HSI used as PLL clock source */
  273. pllvco = (HSI_VALUE / pllm) * ((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> 6);
  274. }
  275. pllp = (((RCC->PLLCFGR & RCC_PLLCFGR_PLLP) >>16) + 1 ) *2;
  276. SystemCoreClock = pllvco/pllp;
  277. break;
  278. default:
  279. SystemCoreClock = HSI_VALUE;
  280. break;
  281. }
  282. /* Compute HCLK frequency --------------------------------------------------*/
  283. /* Get HCLK prescaler */
  284. tmp = AHBPrescTable[((RCC->CFGR & RCC_CFGR_HPRE) >> 4)];
  285. /* HCLK frequency */
  286. SystemCoreClock >>= tmp;
  287. }
  288. /**
  289. * @brief Configures the System clock source, PLL Multiplier and Divider factors,
  290. * AHB/APBx prescalers and Flash settings
  291. * @Note This function should be called only once the RCC clock configuration
  292. * is reset to the default reset state (done in SystemInit() function).
  293. * @param None
  294. * @retval None
  295. */
  296. static void SetSysClock(void)
  297. {
  298. /******************************************************************************/
  299. /* PLL (clocked by HSE) used as System clock source */
  300. /******************************************************************************/
  301. __IO uint32_t StartUpCounter = 0, HSEStatus = 0;
  302. /* Enable HSE */
  303. RCC->CR |= ((uint32_t)RCC_CR_HSEON);
  304. /* Wait till HSE is ready and if Time out is reached exit */
  305. do
  306. {
  307. HSEStatus = RCC->CR & RCC_CR_HSERDY;
  308. StartUpCounter++;
  309. } while((HSEStatus == 0) && (StartUpCounter != HSE_STARTUP_TIMEOUT));
  310. if ((RCC->CR & RCC_CR_HSERDY) != RESET)
  311. {
  312. HSEStatus = (uint32_t)0x01;
  313. }
  314. else
  315. {
  316. HSEStatus = (uint32_t)0x00;
  317. }
  318. if (HSEStatus == (uint32_t)0x01)
  319. {
  320. /* HCLK = SYSCLK / 1*/
  321. RCC->CFGR |= RCC_CFGR_HPRE_DIV1;
  322. /* PCLK2 = HCLK / 2*/
  323. RCC->CFGR |= RCC_CFGR_PPRE2_DIV2;
  324. /* PCLK1 = HCLK / 4*/
  325. RCC->CFGR |= RCC_CFGR_PPRE1_DIV4;
  326. /* Configure the main PLL */
  327. RCC->PLLCFGR = PLL_M | (PLL_N << 6) | (((PLL_P >> 1) -1) << 16) |
  328. (RCC_PLLCFGR_PLLSRC_HSE) | (PLL_Q << 24);
  329. /* Enable the main PLL */
  330. RCC->CR |= RCC_CR_PLLON;
  331. /* Wait till the main PLL is ready */
  332. while((RCC->CR & RCC_CR_PLLRDY) == 0)
  333. {
  334. }
  335. /* Configure Flash prefetch, Instruction cache, Data cache and wait state */
  336. FLASH->ACR = FLASH_ACR_PRFTEN | FLASH_ACR_ICEN | FLASH_ACR_DCEN | FLASH_ACR_LATENCY_3WS;
  337. /* Select the main PLL as system clock source */
  338. RCC->CFGR &= (uint32_t)((uint32_t)~(RCC_CFGR_SW));
  339. RCC->CFGR |= RCC_CFGR_SW_PLL;
  340. /* Wait till the main PLL is used as system clock source */
  341. while ((RCC->CFGR & (uint32_t)RCC_CFGR_SWS ) != RCC_CFGR_SWS_PLL);
  342. {
  343. }
  344. }
  345. else
  346. { /* If HSE fails to start-up, the application will have wrong clock
  347. configuration. User can add here some code to deal with this error */
  348. }
  349. }
  350. /**
  351. * @brief Setup the external memory controller. Called in startup_stm32f2xx.s
  352. * before jump to __main
  353. * @param None
  354. * @retval None
  355. */
  356. #ifdef DATA_IN_ExtSRAM
  357. /**
  358. * @brief Setup the external memory controller.
  359. * Called in startup_stm32f2xx.s before jump to main.
  360. * This function configures the external SRAM mounted on STM322xG_EVAL board
  361. * This SRAM will be used as program data memory (including heap and stack).
  362. * @param None
  363. * @retval None
  364. */
  365. void SystemInit_ExtMemCtl(void)
  366. {
  367. /*-- GPIOs Configuration -----------------------------------------------------*/
  368. /*
  369. +-------------------+--------------------+------------------+------------------+
  370. + SRAM pins assignment +
  371. +-------------------+--------------------+------------------+------------------+
  372. | PD0 <-> FSMC_D2 | PE0 <-> FSMC_NBL0 | PF0 <-> FSMC_A0 | PG0 <-> FSMC_A10 |
  373. | PD1 <-> FSMC_D3 | PE1 <-> FSMC_NBL1 | PF1 <-> FSMC_A1 | PG1 <-> FSMC_A11 |
  374. | PD4 <-> FSMC_NOE | PE7 <-> FSMC_D4 | PF2 <-> FSMC_A2 | PG2 <-> FSMC_A12 |
  375. | PD5 <-> FSMC_NWE | PE8 <-> FSMC_D5 | PF3 <-> FSMC_A3 | PG3 <-> FSMC_A13 |
  376. | PD8 <-> FSMC_D13 | PE9 <-> FSMC_D6 | PF4 <-> FSMC_A4 | PG4 <-> FSMC_A14 |
  377. | PD9 <-> FSMC_D14 | PE10 <-> FSMC_D7 | PF5 <-> FSMC_A5 | PG5 <-> FSMC_A15 |
  378. | PD10 <-> FSMC_D15 | PE11 <-> FSMC_D8 | PF12 <-> FSMC_A6 | PG9 <-> FSMC_NE2 |
  379. | PD11 <-> FSMC_A16 | PE12 <-> FSMC_D9 | PF13 <-> FSMC_A7 |------------------+
  380. | PD12 <-> FSMC_A17 | PE13 <-> FSMC_D10 | PF14 <-> FSMC_A8 |
  381. | PD14 <-> FSMC_D0 | PE14 <-> FSMC_D11 | PF15 <-> FSMC_A9 |
  382. | PD15 <-> FSMC_D1 | PE15 <-> FSMC_D12 |------------------+
  383. +-------------------+--------------------+
  384. */
  385. /* Enable GPIOD, GPIOE, GPIOF and GPIOG interface clock */
  386. RCC->AHB1ENR = 0x00000078;
  387. /* Connect PDx pins to FSMC Alternate function */
  388. GPIOD->AFR[0] = 0x00cc00cc;
  389. GPIOD->AFR[1] = 0xcc0ccccc;
  390. /* Configure PDx pins in Alternate function mode */
  391. GPIOD->MODER = 0xa2aa0a0a;
  392. /* Configure PDx pins speed to 100 MHz */
  393. GPIOD->OSPEEDR = 0xf3ff0f0f;
  394. /* Configure PDx pins Output type to push-pull */
  395. GPIOD->OTYPER = 0x00000000;
  396. /* No pull-up, pull-down for PDx pins */
  397. GPIOD->PUPDR = 0x00000000;
  398. /* Connect PEx pins to FSMC Alternate function */
  399. GPIOE->AFR[0] = 0xc00000cc;
  400. GPIOE->AFR[1] = 0xcccccccc;
  401. /* Configure PEx pins in Alternate function mode */
  402. GPIOE->MODER = 0xaaaa800a;
  403. /* Configure PEx pins speed to 100 MHz */
  404. GPIOE->OSPEEDR = 0xffffc00f;
  405. /* Configure PEx pins Output type to push-pull */
  406. GPIOE->OTYPER = 0x00000000;
  407. /* No pull-up, pull-down for PEx pins */
  408. GPIOE->PUPDR = 0x00000000;
  409. /* Connect PFx pins to FSMC Alternate function */
  410. GPIOF->AFR[0] = 0x00cccccc;
  411. GPIOF->AFR[1] = 0xcccc0000;
  412. /* Configure PFx pins in Alternate function mode */
  413. GPIOF->MODER = 0xaa000aaa;
  414. /* Configure PFx pins speed to 100 MHz */
  415. GPIOF->OSPEEDR = 0xff000fff;
  416. /* Configure PFx pins Output type to push-pull */
  417. GPIOF->OTYPER = 0x00000000;
  418. /* No pull-up, pull-down for PFx pins */
  419. GPIOF->PUPDR = 0x00000000;
  420. /* Connect PGx pins to FSMC Alternate function */
  421. GPIOG->AFR[0] = 0x00cccccc;
  422. GPIOG->AFR[1] = 0x000000c0;
  423. /* Configure PGx pins in Alternate function mode */
  424. GPIOG->MODER = 0x00080aaa;
  425. /* Configure PGx pins speed to 100 MHz */
  426. GPIOG->OSPEEDR = 0x000c0fff;
  427. /* Configure PGx pins Output type to push-pull */
  428. GPIOG->OTYPER = 0x00000000;
  429. /* No pull-up, pull-down for PGx pins */
  430. GPIOG->PUPDR = 0x00000000;
  431. /*-- FSMC Configuration ------------------------------------------------------*/
  432. /* Enable the FSMC interface clock */
  433. RCC->AHB3ENR = 0x00000001;
  434. /* Configure and enable Bank1_SRAM2 */
  435. FSMC_Bank1->BTCR[2] = 0x00001015;
  436. FSMC_Bank1->BTCR[3] = 0x00010400;
  437. FSMC_Bank1E->BWTR[2] = 0x0fffffff;
  438. /*
  439. Bank1_SRAM2 is configured as follow:
  440. p.FSMC_AddressSetupTime = 0;
  441. p.FSMC_AddressHoldTime = 0;
  442. p.FSMC_DataSetupTime = 4;
  443. p.FSMC_BusTurnAroundDuration = 1;
  444. p.FSMC_CLKDivision = 0;
  445. p.FSMC_DataLatency = 0;
  446. p.FSMC_AccessMode = FSMC_AccessMode_A;
  447. FSMC_NORSRAMInitStructure.FSMC_Bank = FSMC_Bank1_NORSRAM2;
  448. FSMC_NORSRAMInitStructure.FSMC_DataAddressMux = FSMC_DataAddressMux_Disable;
  449. FSMC_NORSRAMInitStructure.FSMC_MemoryType = FSMC_MemoryType_PSRAM;
  450. FSMC_NORSRAMInitStructure.FSMC_MemoryDataWidth = FSMC_MemoryDataWidth_16b;
  451. FSMC_NORSRAMInitStructure.FSMC_BurstAccessMode = FSMC_BurstAccessMode_Disable;
  452. FSMC_NORSRAMInitStructure.FSMC_AsynchronousWait = FSMC_AsynchronousWait_Disable;
  453. FSMC_NORSRAMInitStructure.FSMC_WaitSignalPolarity = FSMC_WaitSignalPolarity_Low;
  454. FSMC_NORSRAMInitStructure.FSMC_WrapMode = FSMC_WrapMode_Disable;
  455. FSMC_NORSRAMInitStructure.FSMC_WaitSignalActive = FSMC_WaitSignalActive_BeforeWaitState;
  456. FSMC_NORSRAMInitStructure.FSMC_WriteOperation = FSMC_WriteOperation_Enable;
  457. FSMC_NORSRAMInitStructure.FSMC_WaitSignal = FSMC_WaitSignal_Disable;
  458. FSMC_NORSRAMInitStructure.FSMC_ExtendedMode = FSMC_ExtendedMode_Disable;
  459. FSMC_NORSRAMInitStructure.FSMC_WriteBurst = FSMC_WriteBurst_Disable;
  460. FSMC_NORSRAMInitStructure.FSMC_ReadWriteTimingStruct = &p;
  461. FSMC_NORSRAMInitStructure.FSMC_WriteTimingStruct = &p;
  462. */
  463. }
  464. #endif /* DATA_IN_ExtSRAM */
  465. /**
  466. * @}
  467. */
  468. /**
  469. * @}
  470. */
  471. /**
  472. * @}
  473. */
  474. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/