]> begriffs open source - cmsis-freertos/blob - CMSIS/RTOS2/FreeRTOS/Examples/App/Hello/main.c
Update FreeRTOSConfig.h (#134)
[cmsis-freertos] / CMSIS / RTOS2 / FreeRTOS / Examples / App / Hello / main.c
1 /*---------------------------------------------------------------------------
2  * Copyright (c) 2021-2023 Arm Limited (or its affiliates). 
3  * All rights reserved.
4  *
5  * SPDX-License-Identifier: Apache-2.0
6  *
7  * Licensed under the Apache License, Version 2.0 (the License); you may
8  * not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an AS IS BASIS, WITHOUT
15  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *---------------------------------------------------------------------------*/
19
20 #include "RTE_Components.h"
21 #include  CMSIS_device_header
22 #include "cmsis_os2.h"
23
24 #include "main.h"
25
26 int main (void) {
27
28   osKernelInitialize();                 // Initialize CMSIS-RTOS2
29   app_initialize();                     // Initialize application
30   osKernelStart();                      // Start thread execution
31
32   for (;;) {}
33 }