1 /* Copyright 2019 The TensorFlow Authors. All Rights Reserved. 2 3 Licensed under the Apache License, Version 2.0 (the "License"); 4 you may not use this file except in compliance with the License. 5 You may obtain a copy of the License at 6 7 http://www.apache.org/licenses/LICENSE-2.0 8 9 Unless required by applicable law or agreed to in writing, software 10 distributed under the License is distributed on an "AS IS" BASIS, 11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 See the License for the specific language governing permissions and 13 limitations under the License. 14 ==============================================================================*/ 15 16 #ifndef TENSORFLOW_LITE_MICRO_EXAMPLES_MICRO_SPEECH_MAIN_FUNCTIONS_H_ 17 #define TENSORFLOW_LITE_MICRO_EXAMPLES_MICRO_SPEECH_MAIN_FUNCTIONS_H_ 18 19 // Expose a C friendly interface for main functions. 20 #ifdef __cplusplus 21 extern "C" { 22 #endif 23 24 // Initializes all data needed for the example. The name is important, and needs 25 // to be setup() for Arduino compatibility. 26 void setup(); 27 28 void test_setup(); 29 // Runs one iteration of data gathering and inference. This should be called 30 // repeatedly from the application code. The name needs to be loop() for Arduino 31 // compatibility. 32 void loop(); 33 34 #ifdef __cplusplus 35 } 36 #endif 37 38 #endif // TENSORFLOW_LITE_MICRO_EXAMPLES_MICRO_SPEECH_MAIN_FUNCTIONS_H_ 39