main_functions.h 1.3 KB

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