1 /*
2  * Copyright 2020 The TensorFlow Authors. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #include "main_functions.h"
18 
19 /* Increase number of loops to see full period of the sine curve */
20 #define NUM_LOOPS 10
21 
22 /* This is the default main used on systems that have the standard C entry
23  * point. Other devices (for example FreeRTOS or ESP32) that have different
24  * requirements for entry code (like an app_main function) should specialize
25  * this main.cc file in a target-specific subfolder.
26  */
main(int argc,char * argv[])27 int main(int argc, char *argv[])
28 {
29 	setup();
30 	/* Note: Modified from original while(true) to accommodate CI */
31 	for (int i = 0; i < NUM_LOOPS; i++) {
32 		loop();
33 	}
34 	return 0;
35 }
36