Lines Matching refs:Init

191                                     FMC_NORSRAM_InitTypeDef *Init)  in FMC_NORSRAM_Init()  argument
199 assert_param(IS_FMC_NORSRAM_BANK(Init->NSBank)); in FMC_NORSRAM_Init()
200 assert_param(IS_FMC_MUX(Init->DataAddressMux)); in FMC_NORSRAM_Init()
201 assert_param(IS_FMC_MEMORY(Init->MemoryType)); in FMC_NORSRAM_Init()
202 assert_param(IS_FMC_NORSRAM_MEMORY_WIDTH(Init->MemoryDataWidth)); in FMC_NORSRAM_Init()
203 assert_param(IS_FMC_BURSTMODE(Init->BurstAccessMode)); in FMC_NORSRAM_Init()
204 assert_param(IS_FMC_WAIT_POLARITY(Init->WaitSignalPolarity)); in FMC_NORSRAM_Init()
205 assert_param(IS_FMC_WAIT_SIGNAL_ACTIVE(Init->WaitSignalActive)); in FMC_NORSRAM_Init()
206 assert_param(IS_FMC_WRITE_OPERATION(Init->WriteOperation)); in FMC_NORSRAM_Init()
207 assert_param(IS_FMC_WAITE_SIGNAL(Init->WaitSignal)); in FMC_NORSRAM_Init()
208 assert_param(IS_FMC_EXTENDED_MODE(Init->ExtendedMode)); in FMC_NORSRAM_Init()
209 assert_param(IS_FMC_ASYNWAIT(Init->AsynchronousWait)); in FMC_NORSRAM_Init()
210 assert_param(IS_FMC_WRITE_BURST(Init->WriteBurst)); in FMC_NORSRAM_Init()
211 assert_param(IS_FMC_CONTINOUS_CLOCK(Init->ContinuousClock)); in FMC_NORSRAM_Init()
213 assert_param(IS_FMC_WRITE_FIFO(Init->WriteFifo)); in FMC_NORSRAM_Init()
215 assert_param(IS_FMC_PAGESIZE(Init->PageSize)); in FMC_NORSRAM_Init()
217 assert_param(IS_FMC_NBL_SETUPTIME(Init->NBLSetupTime)); in FMC_NORSRAM_Init()
220 assert_param(IS_FUNCTIONAL_STATE(Init->MaxChipSelectPulse)); in FMC_NORSRAM_Init()
224 __FMC_NORSRAM_DISABLE(Device, Init->NSBank); in FMC_NORSRAM_Init()
227 if (Init->MemoryType == FMC_MEMORY_TYPE_NOR) in FMC_NORSRAM_Init()
237 Init->DataAddressMux | \ in FMC_NORSRAM_Init()
238 Init->MemoryType | \ in FMC_NORSRAM_Init()
239 Init->MemoryDataWidth | \ in FMC_NORSRAM_Init()
240 Init->BurstAccessMode | \ in FMC_NORSRAM_Init()
241 Init->WaitSignalPolarity | \ in FMC_NORSRAM_Init()
242 Init->WaitSignalActive | \ in FMC_NORSRAM_Init()
243 Init->WriteOperation | \ in FMC_NORSRAM_Init()
244 Init->WaitSignal | \ in FMC_NORSRAM_Init()
245 Init->ExtendedMode | \ in FMC_NORSRAM_Init()
246 Init->AsynchronousWait | \ in FMC_NORSRAM_Init()
247 Init->WriteBurst); in FMC_NORSRAM_Init()
249 btcr_reg |= Init->ContinuousClock; in FMC_NORSRAM_Init()
251 btcr_reg |= Init->WriteFifo; in FMC_NORSRAM_Init()
254 btcr_reg |= Init->NBLSetupTime; in FMC_NORSRAM_Init()
256 btcr_reg |= Init->PageSize; in FMC_NORSRAM_Init()
281 MODIFY_REG(Device->BTCR[Init->NSBank], mask, btcr_reg); in FMC_NORSRAM_Init()
284 …if ((Init->ContinuousClock == FMC_CONTINUOUS_CLOCK_SYNC_ASYNC) && (Init->NSBank != FMC_NORSRAM_BAN… in FMC_NORSRAM_Init()
286 MODIFY_REG(Device->BTCR[FMC_NORSRAM_BANK1], FMC_BCR1_CCLKEN, Init->ContinuousClock); in FMC_NORSRAM_Init()
290 if (Init->NSBank != FMC_NORSRAM_BANK1) in FMC_NORSRAM_Init()
293 SET_BIT(Device->BTCR[FMC_NORSRAM_BANK1], (uint32_t)(Init->WriteFifo)); in FMC_NORSRAM_Init()
299 if (Init->MaxChipSelectPulse == ENABLE) in FMC_NORSRAM_Init()
302 assert_param(IS_FMC_MAX_CHIP_SELECT_PULSE_TIME(Init->MaxChipSelectPulseTime)); in FMC_NORSRAM_Init()
305 MODIFY_REG(Device->PCSCNTR, FMC_PCSCNTR_CSCOUNT, (uint32_t)(Init->MaxChipSelectPulseTime)); in FMC_NORSRAM_Init()
308 switch (Init->NSBank) in FMC_NORSRAM_Init()
620 HAL_StatusTypeDef FMC_NAND_Init(FMC_NAND_TypeDef *Device, FMC_NAND_InitTypeDef *Init) in FMC_NAND_Init() argument
624 assert_param(IS_FMC_NAND_BANK(Init->NandBank)); in FMC_NAND_Init()
625 assert_param(IS_FMC_WAIT_FEATURE(Init->Waitfeature)); in FMC_NAND_Init()
626 assert_param(IS_FMC_NAND_MEMORY_WIDTH(Init->MemoryDataWidth)); in FMC_NAND_Init()
627 assert_param(IS_FMC_ECC_STATE(Init->EccComputation)); in FMC_NAND_Init()
628 assert_param(IS_FMC_ECCPAGE_SIZE(Init->ECCPageSize)); in FMC_NAND_Init()
629 assert_param(IS_FMC_TCLR_TIME(Init->TCLRSetupTime)); in FMC_NAND_Init()
630 assert_param(IS_FMC_TAR_TIME(Init->TARSetupTime)); in FMC_NAND_Init()
633 MODIFY_REG(Device->PCR, PCR_CLEAR_MASK, (Init->Waitfeature | in FMC_NAND_Init()
635 Init->MemoryDataWidth | in FMC_NAND_Init()
636 Init->EccComputation | in FMC_NAND_Init()
637 Init->ECCPageSize | in FMC_NAND_Init()
638 ((Init->TCLRSetupTime) << FMC_PCR_TCLR_Pos) | in FMC_NAND_Init()
639 ((Init->TARSetupTime) << FMC_PCR_TAR_Pos))); in FMC_NAND_Init()