If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
/* USER CODE BEGIN (2) */
uint16 WR_SAFETY_CHECK_CTRL[1]={0X9317};
uint16 RD_SAFETY_CHECK_CTRL[1]={0X4400};
uint16 WR_SAFETY_FUNC_CFG[1]={0X35E4};
uint16 RD_SAFETY_FUNC_CFG[1]={0X3A00};
uint16 WR_DIAG_CFG_CTRL[1]={0XCCA0};
uint16 RD_DIAG_CFG_CTRL[1]={0XDD00};
int i;
/* USER CODE END */
int main(void)
{
/* USER CODE BEGIN (3) */
mibspiInit();
mibspiSetData(mibspiREG1,0,WR_SAFETY_CHECK_CTRL);