59 #include "Mockfassert.h"
62 #include "Mockmasterinfo.h"
64 #include "Mocksbc_fs8x.h"
65 #include "Mocksbc_fs8x_communication.h"
73 TEST_FILE(
"nxpfs85xx.c")
76 #define REGISTER_TEST_VALUE (1234u)
78 #define MAIN_REGISTER fs85xx_mcuSupervisor.mainRegister
79 #define FAILSAFE_REGISTER fs85xx_mcuSupervisor.fsRegister
92 .pGioPort = &(spiREG2->PC3),
#define NULL_PTR
Null pointer.
void TEST_SBC_UpdateRegister(FS85_STATE_s *pInstance, bool isFailSafe, uint32_t registerAddress, uint32_t registerValue)
FS85_STATE_s fs85xx_mcuSupervisor
STD_RETURN_TYPE_e TEST_SBC_CheckRegisterValues(uint32_t registerValue, uint32_t expectedRegisterValue)
void TEST_SBC_UpdateFailSafeRegister(FS85_FS_REGISTER_s *pFsRegister, uint32_t registerAddress, uint32_t registerValue)
void TEST_SBC_UpdateMainRegister(FS85_MAIN_REGISTERS_s *pMainRegister, uint32_t registerAddress, uint32_t registerValue)
Header for the driver for the FRAM module.
#define FS8X_M_INT_MASK2_ADDR
#define FS8X_M_MEMORY1_ADDR
#define FS8X_FS_WD_ANSWER_ADDR
#define FS8X_M_REG_CTRL2_ADDR
#define FS8X_FS_RELEASE_FS0B_ADDR
#define FS8X_FS_WD_WINDOW_ADDR
#define FS8X_M_DEVICEID_ADDR
#define FS8X_M_FLAG1_ADDR
#define FS8X_M_VMON_REGX_ADDR
#define FS8X_M_REG_CTRL1_ADDR
#define FS8X_FS_WD_SEED_ADDR
#define FS8X_FS_I_SAFE_INPUTS_ADDR
#define FS8X_FS_INTB_MASK_ADDR
#define FS8X_FS_SAFE_IOS_ADDR
#define FS8X_M_CLOCK_ADDR
#define FS8X_FS_I_OVUV_SAFE_REACTION1_ADDR
#define FS8X_FS_OVUVREG_STATUS_ADDR
#define FS8X_FS_I_FSSM_ADDR
#define FS8X_FS_I_WD_CFG_ADDR
#define FS8X_FS_DIAG_SAFETY_ADDR
#define FS8X_M_INT_MASK1_ADDR
#define FS8X_FS_I_SVS_ADDR
#define FS8X_M_LVB1_SVS_ADDR
#define FS8X_M_FLAG2_ADDR
#define FS8X_FS_I_OVUV_SAFE_REACTION2_ADDR
#define FS8X_FS_STATES_ADDR
#define FS8X_M_MEMORY0_ADDR
#define FS8X_FS_GRL_FLAGS_ADDR
FS85_MAIN_REGISTERS_s mainRegister
FS85_FS_REGISTER_s fsRegister
#define TEST_ASSERT_FAIL_ASSERT(_code_under_test)
assert whether assert macro has failed
SPI_INTERFACE_CONFIG_s spi_sbcMcuInterface
void testSBC_UpdateRegister(void)
static const spiDAT1_t spi_kSbcDataConfig
#define REGISTER_TEST_VALUE
void testSBC_CheckRegisterValues(void)
#define FAILSAFE_REGISTER
void testSBC_UpdateMainRegister(void)
void testSBC_UpdateFailSafeRegister(void)
long FSYS_RaisePrivilege(void)
Raise privilege.
void testDoSomething(void)
FRAM_SBC_INIT_s fram_sbcInit