]> begriffs open source - cmsis/blob - CMSIS/CoreValidation/Examples/MDK-FVP/main.c
CoreValidation: Added test functions for MSPLIM and PSPLIM.
[cmsis] / CMSIS / CoreValidation / Examples / MDK-FVP / main.c
1 /*----------------------------------------------------------------------------
2  * Name:    main.c
3  *----------------------------------------------------------------------------*/
4
5 /* Includes ------------------------------------------------------------------*/
6
7 #include <stdio.h>
8
9 #include "RTE_Components.h"
10 #include  CMSIS_device_header
11  
12 #ifdef RTE_Compiler_EventRecorder
13 #include "EventRecorder.h"
14 #endif
15
16 #include "cmsis_cv.h"
17
18 //lint -e970 allow using int for main
19
20 /* Private functions ---------------------------------------------------------*/
21 int main (void);
22
23 /**
24   * @brief  Main program
25   * @param  None
26   * @retval None
27   */
28 int main (void)
29 {  
30
31   // System Initialization
32   SystemCoreClockUpdate();
33 #ifdef RTE_Compiler_EventRecorder
34   // Initialize and start Event Recorder
35   (void)EventRecorderInitialize(EventRecordError, 1U);
36   (void)EventRecorderEnable    (EventRecordAll, 0xFEU, 0xFEU);
37 #endif
38   
39   cmsis_cv();
40   
41   for(;;) {}
42 }