/** * @brief This function initializes OAM * * @return none * * @author SongHo Yoon * @version 1.0.0 * * @remark FSR_PAM_Init() should be called before FSR_OAM_Init() is called. * this function is called by FSR_BML_Init() */ PUBLIC INT32 FSR_OAM_Init(VOID) { #if defined(FSR_USE_DUAL_CORE) INT32 nPAMRe = FSR_PAM_SUCCESS; FsrVolParm stPAM[FSR_MAX_VOLS]; #endif FSR_STACK_VAR; FSR_STACK_END; FSR_OAM_InitMemStat(); #if defined(FSR_USE_DUAL_CORE) nPAMRe = FSR_PAM_GetPAParm(stPAM); if (nPAMRe != FSR_PAM_SUCCESS) { return FSR_OAM_CRITICAL_ERROR; } gnShMemBaseAddress[0] = stPAM[0].nSharedMemoryBase; gnShMemBaseAddress[1] = stPAM[1].nSharedMemoryBase; gnShMemMaxSize[0] = stPAM[0].nSharedMemorySize; gnShMemMaxSize[1] = stPAM[1].nSharedMemorySize; #endif return FSR_OAM_SUCCESS; }
/** * @brief This function initializes OAM * * @return none * * @author SongHo Yoon * @version 1.0.0 * * @remark FSR_PAM_Init() should be called before FSR_OAM_Init() is called. * this function is called by FSR_BML_Init() */ PUBLIC INT32 FSR_OAM_Init(VOID) { FSR_STACK_VAR; FSR_STACK_END; FSR_OAM_InitMemStat(); return FSR_OAM_SUCCESS; }