fruit.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /* *******************************************************************
  2. *
  3. * Fraise device firmware v2.1
  4. *
  5. *********************************************************************
  6. This program is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2 of the License, or
  9. (at your option) any later version.
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU General Public License for more details.
  14. You should have received a copy of the GNU General Public License
  15. along with this program; if not, write to the Free Software Foundation,
  16. Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  17. *********************************************************************
  18. * Copyright (c) Antoine Rousseau nov 2015
  19. ****************************************************************** */
  20. #ifndef FRUIT_H
  21. #define FRUIT_H
  22. /** @file */
  23. /** @defgroup fruit Fruit module
  24. * Fruit module implements @ref core, @ref fraisedevice and @ref eeparams.
  25. Any normal firmware should include Fruit module.
  26. * Example :
  27. * \include fruit/examples/exampleFruit/main.c
  28. * @{ */
  29. #include <fraisedevice.h>
  30. #include <eeparams.h>
  31. /** @name Initialization */
  32. /** @{ */
  33. /** @brief Init fruit module at setup(). */
  34. /** Init core, configure serial port as a fraise device.
  35. */
  36. void fruitInit(void);
  37. /** @} */
  38. /** @name Service */
  39. /** @{ */
  40. /** @brief Fruit module service routine, to be called by main loop(). */
  41. /** Check for input data from Fraise.*/
  42. #define fruitService() fraiseService()
  43. /** @} */
  44. /** @} */
  45. #endif //FRUIT_H