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