
#define PC_TEST_ENABLED 1
#define WATCHDOG_ENABLED 1
#define FMSTR_SERIAL_ENABLE 1
Other defines are used to configure the safety test as a parameter to a function or to fill structures.
4.4 safety_test_items.c file
The
safety_test_items.c
and
.h
files are the configuration files for the DIO test.
The file contains the
fs_dio_test_<platform>_t
list of structures. The pointers to these structures are collected in the
dio_safety_test_items[]
array, which is used in the example application.
4.5 Source file - safety_.c/.h
The source file and the corresponding
*.h
file contain a library handling function. Each function contains a detection. If a safety
error ocurrs, the
SafetyErrorHandling()
function is called.
safety_test_items.c file
i.MX8M Safety Example , Rev. 3, 07/2021
NXP Semiconductors
13