[mw_shl_code=c,true]int32_t i32AssignQSPISettings(qspi_dev_type_e eQSPI_DeviceType, uint16_t u16BaseAddress,
ccr_clk_freq_e * peClocFreq, ccr_modulated_clk_e * peModulationType,
qspic_directconfig_st * pstDirectConfig, qspic_prgconfig_st * pstProgConfig)
{
int32_t i32Res = C_SUCCESS;
/* check pointer not to be zerro: */
if ((peClocFreq == 0) || (peModulationType == 0) ||(pstDirectConfig == 0) ||(pstProgConfig == 0) )
{
return C_FAILED;
}
/* depend on type of flash: */
switch(eQSPI_DeviceType)
{
case DEV_MX25L3235E: /* MX25L3235E */
eQSPI_DeviceHldd = eQSPI_DeviceType;[/mw_shl_code]
[mw_shl_code=c,true] ………………[/mw_shl_code]
[mw_shl_code=c,true] ………………[/mw_shl_code]
[mw_shl_code=c,true] ………………
[/mw_shl_code]
if ((peClocFreq == 0) || (peModulationType == 0) ||(pstDirectConfig == 0) ||(pstProgConfig == 0) )
{
return C_FAILED;
}中判断指针是 不是零有什么意义吗?
|