Lines Matching refs:FSMC_NORSRAMInitStruct
155 void FSMC_NORSRAMInit(FSMC_NORSRAMInitTypeDef* FSMC_NORSRAMInitStruct) in FSMC_NORSRAMInit() argument
158 assert_param(IS_FSMC_NORSRAM_BANK(FSMC_NORSRAMInitStruct->FSMC_Bank)); in FSMC_NORSRAMInit()
159 assert_param(IS_FSMC_MUX(FSMC_NORSRAMInitStruct->FSMC_DataAddressMux)); in FSMC_NORSRAMInit()
160 assert_param(IS_FSMC_MEMORY(FSMC_NORSRAMInitStruct->FSMC_MemoryType)); in FSMC_NORSRAMInit()
161 assert_param(IS_FSMC_MEMORY_WIDTH(FSMC_NORSRAMInitStruct->FSMC_MemoryDataWidth)); in FSMC_NORSRAMInit()
162 assert_param(IS_FSMC_BURSTMODE(FSMC_NORSRAMInitStruct->FSMC_BurstAccessMode)); in FSMC_NORSRAMInit()
163 assert_param(IS_FSMC_ASYNWAIT(FSMC_NORSRAMInitStruct->FSMC_AsynchronousWait)); in FSMC_NORSRAMInit()
164 assert_param(IS_FSMC_WAIT_POLARITY(FSMC_NORSRAMInitStruct->FSMC_WaitSignalPolarity)); in FSMC_NORSRAMInit()
165 assert_param(IS_FSMC_WRAP_MODE(FSMC_NORSRAMInitStruct->FSMC_WrapMode)); in FSMC_NORSRAMInit()
166 assert_param(IS_FSMC_WAIT_SIGNAL_ACTIVE(FSMC_NORSRAMInitStruct->FSMC_WaitSignalActive)); in FSMC_NORSRAMInit()
167 assert_param(IS_FSMC_WRITE_OPERATION(FSMC_NORSRAMInitStruct->FSMC_WriteOperation)); in FSMC_NORSRAMInit()
168 assert_param(IS_FSMC_WAITE_SIGNAL(FSMC_NORSRAMInitStruct->FSMC_WaitSignal)); in FSMC_NORSRAMInit()
169 assert_param(IS_FSMC_EXTENDED_MODE(FSMC_NORSRAMInitStruct->FSMC_ExtendedMode)); in FSMC_NORSRAMInit()
170 assert_param(IS_FSMC_WRITE_BURST(FSMC_NORSRAMInitStruct->FSMC_WriteBurst)); in FSMC_NORSRAMInit()
171 …assert_param(IS_FSMC_ADDRESS_SETUP_TIME(FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_A… in FSMC_NORSRAMInit()
172 …assert_param(IS_FSMC_ADDRESS_HOLD_TIME(FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_Ad… in FSMC_NORSRAMInit()
173 …assert_param(IS_FSMC_DATASETUP_TIME(FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_DataS… in FSMC_NORSRAMInit()
174 …assert_param(IS_FSMC_TURNAROUND_TIME(FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_BusT… in FSMC_NORSRAMInit()
175 …assert_param(IS_FSMC_CLK_DIV(FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_CLKDivision)… in FSMC_NORSRAMInit()
176 …assert_param(IS_FSMC_DATA_LATENCY(FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_DataLat… in FSMC_NORSRAMInit()
177 …assert_param(IS_FSMC_ACCESS_MODE(FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_AccessMo… in FSMC_NORSRAMInit()
180 FSMC_Bank1->BTCR[FSMC_NORSRAMInitStruct->FSMC_Bank] = in FSMC_NORSRAMInit()
181 (uint32_t)FSMC_NORSRAMInitStruct->FSMC_DataAddressMux | in FSMC_NORSRAMInit()
182 FSMC_NORSRAMInitStruct->FSMC_MemoryType | in FSMC_NORSRAMInit()
183 FSMC_NORSRAMInitStruct->FSMC_MemoryDataWidth | in FSMC_NORSRAMInit()
184 FSMC_NORSRAMInitStruct->FSMC_BurstAccessMode | in FSMC_NORSRAMInit()
185 FSMC_NORSRAMInitStruct->FSMC_AsynchronousWait | in FSMC_NORSRAMInit()
186 FSMC_NORSRAMInitStruct->FSMC_WaitSignalPolarity | in FSMC_NORSRAMInit()
187 FSMC_NORSRAMInitStruct->FSMC_WrapMode | in FSMC_NORSRAMInit()
188 FSMC_NORSRAMInitStruct->FSMC_WaitSignalActive | in FSMC_NORSRAMInit()
189 FSMC_NORSRAMInitStruct->FSMC_WriteOperation | in FSMC_NORSRAMInit()
190 FSMC_NORSRAMInitStruct->FSMC_WaitSignal | in FSMC_NORSRAMInit()
191 FSMC_NORSRAMInitStruct->FSMC_ExtendedMode | in FSMC_NORSRAMInit()
192 FSMC_NORSRAMInitStruct->FSMC_WriteBurst; in FSMC_NORSRAMInit()
194 if(FSMC_NORSRAMInitStruct->FSMC_MemoryType == FSMC_MemoryType_NOR) in FSMC_NORSRAMInit()
196 FSMC_Bank1->BTCR[FSMC_NORSRAMInitStruct->FSMC_Bank] |= (uint32_t)BCR_FACCEN_Set; in FSMC_NORSRAMInit()
200 FSMC_Bank1->BTCR[FSMC_NORSRAMInitStruct->FSMC_Bank+1] = in FSMC_NORSRAMInit()
201 (uint32_t)FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_AddressSetupTime | in FSMC_NORSRAMInit()
202 (FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_AddressHoldTime << 4) | in FSMC_NORSRAMInit()
203 (FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_DataSetupTime << 8) | in FSMC_NORSRAMInit()
204 (FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_BusTurnAroundDuration << 16) | in FSMC_NORSRAMInit()
205 (FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_CLKDivision << 20) | in FSMC_NORSRAMInit()
206 (FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_DataLatency << 24) | in FSMC_NORSRAMInit()
207 FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_AccessMode; in FSMC_NORSRAMInit()
211 if(FSMC_NORSRAMInitStruct->FSMC_ExtendedMode == FSMC_ExtendedMode_Enable) in FSMC_NORSRAMInit()
213 …assert_param(IS_FSMC_ADDRESS_SETUP_TIME(FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_Addre… in FSMC_NORSRAMInit()
214 …assert_param(IS_FSMC_ADDRESS_HOLD_TIME(FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_Addres… in FSMC_NORSRAMInit()
215 …assert_param(IS_FSMC_DATASETUP_TIME(FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_DataSetup… in FSMC_NORSRAMInit()
216 assert_param(IS_FSMC_CLK_DIV(FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_CLKDivision)); in FSMC_NORSRAMInit()
217 …assert_param(IS_FSMC_DATA_LATENCY(FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_DataLatency… in FSMC_NORSRAMInit()
218 …assert_param(IS_FSMC_ACCESS_MODE(FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_AccessMode)); in FSMC_NORSRAMInit()
219 FSMC_Bank1E->BWTR[FSMC_NORSRAMInitStruct->FSMC_Bank] = in FSMC_NORSRAMInit()
220 (uint32_t)FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_AddressSetupTime | in FSMC_NORSRAMInit()
221 (FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_AddressHoldTime << 4 )| in FSMC_NORSRAMInit()
222 (FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_DataSetupTime << 8) | in FSMC_NORSRAMInit()
223 (FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_CLKDivision << 20) | in FSMC_NORSRAMInit()
224 (FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_DataLatency << 24) | in FSMC_NORSRAMInit()
225 FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_AccessMode; in FSMC_NORSRAMInit()
229 FSMC_Bank1E->BWTR[FSMC_NORSRAMInitStruct->FSMC_Bank] = 0x0FFFFFFF; in FSMC_NORSRAMInit()
359 void FSMC_NORSRAMStructInit(FSMC_NORSRAMInitTypeDef* FSMC_NORSRAMInitStruct) in FSMC_NORSRAMStructInit() argument
362 FSMC_NORSRAMInitStruct->FSMC_Bank = FSMC_Bank1_NORSRAM1; in FSMC_NORSRAMStructInit()
363 FSMC_NORSRAMInitStruct->FSMC_DataAddressMux = FSMC_DataAddressMux_Enable; in FSMC_NORSRAMStructInit()
364 FSMC_NORSRAMInitStruct->FSMC_MemoryType = FSMC_MemoryType_SRAM; in FSMC_NORSRAMStructInit()
365 FSMC_NORSRAMInitStruct->FSMC_MemoryDataWidth = FSMC_MemoryDataWidth_8b; in FSMC_NORSRAMStructInit()
366 FSMC_NORSRAMInitStruct->FSMC_BurstAccessMode = FSMC_BurstAccessMode_Disable; in FSMC_NORSRAMStructInit()
367 FSMC_NORSRAMInitStruct->FSMC_AsynchronousWait = FSMC_AsynchronousWait_Disable; in FSMC_NORSRAMStructInit()
368 FSMC_NORSRAMInitStruct->FSMC_WaitSignalPolarity = FSMC_WaitSignalPolarity_Low; in FSMC_NORSRAMStructInit()
369 FSMC_NORSRAMInitStruct->FSMC_WrapMode = FSMC_WrapMode_Disable; in FSMC_NORSRAMStructInit()
370 FSMC_NORSRAMInitStruct->FSMC_WaitSignalActive = FSMC_WaitSignalActive_BeforeWaitState; in FSMC_NORSRAMStructInit()
371 FSMC_NORSRAMInitStruct->FSMC_WriteOperation = FSMC_WriteOperation_Enable; in FSMC_NORSRAMStructInit()
372 FSMC_NORSRAMInitStruct->FSMC_WaitSignal = FSMC_WaitSignal_Enable; in FSMC_NORSRAMStructInit()
373 FSMC_NORSRAMInitStruct->FSMC_ExtendedMode = FSMC_ExtendedMode_Disable; in FSMC_NORSRAMStructInit()
374 FSMC_NORSRAMInitStruct->FSMC_WriteBurst = FSMC_WriteBurst_Disable; in FSMC_NORSRAMStructInit()
375 FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_AddressSetupTime = 0xF; in FSMC_NORSRAMStructInit()
376 FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_AddressHoldTime = 0xF; in FSMC_NORSRAMStructInit()
377 FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_DataSetupTime = 0xFF; in FSMC_NORSRAMStructInit()
378 FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_BusTurnAroundDuration = 0xF; in FSMC_NORSRAMStructInit()
379 FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_CLKDivision = 0xF; in FSMC_NORSRAMStructInit()
380 FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_DataLatency = 0xF; in FSMC_NORSRAMStructInit()
381 FSMC_NORSRAMInitStruct->FSMC_ReadWriteTimingStruct->FSMC_AccessMode = FSMC_AccessMode_A; in FSMC_NORSRAMStructInit()
382 FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_AddressSetupTime = 0xF; in FSMC_NORSRAMStructInit()
383 FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_AddressHoldTime = 0xF; in FSMC_NORSRAMStructInit()
384 FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_DataSetupTime = 0xFF; in FSMC_NORSRAMStructInit()
385 FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_BusTurnAroundDuration = 0xF; in FSMC_NORSRAMStructInit()
386 FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_CLKDivision = 0xF; in FSMC_NORSRAMStructInit()
387 FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_DataLatency = 0xF; in FSMC_NORSRAMStructInit()
388 FSMC_NORSRAMInitStruct->FSMC_WriteTimingStruct->FSMC_AccessMode = FSMC_AccessMode_A; in FSMC_NORSRAMStructInit()