]> begriffs open source - cmsis/blob - CMSIS/CoreValidation/Examples/DS-MDK/Cortex-A9/GCC/main.c
CoreValidation: Separated DS-MDK example projects per target and compiler.
[cmsis] / CMSIS / CoreValidation / Examples / DS-MDK / Cortex-A9 / GCC / 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
19 /* Private functions ---------------------------------------------------------*/
20 int main (void);
21
22 /**
23   * @brief  Main program
24   * @param  None
25   * @retval None
26   */
27 int main (void) {
28
29   // System Initialization
30   SystemCoreClockUpdate();
31 #ifdef RTE_Compiler_EventRecorder
32   // Initialize and start Event Recorder
33   (void)EventRecorderInitialize(EventRecordError, 1U);
34   (void)EventRecorderEnable    (EventRecordAll, 0xFEU, 0xFEU);
35 #endif
36   
37   cmsis_cv();
38   
39   for(;;) {}
40 }