
•
Source
– source file for the safety example (see the next explanation).
The example of project hiearchy is shown in
Figure 7. Example of project hiearchy
shows that the functions in the
project_setup.c
file are called from the
main.c
file. The library-handling functions are
located in the
safety_cm0_lpc.c
file and also called from the
main.c
file.
The main example application header file
safety_config.h
contains all definitions for running the safety test in examples. The
safety_test_items.c
file declares the structures for the DIO (or TSI) safety test. The
project_setup_<your_board>.c
file contains the
setup functions (clock, port, UART, and so on). The safety_cm0_lpc.c file contains the handling function for safety routines from
the IEC60730B library and also the test-initialization function for safety.
4.1 How to open the project
IAR IDE
Open the project file located at
boards/<your_board>/demo_apps/safety_iec60730b/iar/safety_iec60730b.eww
.
Arm Keil IDE
Open the project file located at
boards/<your_board>/demo_apps/safety_iec60730b/mdk/safety_iec60730b.uvprojx
.
MCUXpresso IDE
Firstly, drag and drop the
<name_of_the_package>.zip
package into the MCUXpresso IDE (into the "Installed SDKs" tab).
Secondly, import the SDK example (safety_iec60730b).
How to open the project
LPC CM0 Safety Example , Rev. 3, 07/2021
NXP Semiconductors
11