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()
212 assert_param(IS_FMC_WRITE_FIFO(Init->WriteFifo)); in FMC_NORSRAM_Init()
213 assert_param(IS_FMC_PAGESIZE(Init->PageSize)); in FMC_NORSRAM_Init()
214 assert_param(IS_FMC_NBL_SETUPTIME(Init->NBLSetupTime)); in FMC_NORSRAM_Init()
215 assert_param(IS_FUNCTIONAL_STATE(Init->MaxChipSelectPulse)); in FMC_NORSRAM_Init()
218 __FMC_NORSRAM_DISABLE(Device, Init->NSBank); in FMC_NORSRAM_Init()
221 if (Init->MemoryType == FMC_MEMORY_TYPE_NOR) in FMC_NORSRAM_Init()
231 Init->DataAddressMux | \ in FMC_NORSRAM_Init()
232 Init->MemoryType | \ in FMC_NORSRAM_Init()
233 Init->MemoryDataWidth | \ in FMC_NORSRAM_Init()
234 Init->BurstAccessMode | \ in FMC_NORSRAM_Init()
235 Init->WaitSignalPolarity | \ in FMC_NORSRAM_Init()
236 Init->WaitSignalActive | \ in FMC_NORSRAM_Init()
237 Init->WriteOperation | \ in FMC_NORSRAM_Init()
238 Init->WaitSignal | \ in FMC_NORSRAM_Init()
239 Init->ExtendedMode | \ in FMC_NORSRAM_Init()
240 Init->AsynchronousWait | \ in FMC_NORSRAM_Init()
241 Init->WriteBurst); in FMC_NORSRAM_Init()
243 btcr_reg |= Init->ContinuousClock; in FMC_NORSRAM_Init()
244 btcr_reg |= Init->WriteFifo; in FMC_NORSRAM_Init()
245 btcr_reg |= Init->NBLSetupTime; in FMC_NORSRAM_Init()
246 btcr_reg |= Init->PageSize; in FMC_NORSRAM_Init()
267 MODIFY_REG(Device->BTCR[Init->NSBank], mask, btcr_reg); in FMC_NORSRAM_Init()
270 …if ((Init->ContinuousClock == FMC_CONTINUOUS_CLOCK_SYNC_ASYNC) && (Init->NSBank != FMC_NORSRAM_BAN… in FMC_NORSRAM_Init()
272 MODIFY_REG(Device->BTCR[FMC_NORSRAM_BANK1], FMC_BCR1_CCLKEN, Init->ContinuousClock); in FMC_NORSRAM_Init()
275 if (Init->NSBank != FMC_NORSRAM_BANK1) in FMC_NORSRAM_Init()
278 SET_BIT(Device->BTCR[FMC_NORSRAM_BANK1], (uint32_t)(Init->WriteFifo)); in FMC_NORSRAM_Init()
282 if (Init->MaxChipSelectPulse == ENABLE) in FMC_NORSRAM_Init()
285 assert_param(IS_FMC_MAX_CHIP_SELECT_PULSE_TIME(Init->MaxChipSelectPulseTime)); in FMC_NORSRAM_Init()
288 MODIFY_REG(Device->PCSCNTR, FMC_PCSCNTR_CSCOUNT, (uint32_t)(Init->MaxChipSelectPulseTime)); in FMC_NORSRAM_Init()
291 switch (Init->NSBank) in FMC_NORSRAM_Init()
576 HAL_StatusTypeDef FMC_NAND_Init(FMC_NAND_TypeDef *Device, FMC_NAND_InitTypeDef *Init) in FMC_NAND_Init() argument
580 assert_param(IS_FMC_NAND_BANK(Init->NandBank)); in FMC_NAND_Init()
581 assert_param(IS_FMC_WAIT_FEATURE(Init->Waitfeature)); in FMC_NAND_Init()
582 assert_param(IS_FMC_NAND_MEMORY_WIDTH(Init->MemoryDataWidth)); in FMC_NAND_Init()
583 assert_param(IS_FMC_ECC_STATE(Init->EccComputation)); in FMC_NAND_Init()
584 assert_param(IS_FMC_ECCPAGE_SIZE(Init->ECCPageSize)); in FMC_NAND_Init()
585 assert_param(IS_FMC_TCLR_TIME(Init->TCLRSetupTime)); in FMC_NAND_Init()
586 assert_param(IS_FMC_TAR_TIME(Init->TARSetupTime)); in FMC_NAND_Init()
589 MODIFY_REG(Device->PCR, PCR_CLEAR_MASK, (Init->Waitfeature | in FMC_NAND_Init()
591 Init->MemoryDataWidth | in FMC_NAND_Init()
592 Init->EccComputation | in FMC_NAND_Init()
593 Init->ECCPageSize | in FMC_NAND_Init()
594 ((Init->TCLRSetupTime) << FMC_PCR_TCLR_Pos) | in FMC_NAND_Init()
595 ((Init->TARSetupTime) << FMC_PCR_TAR_Pos))); in FMC_NAND_Init()
847 HAL_StatusTypeDef FMC_SDRAM_Init(FMC_SDRAM_TypeDef *Device, FMC_SDRAM_InitTypeDef *Init) in FMC_SDRAM_Init() argument
851 assert_param(IS_FMC_SDRAM_BANK(Init->SDBank)); in FMC_SDRAM_Init()
852 assert_param(IS_FMC_COLUMNBITS_NUMBER(Init->ColumnBitsNumber)); in FMC_SDRAM_Init()
853 assert_param(IS_FMC_ROWBITS_NUMBER(Init->RowBitsNumber)); in FMC_SDRAM_Init()
854 assert_param(IS_FMC_SDMEMORY_WIDTH(Init->MemoryDataWidth)); in FMC_SDRAM_Init()
855 assert_param(IS_FMC_INTERNALBANK_NUMBER(Init->InternalBankNumber)); in FMC_SDRAM_Init()
856 assert_param(IS_FMC_CAS_LATENCY(Init->CASLatency)); in FMC_SDRAM_Init()
857 assert_param(IS_FMC_WRITE_PROTECTION(Init->WriteProtection)); in FMC_SDRAM_Init()
858 assert_param(IS_FMC_SDCLOCK_PERIOD(Init->SDClockPeriod)); in FMC_SDRAM_Init()
859 assert_param(IS_FMC_READ_BURST(Init->ReadBurst)); in FMC_SDRAM_Init()
860 assert_param(IS_FMC_READPIPE_DELAY(Init->ReadPipeDelay)); in FMC_SDRAM_Init()
863 if (Init->SDBank == FMC_SDRAM_BANK1) in FMC_SDRAM_Init()
867 (Init->ColumnBitsNumber | in FMC_SDRAM_Init()
868 Init->RowBitsNumber | in FMC_SDRAM_Init()
869 Init->MemoryDataWidth | in FMC_SDRAM_Init()
870 Init->InternalBankNumber | in FMC_SDRAM_Init()
871 Init->CASLatency | in FMC_SDRAM_Init()
872 Init->WriteProtection | in FMC_SDRAM_Init()
873 Init->SDClockPeriod | in FMC_SDRAM_Init()
874 Init->ReadBurst | in FMC_SDRAM_Init()
875 Init->ReadPipeDelay)); in FMC_SDRAM_Init()
883 (Init->SDClockPeriod | in FMC_SDRAM_Init()
884 Init->ReadBurst | in FMC_SDRAM_Init()
885 Init->ReadPipeDelay)); in FMC_SDRAM_Init()
889 (Init->ColumnBitsNumber | in FMC_SDRAM_Init()
890 Init->RowBitsNumber | in FMC_SDRAM_Init()
891 Init->MemoryDataWidth | in FMC_SDRAM_Init()
892 Init->InternalBankNumber | in FMC_SDRAM_Init()
893 Init->CASLatency | in FMC_SDRAM_Init()
894 Init->WriteProtection)); in FMC_SDRAM_Init()