1 /* 2 * Copyright 2019 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 #ifndef TENSORFLOW_LITE_MICRO_EXAMPLES_MAGIC_WAND_MAIN_FUNCTIONS_H_ 18 #define TENSORFLOW_LITE_MICRO_EXAMPLES_MAGIC_WAND_MAIN_FUNCTIONS_H_ 19 20 /* Expose a C friendly interface for main functions.*/ 21 #ifdef __cplusplus 22 extern "C" { 23 #endif 24 25 /* Initializes all data needed for the example. The name is important, and needs 26 * to be setup() for Arduino compatibility. 27 */ 28 void setup(void); 29 30 /* Runs one iteration of data gathering and inference. This should be called 31 * repeatedly from the application code. The name needs to be loop() for Arduino 32 * compatibility. 33 */ 34 void loop(void); 35 36 #ifdef __cplusplus 37 } 38 #endif 39 40 #endif /* TENSORFLOW_LITE_MICRO_EXAMPLES_MAGIC_WAND_MAIN_FUNCTIONS_H_ */ 41